
// 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;
var menuXoffInit;
var font_size;
var font_size1;
var menu_width;
var menu_pad;


var submenuY;
var submenuX;


if (parseInt(navigator.appVersion)>3) 
{
 if (screen.width == 1755) 
  {
   menuXoffInit=480;
   font_size="13px";
   font_size1="10px";
   menu_width= 180;
   menu_pad =8;
  } 

 if (screen.width == 1600) 
  {
   menuXoffInit=410;
   font_size="13px";
   font_size1="10px";
   menu_width= 180;
   menu_pad =8;
  }
      
 if (screen.width == 1536) 
  {
   menuXoffInit=380;
   font_size="13px";
   font_size1="10px";
   menu_width= 180;
   menu_pad =8;
  }
  
  
 if (screen.width == 1440) 
  {
   menuXoffInit=310;
   font_size="13px";
   font_size1="10px";
   menu_width= 180;
   menu_pad =8;
  }

 if (screen.width == 1280) 
  {
   menuXoffInit=250;
   font_size= "13px";
   font_size1= "10px";
   menu_width= 180;
   menu_pad  = 6;
   submenuY  = 115;
   submenuX  = menuXoffInit + 200;
  }
  if (screen.width == 1170) 
  {
   menuXoffInit=250;
   font_size= "13px";
   font_size1= "10px";
   menu_width= 180;
   menu_pad  = 6;
   submenuY  = 115;
   submenuX  = menuXoffInit + 200;
  }
 
  
 if (screen.width == 1152) 
  {
   menuXoffInit=190;
   font_size= "13px";
   font_size1= "10px";
   menu_width= 180;
   menu_pad  = 6;
   submenuY  = 115;
   submenuX  = menuXoffInit + 200;
  }
 if (screen.width == 1024) 
  {
   menuXoffInit=116;
   font_size= "13px";
   font_size1= "10px";
   menu_width= 180;
   menu_pad  = 6;
   submenuY  = 115;
   submenuX  = menuXoffInit + 200;
  }
 if (screen.width == 800)
  {
   menuXoffInit=10;
   font_size = "10px";
   font_size1= "10px";
   menu_width=  140;
   menu_pad  =  2;
   submenuY  =  125;
   submenuX  =  menuXoffInit + 180;
  }
}
else if (navigator.appName == "Netscape" 
    && parseInt(navigator.appVersion)==3
    && navigator.javaEnabled()) 
  {
   var jToolkit = java.awt.Toolkit.getDefaultToolkit();
   var jScreenSize = jToolkit.getScreenSize();
   if (jScreenSize.width == 1440) menuXoffInit=310;
   if (jScreenSize.width == 1280) menuXoffInit=250;
   if (jScreenSize.width == 1170) menuXoffInit=250;
   if (jScreenSize.width == 1152) menuXoffInit=190;
   if (jScreenSize.width == 1024) menuXoffInit=116;
   if (jScreenSize.width == 800) menuXoffInit=12;
   if (jScreenSize.width == 640) menuXoffInit=0;
   if (jScreenSize.width == 320) menuXoffInit=0;
}


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);"
	menueffect2 = "Fade(duration=0.2);Shadow(color='#eeeedd', Direction=135, Strength=2)"
	menueffect3 = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
	menueffect4 = "Fade(duration=0.2);Shadow(color='#eeeedd', Direction=135, Strength=2)"
}
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
font_size1,					// 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)
"448844",					// 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
font_size1,					// Font Size in pixels
"normal",					// Font Style (italic or normal)
"bold",						// 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)
"448844",					// 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
font_size1,					// 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)
]


PlainStyle=[                  // PlainStyle is an array of properties. You can have as many property arrays as you need
"navy",                       // Mouse Off Font Color
"ccccff",                     // Mouse Off Background Color (use zero for transparent in Netscape 6)
"ffebdc",                     // Mouse On Font Color
"4b0082",                     // Mouse On Background Color
"000099",                     // Menu Border Color
font_size1,                         // Font Size (default is px but you can specify mm, pt or a percentage)
"normal",                     // Font Style (italic or normal)
"bold",                       // Font Weight (bold or normal)
"arial,sans-serif,verdana",   // Font Name
4,                            // Menu Item Padding or spacing
"",     // Sub Menu Image (Leave this blank if not needed)
0,                            // 3D Border & Separator bar
"ffff00",                     // 3D High Color
"ccffff",                     // 3D Low Color
"",                     // Current Page Item Font Color (leave this blank to disable)
"",                       // Current Page 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)
,                             // Menu Item Separator Color
]



stylePortalMenu=[				// 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.
"000044",					// Mouse Off Font Color
"ffffff",					// Mouse Off Background Color
"ffffff",					// Mouse On Font Color
"aaaaff",					// Mouse On Background Color
"",						// Menu Border Color
font_size,					// Font Size in pixels
"normal",					// Font Style (italic or normal)
"bold",						// Font Weight (bold or normal)
"arial,sans-serif,verdana;",			// Font Name
menu_pad,					// 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)
"448844",					// Menu Header Font Color (Leave blank if headers are not needed)
"",						// Menu Header Background Color (Leave blank if headers are not needed)
]
