////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

timegap=500;                   // The time delay for menus to remain visible
followspeed=5;                 // Follow Scrolling speed
followrate=40;                 // Follow Scrolling Rate
suboffset_top=5;              // Sub menu offset Top position
suboffset_left=5;             // Sub menu offset Left position

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.
"235180",					// Mouse Off Font Color
"FFFFFF",				// Mouse Off Background Color
"235180",				// Mouse On Font Color
"C2D4E6",				// Mouse On Background Color
"477DB2",				// Menu Border Color 
11,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"Verdana",				// Font Name
2,						// Menu Item Padding
WebsiteRootFolder + "/images/arrow.gif",						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
,						// 3D High Color
,						// 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)
,						// Menu Header Font Color (Leave blank if headers are not needed
,						// Menu Header Background Color (Leave blank if headers are not needed)
]

style2=[				// style4 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"235180",				// Mouse Off Font Color
"FFFFFF",				// Mouse Off Background Color
"235180",				// Mouse On Font Color
"D3F0D4",				// Mouse On Background Color
"477DB2",				// Menu Border Color 
11,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"Verdana",				// Font Name
4,						// Menu Item Padding
"",						// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
,						// 3D High Color
,						// 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)
,						// Menu Header Font Color (Leave blank if headers are not needed
,						// Menu Header Background Color (Leave blank if headers are not needed)
]

////////////////////////////////////
// Editable properties END here   //
////////////////////////////////////


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. DO NOT CHANGE.
menunum=0;
menus=new Array();
_d=document;
function dumpmenus(){
    mt="<script language=JavaScript>";
    for(a=1;a<menus.length;a++){
        mt+=" menu"+a+"=menus["+a+"];"		
    }
    mt+="<\/script>";
    _d.write(mt);	
}
function myWin(myURL){
	window.open(myURL);
	}
	
function addmenu(level, parentid, menuarray) {
    var start=22;
    var i;
    // menu=[name, top, left, width, border, 
    // position, properties, always_visible, alignment, filter, 
    // follow_user, horiz_menu, keep_alive, pos_of_sub_image_top, total_menu_width, 
    // right_to_left, onclick, div_id_to_hide, background_image, scrollable_menu, misc];
		
    if(level==1) 
    {
         menu=[parentid, 252, 60, 163, 1,
                , style1, 1, "left", ,
               0, 0, 0, , , 
               0, 0, , , 0, ];
    }
    else 
    {
		if(level==2 || level==3) 
		{
			menu=[parentid, , , 180, 1,
                , style2, 0, "left", ,
               0, 0, 0, , , 
               0, 0, , , 0, ];
		} 
	}
	
	if (level == 1) 
	{	    
		var identification = 0;	
		for(i=start; i<start+menuarray.length; i++) 
		{
			if (identification == 0 || identification == 5) 
			{
				menuarray[i-start] = '<div style="height:40px; padding-top:12px;">' + menuarray[i-start] + '</div>';	
				identification = 0;
			}	
			identification++;
		}
    }	
      
    for(i=start; i<start+menuarray.length; i++)
        menu[i] = menuarray[i-start];

    menunum++;
    menus[menunum]=menu;
}
