timegap=500
followspeed=5
followrate=40
suboffset_top=0;
suboffset_left=0;

effect = "fade(duration=0.3);Shadow(color='#777777', Direction=0, Strength=0)"

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,brID,total,thestring,subLeftOffset,subTopOffset,varTop,varLeft,menuStr;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
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"; brID="ie"}
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
	brID = "ns"
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

brID = brID + version

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";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function getNavVars(){
	switch(OS)
	{
		case "Mac" :
			subLeftOffset = 13
			subTopOffset  = 17
			switch (brID) 
			{ 
			   case "ns4" : 
					varTop=60; 
					varLeft=(window.innerWidth/2)-45;
					menuStr = "document.layers['menu1'].style.left"
			      break; 
			   default : 
					varTop = 60
					varLeft= referenceimage.offsetLeft + 20
					menuStr = "document.getElementById('menu1').style.left"
			} 
			break;
		default :
			subLeftOffset = 2
			subTopOffset  = 0
			switch (brID) 
			{ 
			   case "ns4" : 
					varTop=60; 
					varLeft=(window.innerWidth/2)-45;
					menuStr = "document.layers['menu1'].style.left"
			      break; 
			   case "ns5" : 
					varTop=53; 
					varLeft=(window.innerWidth/2)-45;
					menuStr = "document.layers['menu1'].style.left"
					
			      break; 
			   default : 
					varTop = referenceimage.offsetTop - 24
					varLeft = referenceimage.offsetLeft
					menuStr = "document.getElementById('menu1').style.left"
			} 
	}
	
}

getNavVars()

navtabs=["tab_gr.gif","tab_bl.gif","tab_pr.gif","tab_pi.gif","tab_ga.gif"]	
ti=0

prop1=[						// prop1 is an array of properties you can have as many property arrays as you need
"ffffff",					// Off Font Color
"003366",					// Off Back Color
"ffffff",					// On Font Color
"336699",					// On Back Color
"6699cc",					// Border Color
10,							// Font Size
"normal",					// Font Style 
"bold",						// Font Weight
"Arial, Helvetica, sans-serif",	// Font
3,							// Padding
,				// Sub Menu Image (Leave blank if not needed)
0,							// 3D Border & Separator
"66ffff",					// 3D High Color
"000099",					// 3D Low Color
"",					// Referer item Font Color (leave this blank to disable)
"",					// Referer item Back Color (leave this blank to disable)
]