//change the opacity for different browsersfunction changeOpac(opacity, id) {	var object = document.getElementById(id).style; 	object.opacity = (opacity / 100);	object.MozOpacity = (opacity / 100);	object.KhtmlOpacity = (opacity / 100);	object.filter = "alpha(opacity=" + opacity + ")";}function fadeToggle(inID, opacStart, opacEnd, millisec) {				 //var locations = document.getElementsByTagName("DIV");                  var locations = new Array;	 locations[0] = document.getElementById("location0");	 locations[1] = document.getElementById("location1");	 locations[2] = document.getElementById("location2");					/* This section of the script turns the active div on and the inactive ones off */		 var currentMenu;	 var otherMenus;	 	 	 for (var i = 0; i < locations.length; i++) {     	 		   	 	if (locations[i].id == inID) { 	 			currentMenu = locations[i]; 				currentMenu.style.display = 'block';				}     	 	else { 	 			otherMenus = locations[i];				otherMenus.style.display = 'none'; 				}     }		/*---------------------------------------------------------------------------- */						/* This section below controls the look of the divs fading in and out. IE6 and 7 don't support it, so they'll just turn on and off without the fade (using the functions above) */					//speed for each frame	var speed = Math.round(millisec / 100);	var timer = 0;	//determine the direction for the blending, if start and end are the same nothing happens	if(opacStart > opacEnd) {		for(i = opacStart; i >= opacEnd; i--) {			setTimeout("changeOpac(" + i + ",'" + inID + "')",(timer * speed));			timer++;		}	} else if(opacStart < opacEnd) {		for(i = opacStart; i <= opacEnd; i++)			{			setTimeout("changeOpac(" + i + ",'" + inID + "')",(timer * speed));			timer++;		}	}}