// JavaScript Document

// Global Array for Quick Links
// modify names & links here

//
//
//
// Changes must be done in the www1 file and
// on the core files of the sharepoint installation	
//
//




var AUCqlinks = new Array();
AUCqlinks[1] = "AUC Press";
AUCqlinks[2] = "AUC Store";
AUCqlinks[3] = "Book Store";
AUCqlinks[4] = "Conferences";
AUCqlinks[5] = "Employment";
AUCqlinks[6] = "Events Calendar";
AUCqlinks[7] = "Internship Program";
AUCqlinks[8] = "Library";
//AUCqlinks[9] = "New Campus";
//AUCqlinks[10] = "Conference Center";
AUCqlinks[9] = "Publications";
AUCqlinks[10] = "Search Directory";
AUCqlinks[11] = "Campus Maps";
AUCqlinks[12] = "Transportation";
AUCqlinks[13] = "Webmail";

var AUCqval = new Array();
AUCqval[0] = "#";
AUCqval[1] = "http://www.aucpress.com/";
AUCqval[2] = "http://www.aucegypt.edu/store";
AUCqval[3] = "http://www.aucegypt.edu/services/bookstore";
AUCqval[4] = "http://www.aucegypt.edu/ResearchatAUC/conferences/Pages/default.aspx";
AUCqval[5] = "http://www.aucegypt.edu/OFFICES/HR/Pages/default.aspx";
AUCqval[6] = "http://calendar.aucegypt.edu";
AUCqval[7] = "http://www.aucegypt.edu/aboutauc/GovernanceandAdministration/President/Pages/InternshipProgram.aspx";
AUCqval[8] = "http://library.aucegypt.edu";
//AUCqval[9] = "http://www.aucegypt.edu/aboutauc/CampusandFacilities/NewCampus/Pages/default.aspx";
//AUCqval[10] = "http://www.aucegypt.edu/aboutauc/CampusandFacilities/ConferenceCenter/";
AUCqval[9] = "http://www.aucegypt.edu/newsevents/publications";
AUCqval[10] = "http://dir.aucegypt.edu";
AUCqval[11] = "http://www.aucegypt.edu/newcairocampus/maps";
AUCqval[12] = "http://www.aucegypt.edu/services/transport/";
AUCqval[13] = "http://webmail.aucegypt.edu";



//appendOption();

function appendOption() {
//alert('append option ...');

	for(i=1; i<AUCqlinks.length; i++){
		  //var elOptOld = document.createElement('option');
		  var elOptNew = document.createElement('option');
		  elOptNew.text = AUCqlinks[i];
		  //alert('TEXT: ' + AUCqlinks[i]);
		  elOptNew.value = AUCqval[i]; //i;
		  //alert('VALUE: ' + AUCqval[i]);
		  //var elSel = document.getElementById('quicklinkssel');
		  
		  //alert('GET ');
		  
		  var elSel = document.getElementById('quicklinkssel'); 
		  //var elOptOld = elSel.options[elSel.selectedIndex];  
			
		  try {
		  
			//elSel.add(elOptNew, elOptOld); // standards compliant; doesnt work in IE

			elSel.add(elOptNew, null); // standards compliant; doesnt work in IE      			
		  }
		  catch(ex) {
			//elSel.add(elOptNew, null); // standards compliant; doesnt work in IE
			elSel.add(elOptNew); // IE only	
		
			
		  }
	}
  
}


function quick_changed(ele){

	var optbox = document.getElementById(ele);
	for(i=0; i<AUCqlinks.length; i++){
		if(true == optbox.options[i].selected)
			document.location.href = optbox.options[i].value;
	}
	return;
}
