
function init()
{
	if (document.getElementById)
		var x = document.getElementById('sidenav').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['sidenav'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = '/img/'+ x[i].id + '_nrm.gif';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = '/img/'+ x[i].id + '_over.gif';
		preloads['o'+x[i].id].onerror = function () {this.src='pix/default.gif'}
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['n'+this.id].src;}
	}

	if (document.getElementById)
		var y = document.getElementById('globalnav2').getElementsByTagName('IMG');
	else if (document.all)
		var y = document.all['globalnav2'].all.tags('IMG');
	else return;
	var preloads2 = new Object();
	for (var i=0;i<y.length;i++)
	{
		preloads2['n'+y[i].id] = new Image;
		preloads2['n'+y[i].id].src = '/img/'+ y[i].id + '_nrm.gif';
		preloads2['o'+y[i].id] = new Image;
		preloads2['o'+y[i].id].src = '/img/'+ y[i].id + '_over.gif';
		preloads2['o'+y[i].id].onerror = function () {this.src='pix/default.gif'}
		y[i].onmouseover = function () {this.src=preloads2['o'+this.id].src;}
		y[i].onmouseout = function () {this.src=preloads2['n'+this.id].src;}
	}
}


function show(theId) {

	if(document.getElementById)
		{var z = document.getElementById('sidenav').getElementsByTagName('DIV');}
	
	for (var i=0; i<z.length; i++)
		{z[i].style.display = "none";}
		
	if(document.getElementById(theId).style.display == "none")
		{document.getElementById(theId).style.display = "block";}
	else
		{document.getElementById(theId).style.display = "none";}
return;
}
        function fsrchcatch()
        {
			for (var i=0; i < document.pplantfsrch.srchfilter.length; i++)
			   {
			   if (document.pplantfsrch.srchfilter[i].checked)
				  {
				  var rb_val = document.pplantfsrch.srchfilter[i].value;
				  } 
			   }
			//Replace the case 1 info below with that from your own search...
            switch ( rb_val ) {
				case "1" :  
					document.pplantfsrch.action = "http://landscapeservices.msu.edu/search.html";
					document.pplantfsrch.cx.value = "014202833603253761634:8azqmpueclw";
					document.pplantfsrch.cof.value = "FORID:10";
					document.pplantfsrch.ie.value = "UTF-8";
					//document.pplantfsrch.method = "post";
		            document.pplantfsrch.submit();
				    break; 
			   	case "2" : 
					document.pplantfsrch.action = "http://pp.msu.edu/search.html";
					document.pplantfsrch.cx.value = "014202833603253761634:-rw_sp-tcbc";
					document.pplantfsrch.cof.value = "FORID:10";
					document.pplantfsrch.ie.value = "UTF-8";
		            //document.pplantfsrch.method = "post";
		            document.pplantfsrch.submit();
				    break; 
			   	case "3" : 
					document.pplantfsrch.action = "http://www.msu.edu/cgi-bin/redirect2006.cgi";
		            document.pplantfsrch.method = "post";
		            document.pplantfsrch.submit();
				    break; 
			   	default : 
					document.pplantfsrch.action = "http://landscapeservices.msu.edu/search.html";
					document.pplantfsrch.cx.value = "014202833603253761634:8azqmpueclw";
					document.pplantfsrch.cof.value = "FORID:10";
					document.pplantfsrch.ie.value = "UTF-8";
					//document.pplantfsrch.method = "post";
		            document.pplantfsrch.submit();
				    break; 
			}
		}