////////////////////////////////////
// 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=25;              // 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.
"FFFFFF",					// Mouse Off Font Color
"5B1201",				// Mouse Off Background Color
"000000",				// Mouse On Font Color
"E2D0BC",				// Mouse On Background Color
"80966F",				// Menu Border Color 
10,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"Verdana",				// Font Name
3,						// 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)
]

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 
10,						// 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, 76, 230, , 1,
                , style1, 1, "left", ,
               0, 1, 0, , , 
               0, 0, , , 0, ];
    } 
    else 
    {
		if(level==2)
                {
         menu=[parentid, , , 200, 1,
                , style1, 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) {
			
				if (menuarray[i-start] == "Home")
				{
					menuarray[i-start] = '<div style="width:60px;text-align:center">' + menuarray[i-start] + '</div>';						
				}	
									
				if (menuarray[i-start] == "Staff")
				{
					menuarray[i-start] = '<div style="width:70px;text-align:center">' + menuarray[i-start] + '</div>';	
				}
				
				if (menuarray[i-start] == "CE Courses")
					menuarray[i-start] = '<div style="width:110px;text-align:center">' + menuarray[i-start] + '</div>';	

				if (menuarray[i-start] == "Insurance Rates")
					menuarray[i-start] = '<div style="width:130px;text-align:center">' + 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="width: 60px;">Home</div>','index.html',,'',1
,'<div style="width: 70px;">About Us</div>','show-menu=aboutus',,'',1
,'<div style="width: 120px;">Customer Service</div>','show-menu=custserv',,'',1
,'<div style="width: 110px;">Agent Resource</div>','show-menu=agent','http://www.settlementadvantage.com/ target="_blank"','',1
,'<div style="width: 110px;">Lender Resource</div>','http://www.settlementadvantage.com/ target="_blank" ',,'',1
,'<div style="width: 140px;">Consumer Information</div>','show-menu=custInfo',,'',1
,'<div style="width: 90px;">Useful Links</div>','show-menu=links',,'',1]
);



//level2 menu for About Us

addmenu(2,'aboutus',
['Senior Leadership Team','aboutus_senior_leadership.html',,,1
,'Team Player Directory','aboutus_teamplayer_directory.html',,,1
,'Offices','aboutus_offices.html',,,1
,'Our Services','aboutus_ourservices.html',,,1
,'Our Philosophy','aboutus_our_philosophy.html',,,1
,'Company History','aboutus_company_history.html',,,1
,'Corporate','http://www.trgc.com/ target="_blank"',,,1
,'Privacy & Usage','aboutus_privacy&usage.html',,,1]
);

//level 2 menu for Customer service

addmenu(2,'custserv',
['Closing Process','customerservice_closing_process.html',,,1
,'HUD Explanation','customerservice_hud_explanation.html ',,,1
,'Borrower/Seller Information Form','customerservice_borrower_seller.html',,,1
,'Customer Service Request','customerservice_customer_request_form.html',,,1]
);

//level 2 menu for Agent Resources

addmenu(2,'agent',
['Real Estate Document Library','agentresources_realestate_document_library.html',,,1]
);

//level 2 menu for Customer Info

addmenu(2,'custInfo',
['Why Do I Need Title Insurance?','customerinformation_why_do_i_need_insurance.html',,,1
,'Using a Real Estate Broker','customerinformation_using_a_realestate_broker.html',,,1
,'Recording Fees','customerinformation_recording_fees.html',,,1
,'Real Estate Taxes','customerinformation_realestate_taxes.html',,,1
,'Real Estate Glossary','customerservice_realestate_glossary.html',,,1]
);

//level 2 menu for Useful Links

addmenu(2,'links',
['Mortgage Calculator','http://www.mortgage-calc.com target="_blank"',,,1
,'County Websites','usefullinks_countywebsites.html',,,1
,'School Information','http://yahooed.greatschools.net/modperl/cities/NH target="_blank"',,,1]
);

dumpmenus();
*/