////////////////////////////////////
// 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
"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
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, 61, 162, 1,
                , style1, 1, "left", ,
               0, 0, 0, , , 
               0, 0, , , 0, ];
    } 
    else
    {
		if(level==2) 
		{
         menu=[parentid, , , 180, 1,
                , style2, 0, "left", ,
               0, 0, 0, , , 
               0, 0, , , 0, ];
		} 
		else 
		{
			if (level==3)
			{
				menu=[parentid, , , 180, 1,
                , style3, 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;
}

/*
//Now add the menu items here

addmenu(1,'1',
['<div style="height:40px; padding-top:12px;">Home</div>','index.html',,'',1
,'<div style="height:40px; padding-top:12px;">About Us</div>','show-menu=aboutus',,'',1
,'<div style="height:40px; padding-top:12px;">Closing Agent Resources</div>','closingagentrec.html',,'',1
,'<div style="height:40px; padding-top:12px;">Relo Broadcast News</div>','relobroadcastnews.html',,'',1
,'<div style="height:40px; padding-top:12px;">Templates</div>','show-menu=template',,'',1
,'<div style="height:40px; padding-top:12px;">Useful Links</div>','show-menu=links',,'',1]
);

//level2 menu for About Us

addmenu(2,'aboutus',
['Office','aboutusoffices.html',,,1
,'Our Company','aboutusourcompany.html',,,1
,'Vision & Mission','aboutusvisiion_mission.html',,,1
,'Corporate','http://www.trgc.com target="_blank"',,,1
,'Organization Chart','pdf/TRGRelo_Division_Org_Chart.pdf target="_blank"',,,1
,'Privacy Policy','aboutusprivacy.html',,,1
,'Terms of Use','aboutustermofuse.html',,,1]
);

//level 2 menu for Templates

addmenu(2,'template',
['Gateway Templates','gateway_templates.html',,,1
,'Landway Templates','landway_templates.html',,,1
,'Mardan Templates','mardan_templates.html',,,1
,'Southern Equity Templates','southern_templates.html',,,1
,'Texas American Relo Templates','texas_templates.html',,,1
,'Mid South Templates','midsouth_templates.html',,,1
,'LHF Templates','lhf_templates.html',,,1]
);

//level 2 menu for Customer Info

addmenu(2,'closedreq',
['RCO News Broadcasts','#',,,1
,'Downliner News Broadcasts','#',,,1
,'News Broadcast Achieves','#',,,1]
);

//level 2 menu for Useful Links

addmenu(2,'links',
['UPS Tracking','http://www.ups.com/tracking/tracking.html target="_blank"',,,1
,'USPS Tracking','http://www.usps.com/shipping/trackandconfirm.htm?from=home&page=0035trackandconfirm target="_blank"',,,1
,'FedEx Tracking','http://www.fedex.com/us/pckgenvlp/track target="_blank"',,,1 
,'Zip Code','http://zip4.usps.com target="_blank"',,,1
,'Realogy','http://www.realogy.com target="_blank"',,,1
,'TRGC','http://www.trgc.com target="_blank"',,,1]
);
dumpmenus();
*/