/********** Initialization ********************/
var menuStyle = "horizontal" 
// value should be "horizontal" OR "vertical"var totalSubMenus = 2; 
// Total number of dropdown menus.
if(menuStyle == "horizontal"){	var menu1LeftPos = 472; 
// left position of the Dropdown menu 1	
var menu2LeftPos = 350; 
// left position of the Dropdown menu 2	
}else if(menuStyle == "vertical")
{	var menuLeftPos = 132; 
// left position of all the Dropdown menu.
}
var table_width=776; 
// Width of the table containing actual contents.
/********** End of Initialization ********************//********** Start Function to show menus. ********************/

/********** End Function to hide menus. ********************//********** Start Function to Relocate menus. ********************/
var browser;
function locateDiv(){	 

var detect = navigator.userAgent.toLowerCase(); 
// Browser info string.	 
var OS,version,total,thestring;	

/********** Start Function to check OS, Browser, Version string in the Browser info string. ********************/	
function checkIt(string)	{		
place = detect.indexOf(string) + 1;		
thestring = string;		
return place;	
}	
/********** End Function to check OS, Browser, Version string in the Browser info string. ********************/	/********** Start Browser Detection ********************/	
if (checkIt('konqueror'))
{		
browser = "Konqueror";		
OS = "Linux";	
}	
else if (checkIt('safari')) browser = "Safari"	
else if (checkIt('firefox')) browser = "Firefox"	
else if (checkIt('netscape')) browser = "Netscape"	
else if (checkIt('omniweb')) browser = "OmniWeb"	
else if (checkIt('opera')) browser = "Opera"	
else if (checkIt('webtv')) browser = "WebTV";	
else if (checkIt('icab')) browser = "iCab"	
else if (checkIt('msie')) browser = "Internet Explorer"	
else if (!checkIt('compatible')){		
browser = "Netscape"		
version = detect.charAt(8);	

}	
else browser = "An unknown browser";	


/********** End Browser Detection********************/	/********** Start Version Detection********************/	
if (!version) version = detect.charAt(place + thestring.length);	
/********** End Version Detection********************/	/********** Start OS Detection********************/	
if (!OS){		
if (checkIt('linux')) OS = "Linux";		
else if (checkIt('x11')) OS = "Unix";		
else if (checkIt('mac')) OS = "Mac"		
else if (checkIt('win')) OS = "Windows"		
else OS = "an unknown operating system";	
}	
return browser;
}
/********** End Function to Relocate menus. ********************/
