// JavaScript Document" 
startList = function() 
{
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("nav" );
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					this.className+=" over";
				 }
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				 }
			}
		  }
	 }
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("nav2" );
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					this.className+=" over";
				 }
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				 }
			}
		  }
	 }
	 if(document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("nav3" );
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					this.className+=" over";
				 }
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				 }
			
			
			}
			
		 }
	 }
	 /****************		&& navRoot = document.getElementById("nav3_1" )	&& navRoot != document.getElementById("nav3_1" )	*******/
				if(document.all&&document.getElementById) 
					{
						navRoot = document.getElementById("nav4" ) ;
						for (i=0; i<navRoot.childNodes.length; i++)
						{
							node = navRoot.childNodes[i];
							if (node.nodeName=="LI") 
							{
								node.onmouseover=function() 
								{
									this.className+=" over";
								 }
								node.onmouseout=function()
								{
									this.className=this.className.replace(" over", "");
								 }
							}
						  }
					 }
						/****************		********/
	  
}
window.onload=startList;
 
//for showmenu

function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
// for hidmenu
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
<!-- Begin
var rotate_delay = 2000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
   }
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
   }
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
   }
}
//  End -->