	
	var DownImg='images/UL-arrow-down.gif';
	var CollaspedImg='images/UL-arrow.gif';
	var SelectedImg='images/UL-red-arrow.gif';
	var ExpandedNotSelected='images/blue-arrow-down.gif';
	var Bullet='images/UL-bullet.gif';

		function ShowHide(vItem,bExpandable) {
			var ItemName ;
			switch (vItem) {
				case "Programs" :
					ItemName="ProgramSub" ;
					document.getElementById("ProgramTd").style.backgroundColor="#ffffe6"
					reset("ProgramTd")
					break;
				case "Apply" :
					ItemName="Apply" ;
					document.getElementById("ApplyTd").style.backgroundColor="#ffffe6"
					reset("ApplyTd")
					break;
				case "About" :
					ItemName="About" ;
					document.getElementById("AboutTd").style.backgroundColor="#ffffe6"
					reset("AboutTd")
					break;
				case "Tuition" :
					ItemName="Tuition" ;
					document.getElementById("TuitionTd").style.backgroundColor="#ffffe6"
					reset("TuitionTd")
					break;
				case "Mission" :
					ItemName="Mission" ;
					document.getElementById("MissionTd").style.backgroundColor="#ffffe6"
					reset("MissionTd")
					break;
				case "PressRoom" :
					ItemName="PressSub" ;
					document.getElementById("PressTd").style.backgroundColor="#ffffe6"
					reset("PressTd")
					break;
				case "Contact" :
					ItemName="Contact" ;
					document.getElementById("ContactTd").style.backgroundColor="#ffffe6"					
					reset("ContactTd")
					break;
				case "Faculty" :
					document.getElementById("FacultyTd").style.backgroundColor="#ffffe6"
					ItemName="Faculty" ;
					reset("FacultyTd")
					break;
				default :
					ItemName="0000" ;
					break ;
			}
				if (bExpandable) {
					if (document.getElementById(ItemName)){
						if(document.getElementById(ItemName).style.display == 'none'){
							document.getElementById(ItemName).style.display = '';
						} 
						else  
						{
							document.getElementById(ItemName).style.display = 'none';
						}
					}
				}
			}
			
		function reset(sItemName) {
			var display ;
			switch (sItemName) {
				case "ProgramTd" :
					display=document.getElementById("ProgramSub").style.display ;
					if (display==null ||display=='') {
						document.images["ProgramImg"].src=CollaspedImg ;
					}
					else {
						document.images["ProgramImg"].src=DownImg ;
						
					}
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
					
					document.images["FacultyImg"].src=CollaspedImg ;
					document.images["ContactImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["ApplyImg"].src=CollaspedImg
					
					break;
				case "ApplyTd" :
				
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
					
					document.images["FacultyImg"].src=CollaspedImg ;
					document.images["ContactImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["ApplyImg"].src=SelectedImg
					
					CheckExpandableMenu()
					break;
				case "AboutTd" :
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
					
					document.images["AboutImg"].src=SelectedImg ;
					document.images["ApplyImg"].src=CollaspedImg
					document.images["ContactImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["FacultyImg"].src=CollaspedImg
					
					CheckExpandableMenu()
					break;
				case "TuitionTd" :
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
										
					document.images["TuitionImg"].src=SelectedImg ;
					document.images["ApplyImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["ContactImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["FacultyImg"].src=CollaspedImg
					
					CheckExpandableMenu()
					break;
				case "MissionTd" :
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
					
					document.images["MissionImg"].src=SelectedImg ;
					document.images["ApplyImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["FacultyImg"].src=CollaspedImg
					document.images["ContactImg"].src=CollaspedImg
					
					CheckExpandableMenu()
					
					break;
				case "PressTd" :
					display=document.getElementById("PressSub").style.display ;
					if (display==null ||display=='') {
						document.images["PressImg"].src=CollaspedImg ;
					}
					else {
						document.images["PressImg"].src=DownImg ;
						
					}
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
					
					document.images["FacultyImg"].src=CollaspedImg ;
					document.images["ContactImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["ApplyImg"].src=CollaspedImg
					break;
				case "ContactTd" :
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"
					document.getElementById("FacultyTd").style.backgroundColor="#ffffff"
															
					document.images["FacultyImg"].src=CollaspedImg ;
					document.images["ApplyImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["ContactImg"].src=SelectedImg

					CheckExpandableMenu()
					break;
				case "FacultyTd" :
					document.getElementById("ApplyTd").style.backgroundColor="#ffffff"
					document.getElementById("AboutTd").style.backgroundColor="#ffffff"
					document.getElementById("TuitionTd").style.backgroundColor="#ffffff"
					document.getElementById("MissionTd").style.backgroundColor="#ffffff"
					document.getElementById("PressTd").style.backgroundColor="#ffffff"
					document.getElementById("ContactTd").style.backgroundColor="#ffffff"
					document.getElementById("ProgramTd").style.backgroundColor="#ffffff"

					document.images["FacultyImg"].src=SelectedImg ;
					document.images["ApplyImg"].src=CollaspedImg
					document.images["AboutImg"].src=CollaspedImg
					document.images["TuitionImg"].src=CollaspedImg
					document.images["MissionImg"].src=CollaspedImg
					document.images["ContactImg"].src=CollaspedImg
					break;
				default :
					ItemName="0000" ;
					break ;
			}
			
			
			
			}
		
		function CheckExpandableMenu() {
			var display ;
			display=document.getElementById("ProgramSub").style.display ;
			if (display==null ||display=='') {
				document.images["ProgramImg"].src=ExpandedNotSelected ;
			}
			else {
				document.images["ProgramImg"].src=CollaspedImg;
				
			}
			display=document.getElementById("PressSub").style.display ;
			if (display==null ||display=='') {
				document.images["PressImg"].src=ExpandedNotSelected ;
			}
			else {
				document.images["PressImg"].src=CollaspedImg ;
				
			}
		}



function PageQuery(q) {
	if(q.length > 1) this.q = q.substring(1, q.length);
		else this.q = null;
			this.keyValuePairs = new Array();
		if(q) {
			for(var i=0; i < this.q.split("&").length; i++) {
				this.keyValuePairs[i] = this.q.split("&")[i];
			}
		}
		this.getKeyValuePairs = function() { return this.keyValuePairs; }
		this.getValue = function(s) {
			for(var j=0; j < this.keyValuePairs.length; j++) {
				if(this.keyValuePairs[j].split("=")[0] == s)
					return this.keyValuePairs[j].split("=")[1];
				}
				return false;
				}
		this.getParameters = function() {
		var a = new Array(this.getLength());
			for(var j=0; j < this.keyValuePairs.length; j++) {
				a[j] = this.keyValuePairs[j].split("=")[0];
			}
			return a;
			}
			this.getLength = function() { return this.keyValuePairs.length; } 
		}

function queryString(key){
	var page = new PageQuery(window.location.search); 
	return unescape(page.getValue(key)); 
	}
	
function CheckQueryString(sId) {	
	
	switch(queryString(sId)) {
			case "0" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press0Span").style.color="#660000" 
				document.images["CurrentImg"].src=SelectedImg ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["Img5"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				
				break;
			case "1" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press1Span").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=SelectedImg ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["Img5"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "2" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press2Span").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=SelectedImg ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["Img5"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "3" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press3Span").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=SelectedImg ;
				document.images["Img4"].src=Bullet ;
				document.images["Img5"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "4" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press4Span").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=SelectedImg ;
				document.images["Img5"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "5" :
				document.getElementById("PressSub").style.display = '';
				document.images["PressImg"].src=DownImg ;
				document.getElementById("PressTd").style.backgroundColor="#ffffe6"
				document.getElementById("Press5Span").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["Img5"].src=SelectedImg ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "School" :
				document.getElementById("ProgramSub").style.display = '';
				document.images["ProgramImg"].src=DownImg ;
				document.getElementById("ProgramTd").style.backgroundColor="#ffffe6"
				document.getElementById("SchoolSpan").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["SchoolImg"].src=SelectedImg ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "Degree" :
				document.getElementById("ProgramSub").style.display = '';
				document.images["ProgramImg"].src=DownImg ;
				document.getElementById("ProgramTd").style.backgroundColor="#ffffe6"
				document.getElementById("DegreeSpan").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=SelectedImg ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "Careers" :
				document.getElementById("ProgramSub").style.display = '';
				document.images["ProgramImg"].src=DownImg ;
				document.getElementById("ProgramTd").style.backgroundColor="#ffffe6"
				document.getElementById("CareersSpan").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=SelectedImg ;
				document.images["LengthImg"].src=Bullet ;
				break;
			case "Length" :
				document.getElementById("ProgramSub").style.display = '';
				document.images["ProgramImg"].src=DownImg ;
				document.getElementById("ProgramTd").style.backgroundColor="#ffffe6"
				document.getElementById("LengthSpan").style.color="#660000"
				document.images["CurrentImg"].src=Bullet ;
				document.images["Img1"].src=Bullet ;
				document.images["Img2"].src=Bullet ;
				document.images["Img3"].src=Bullet ;
				document.images["Img4"].src=Bullet ;
				document.images["SchoolImg"].src=Bullet ;
				document.images["DegreeImg"].src=Bullet ;
				document.images["CareersImg"].src=Bullet ;
				document.images["LengthImg"].src=SelectedImg ;
				break;
			case "Apply" :
				document.images["ApplyImg"].src=SelectedImg ;
				document.getElementById("ApplyTd").style.backgroundColor="#ffffe6"
				document.getElementById("ApplyTd").style.color="#660000" ;
				document.getElementById("ApplySpan").style.color="#660000"
				break;
			case "About" :
				document.images["AboutImg"].src=SelectedImg ;
				document.getElementById("AboutTd").style.backgroundColor="#ffffe6"
				document.getElementById("AboutTd").style.color="#660000" ;
				document.getElementById("AboutSpan").style.color="#660000"
				break;
			case "Tuition" :
				document.images["TuitionImg"].src=SelectedImg ;
				document.getElementById("TuitionTd").style.backgroundColor="#ffffe6"
				document.getElementById("TuitionTd").style.color="#660000" ;
				document.getElementById("tuitionSpan").style.color="#660000"
				break;
			case "Mission" :
				document.images["MissionImg"].src=SelectedImg ;
				document.getElementById("MissionTd").style.backgroundColor="#ffffe6"
				document.getElementById("MissionTd").style.color="#660000" ;
				document.getElementById("MissionSpan").style.color="#660000"
				break;
			case "Contact" :
				document.images["ContactImg"].src=SelectedImg ;
				document.getElementById("ContactTd").style.backgroundColor="#ffffe6"
				document.getElementById("ContactTd").style.color="#660000" ;
				document.getElementById("ContactSpan").style.color="#660000"
				break;
			case "Faculty" :
				document.images["FacultyImg"].src=SelectedImg ;
				document.getElementById("FacultyTd").style.backgroundColor="#ffffe6"
				document.getElementById("FacultyTd").style.color="#660000" ;
				document.getElementById("FacultySpan").style.color="#660000"
				break;
			
	    }

}

function changeCursor(bOn,Id) {
	
	if(bOn) {
		document.getElementById(Id).style.cursor="hand" ;
	}
	else
	{
		document.getElementById(Id).style.cursor='' ;
	}
}
