// Banner Rotation
var Q = 14; // Number of banners

var banner=Math.round(Math.random()*(Q-1));

function showBanner(){ 
	document.write("<img src=http://www.depts.ttu.edu/centerforcampuslife/images/banner/banner" + banner + ".jpg>");
}


// drop down menu
// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the pages.

var pages = new makeArray("Site Directory:",
                          "Home",
                          "Arbor Day", 
                          "Campus Life Assessment Plan", 
                          "Campus Life Calendar", 
                          "Campus Life Organization Chart ", 
                          "Campus Life Strategic Plan",
						  <!--"Catering Request",-->
                          "Civic Engagement",
						  "Coca Cola Funding",
                          "Community Action Days", 
                          "Contact Campus Life", 
                          "Crisis & Emergency", 
                          "Current Events & Speakers", 
                          "Diversity Involvement", 
                          "Division of Student Affairs", 
                          "Events & Programs", 
                          "Fight Song", 
                          "First Year Raider Experience", 
                          "Focus Lubbock", 
                          "Frequently Asked Questions", 
                          "Greek Life", 
                          "Grounds Use & Solicitation", 
                          "Hazing Laws", 
                          "Homecoming", 
						  "Indep. Documentary & Foreign Films",
                          "Involvement Fair", 
						  "Masked Rider", 
                          "Matador Song", 
                          "RaiderGate", 
                          "Ready References", 
                          "Red Raider CAMP", 
                          "Red Raider Nights", 
                          "RRN Adventures", 
						  "Spirit & Traditions", 
                          "Spirit Squads", 
                          "Student Affairs Handbook", 
                          "Student Life Research", 
                          "Student Org Travel Packet", 
                          "Student Organizations", 
                          "Summer Reading Program", 
                          "Tech Activities Board",
                          "Tech Lubbock Community Day", 
                          "TECHsan Memorial", 
                          "Texas Tech University", 
						  "This is Texas Tech",
                          "Volunteer Directory", 
                          "Raider Welcome", 
                          "Women's Leadership Program");

// This array hold the URLs of the pages.

var urls = new makeArray("",
                          "/centerforcampuslife/default.aspx",
                          "/centerforcampuslife/community_service/arborday/default.aspx", 
                          "/centerforcampuslife/SLR/assessment_plan.aspx", 
                          "/centerforcampuslife/calendar/", 
                          "/centerforcampuslife/downloads/orgchart.pdf", 
                          "/centerforcampuslife/downloads/2003CCLStratPlan.pdf", 
						 <!-- "/centerforcampuslife/catering_request.aspx",-->
                          "/centerforcampuslife/community_service/default.aspx",
						  "/centerforcampuslife/CocaColaFunding.aspx",
                          "/centerforcampuslife/community_service/actiondays.aspx", 
                          "/centerforcampuslife/ccl_contact.aspx", 
                          "/centerforcampuslife/crisis/", 
                          "/centerforcampuslife/events_programs/events_speakers.aspx", 
                          "/centerforcampuslife/diversity/", 
                          "http://www.studentaffairs.ttu.edu/", 
                          "/centerforcampuslife/events_programs/", 
                          "/centerforcampuslife/traditions/fightsong.aspx", 
                          "http://www.fyre.ttu.edu/", 
                          "/centerforcampuslife/community_service/focuslubbock.aspx",
                          "/centerforcampuslife/faq.aspx", 
                          "/centerforcampuslife/GreekLife/", 
                          "/centerforcampuslife/GUS/", 
                          "/centerforcampuslife/StuOrg/hazing.aspx",                          
                          "/centerforcampuslife/homecoming/",
						  "/centerforcampuslife/events_programs/special_films.aspx",
                          "/centerforcampuslife/community_service/involvementFair/default.aspx", 
						  "/centerforcampuslife/MaskedRider/", 
                          "/centerforcampuslife/traditions/matadorsong.aspx", 
                          "http://www.raidergate.ttu.edu/", 
                          "/centerforcampuslife/ReadyReferences/", 
                          "http://www.redraidercamp.ttu.edu/", 
                          "/centerforcampuslife/events_programs/redraidernights.aspx", 
                          "/centerforcampuslife/events_programs/rrnadventures.aspx", 
						  "/centerforcampuslife/traditions/", 
                          "http://www.depts.ttu.edu/spiritsquads/", 
                          "http://www.depts.ttu.edu/studentaffairs/publications/SA_handbook_2006-2007.pdf", 
                          "http://www.aslr.dsa.ttu.edu", 
                          "/centerforcampuslife/StuOrg/travel_policy.aspx", 
                          "/centerforcampuslife/StuOrg/", 
                          "http://www.orgs.ttu.edu/srp/", 
                          "/centerforcampuslife/events_programs/tab",
                          "/centerforcampuslife/community_service/TLCday/tlcApplication.aspx", 
                          "http://www.depts.ttu.edu/dos/memorial.php", 
                          "http://www.ttu.edu/", 
						  "/centerforcampuslife/traditions/Traditions.pdf",
                          "/centerforcampuslife/community_service/volunteer.aspx", 
                          "http://www.orgs.ttu.edu/rw/", 
                          "/centerforcampuslife/wymo");

// This function determines which page is selected and goes to it.

function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}



    

function change(spanId) {
window.alert(document.getElementById(spanId).getAttribute('id'));
}


//updated function for dynamically changing content

function getContent(spanId) {
var title;
var body;
//window.alert(document.getElementById(spanId).innerHTML);
//window.alert("lols!");

switch (spanId)
{
case 'one': 
    
    title = "Goal 1: Access and Diversity";
    body = "<li> Number of programs offered.</li>"
					+ "<li> Number of diverse students participating in Center for Campus Life programs.</li>"
					+ "<li> Level of involvement in programs and services by diverse students.</li>"
					+ "<li> Number of students utilizing Center for Campus Life services.</li>"
					+ "<li> Retention rate. </li>";
    break;
case 'two':
    title =  "Goal 2: Academic Excellence";
    body = "<li> Types of first-year experience programs.</li>"
					+ "<li> Focus groups to evaluate the impact of programs.</li>"
 					+ "<li> Participants'and non-participants' grade point averages.</li>"
 					+ "<li> Participants'and non participants'retention rates.</li>"
 					+ "<li> Registered student organization grade comparisons (where applicable).</li>"
 					+ "<li> Volume of participation.</li>"
 					+ "<li> Number of participants in leadership program.</li>"
 					+ "<li> Involvement level of participants in leadership program. </li>"
 					+ "<li> Number and quality of internship opportunities.</li>";
 	break;
 
 case 'three':
    title = "Goal 3: Engagement";
    body  = "<li> Relevancy and effectiveness of programming plan.</li>"
					+ "<li> Effectiveness of collaborations.</li>"
 					+ "<li> Number of applications for and use of program funding. </li>"
 					+ "<li> Number and quality of programs implemented by Center for Campus Life.</li>"
 					+ "<li> Number and quality of community service opportunities.</li>"
 					+ "<li> Attendance at programs.</li>"
 					+ "<li> Number of students participating in programming process.</li>"
 					+ "<li> Number and quality of programs implemented by or with the help of students.</li>"
 					+ "<li> Number of students applying to participate in programming process.</li>"
 					+ "<li> Assessment of the quality of programs by student staff and participants.</li>";
 	break;
 
 case 'four':
    title = "Goal 4: Technology";
    body = "<li> Effectiveness of the various uses of technology available to students.</li>"
  					+ "<li> Number of CD-Roms distributed.</li>"
  					+ "<li> Test market response to CD-Rom.</li>"
  					+ "<li> Measure frequency of student utilization of website.</li>"
  					+ "<li> Percentage of applications online.</li>"
  					+ "<li> Number of users of on-line applications.</li>"
  					+ "<li> Level of involvement of students and faculty.</li>"
  					+ "<li> Ease of use of applications.</li>";
  	break;
  	
 case 'five':
    title = "Goal 5: Collaboration";
    body = "<li> Number of successful partnerships.</li>"
  					+ "<li> Number and quality of collaborative programs and services offered</li>"
  					+ "<li> Number of successful external partnerships.</li>"
  					+ "<li> Number and quality of collaborative programs and services offered.</li>";
  	break;
 
 case 'six':
    title = "Goal 6: Human Resources";
    body = "<li> Competitive compensation packages.</li>"
   					+ "<li> Number of diverse staff.</li>"
   					+ "<li> Amount and utilization of professional development funding.</li>"
   					+ "<li> Improved job performance.</li>"
   					+ "<li> Use of annual performance evaluations. </li>"
   					+ "<li> Number of employees participating in professional development. </li>"
   					+ "<li> Annual review of job descriptions.</li>"
   					+ "<li> Staff attrition.</li>"
   					+ "<li> Staff satisfaction.</li>"
   					+ "<li> Annual performance review of job satisfaction.</li>";
    break;
 
 case 'seven':
    title = "Goal 7: Tradition and Pride";
    body = "<li> Focus groups to engage the student body's ideas.</li>"
    				+ "<li> Number and type of activities. </li>"
    				+ "<li> Number and type of collaborations.</li>"
    				+ "<li> Number of national awards and recognitions.</li>";
   break;
  
 case 'eight':
    title ="Goal 8: Research Assessments";
    body = "<li> Number and type of studies conducted.</li>"
    				+ "<li> Percentage of diverse student body reached.</li>"
    				+ "<li> Percentage of student body responses.</li>"
    				+ "<li> Record of findings.</li>"
    				+ "<li> Number of resources located or identified.</li>"
    				+ "<li> Utilization of resource information by departments within Division.</li>"
    				+ "<li> Number of studies conducted.</li>"
    				+ "<li> Volume of resources developed.</li>"
    				+ "<li> Collect and catalog data from research studies.</li>"
    				+ "<li> Newsletters, reports, and online information access.</li>"
    				+ "<li> Number of research funding resources identified.</li>"
    				+ "<li> Number of grant applications submitted.</li>"
    				+ "<li> Number of research grants funded.</li>";
    break;
    
  


default:

    title = "Invalid Request!";
    body = "No data";
   //title = goal_8('title');
   // body = goal_8('body');
    break;
}    

document.getElementById('title').innerHTML=title;
document.getElementById('goal').innerHTML=body;

}



function display_photo( dir, photoname ) {
    
    var newfile = "/centerforcampuslife/images/" + dir + "/photos/" + photoname + ".jpg";
    document.getElementById('photodisplay').innerHTML= "<img src=" + newfile+ " border=0 alt=" + photoname + ">";

}

function Info(theurl)
{
 // set the width and height
 var the_width=610;
 var the_height=300;

 // set window position
 var from_top=100;
 var from_left=100;

 // set other attributes
 var has_toolbar='no';
 var has_location='no';
 var has_directories='no';
 var has_status='no';
 var has_menubar='no';
 var has_scrollbars='yes';
 var is_resizable='yes';

 // attributes put together
 var the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+from_left+',screenX='+from_left;
 the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
 the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;

 // open window
 window.open(theurl,'',the_atts);
}