// global variables for Dynamic Menu Control

var timegap=500				// The time delay for menus to remain visible on mouse off
var followspeed=5			// Follow Scrolling speed (higher number makes the scrolling smoother but slower)
var followrate=40			// Follow Scrolling Rate (use a minimum of 40 or you may experience problems)
var suboffset_top=6;			// Sub menu offset Top position 
var suboffset_left=12;			// Sub menu offset Left position
var menunum=0;
var menus=new Array();
var menueffect,menueffect1,menueffect2,menueffect3,menueffect4;


menueffect1 = "";
menueffect2 = "";
menueffect3 = "";
menueffect4 = "";

if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	menueffect  = "Fade(duration=0.2);Shadow(color='#eeeedd', Direction=135, Strength=2)"
	menueffect1 = "Fade(duration=0.2);"
	menueffect3 = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	menueffect = "Shadow(color='#777777', Direction=135, Strength=5)"
}


function addmenu()
{
  menunum++;
  menus[menunum]=menu;
}

style1=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"fffacd",					// Mouse Off Font Color
"",						// Mouse Off Background Color
"ffff00",					// Mouse On Font Color
"",						// Mouse On Background Color
"",						// Menu Border Color
"10px",						// Font Size in pixels
"normal",					// Font Style (italic or normal)
"normal",					// Font Weight (bold or normal)
"arial,sans-serif,verdana;",			// Font Name
2,						// Menu Item Padding
"",						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
"111111",					// 3D High Color
"ff0000",					// 3D Low Color
,						// Referer Item Font Color (leave this blank to disable)
"",						// Referer Item Background Color (leave this blank to disable)
"",						// Top Bar image (Leave this blank to disable)
"99cc00",					// Menu Header Font Color (Leave blank if headers are not needed)
"",						// Menu Header Background Color (Leave blank if headers are not needed)
]


style2=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"fffacd",					// Mouse Off Font Color
"",						// Mouse Off Background Color
"ffff00",					// Mouse On Font Color
"",						// Mouse On Background Color
"",						// Menu Border Color
"12px",						// Font Size in pixels
"normal",					// Font Style (italic or normal)
"normal",					// Font Weight (bold or normal)
"arial,sans-serif,verdana;",			// Font Name
2,						// Menu Item Padding
"",						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
"111111",					// 3D High Color
"ff0000",					// 3D Low Color
,						// Referer Item Font Color (leave this blank to disable)
"",						// Referer Item Background Color (leave this blank to disable)
"",						// Top Bar image (Leave this blank to disable)
"99cc00",					// Menu Header Font Color (Leave blank if headers are not needed)
"",						// Menu Header Background Color (Leave blank if headers are not needed)
]

style3=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"000066",					// Mouse Off Font Color
"fffacd",					// Mouse Off Background Color
"ffff00",					// Mouse On Font Color
"cc3300",					// Mouse On Background Color
"",						// Menu Border Color
"12px",						// Font Size in pixels
"normal",					// Font Style (italic or normal)
"normal",					// Font Weight (bold or normal)
"arial,sans-serif,verdana;",			// Font Name
2,						// Menu Item Padding
"",						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
"66ffff",					// 3D High Color
"000099",					// 3D Low Color
,						// Referer Item Font Color (leave this blank to disable)
"",						// Referer Item Background Color (leave this blank to disable)
,						// Top Bar image (Leave this blank to disable)
"ffffff",					// Menu Header Font Color (Leave blank if headers are not needed)
"000099",					// Menu Header Background Color (Leave blank if headers are not needed)
]

 
 
 
