/* JavaScript for GoColumbia.Edu, Columbia College, Sonora California
/* Code documented for future maintenance and to sate the curious
/* Developed by B Hill. Yosemite CCD IT. hillb@yosemite.edu
/* Revision A1, Globally Executing Scripts, Mar 2009
/* All rights reserved
*/

//Homepage Image
//**************
if(document.getElementById('imgRotate')) { //check for existence to make sure we're on homepage
	if (document.getElementById('imgRotate').src.indexOf('.jpg') == -1) //determine whether the rotator has an image as URL
	{
		document.getElementById('imgRotate').style.display="none";	//if not, hide the rotator
		document.getElementById('imgStatic').style.display="inline"; //and show the static version

	}
}

//Search Form
//***********
//Set default value of search form
document.getElementById('q').value="keywords";

//prep search function for use on user focus
function prepSearch() {
		if (document.getElementById('q').value=="keywords") { document.getElementById('q').value="";}
	}

//Jump Form
//*********
//Make Jump Menu visible
document.getElementById('jumpMenu').style.visibility = 'visible';
document.getElementById('jumpMenu').style.display = 'inline';

//Jump Menu Execute 
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}