// JavaScript Document

// Begin Page Load Code
function init(){


	if(setTab != '' && setTab!= "tab00"){
		
			document.getElementById(setTab).className = "tb-act";
		/* Reserved for future use
		switch(setTab)
			{
				case 'tab02':
					document.getElementById('sm').style.display="block";
					document.getElementById('sm-pro').style.display="block";

					break;    
				case 'tab03':
					document.getElementById('sm').style.display="block";
				  	document.getElementById('sm-cur').style.display="block";				  
			  		break;
				case 'tab04':
					document.getElementById('sm').style.display="block";
				  	document.getElementById('sm-acad').style.display="block";				  
			  		break;		
						
				default:
			}
	*/
	}

}
// End Page Load Code
// Begin Search Code
function SearchKind()
{
	var rad_val = "";	
	for (var i=0; i < 2; i++)
   	{
   		if (document.searchform.Kind[i].checked)
      	{
      		rad_val = document.searchform.Kind[i].value;
      	}
   }
	
	
  if(rad_val == 'TROY')
  { 
	document.sitesearch.q.value = document.searchform.query.value;
	document.forms["sitesearch"].submit();
	return false;
  
  }
  else
  if(rad_val == 'Directory')
  {
	   
   	document.dsearch.lastname.value = document.searchform.query.value;
	document.forms["dsearch"].submit();
	return false;

	}

}
// End Search Code
// Begin Text Only Code
function textOnly(){
	document.write('<a href="http://assistive.usablenet.com/tt/');
	document.write(document.URL + '">Text Only</a>');
}
// End Text Only Code
// Begin Rotating Photo Code
function image() {
};
image = new image();
number = 0;
image[number++] = "<div id='rcontainer'><div id='rcaption'></div></div><img src='http://ar.troy.edu/images/rotating/01-atlantic.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
image[number++] = "<div id='rcontainer'><div id='rcaption'</div></div><img src='http://ar.troy.edu/images/rotating/02-atlantic.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
image[number++] = "<div id='rcontainer'><div id='rcaption'></div></div><img src='http://ar.troy.edu/images/rotating/03-fteustis.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
image[number++] = "<div id='rcontainer'><div id='rcaption'></div></div><img src='http://ar.troy.edu/images/rotating/04-ftmyer.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
image[number++] = "<div id='rcontainer'><div id='rcaption'></div></div><img src='http://ar.troy.edu/images/rotating/05-littlecreek.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
image[number++] = "<div id='rcontainer'><div id='rcaption'></div></div><img src='http://ar.troy.edu/images/rotating/06-atlantic.png' width='317' height='113' id='photo-rotating' alt='TROY'>"
increment = Math.floor(Math.random() * number);
// End Rotating Photo Code

function showMenu(nid){
        document.getElementById(nid).style.display="block";
}

function hideMenu(nid){
        document.getElementById(nid).style.display="none";
}


window.onload = init;
