////////////////////////////////////
// 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.
"000000",					// Mouse Off Font Color
"FFFFFF",				// Mouse Off Background Color
"000000",				// Mouse On Font Color
"FCF0CF",				// Mouse On Background Color
"EEB211",				// 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.
"000000",				// Mouse Off Font Color
"FFFFFF",				// Mouse Off Background Color
"000000",				// Mouse On Font Color
"FCF0CF",				// Mouse On Background Color
"EEB211",				// 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, toppos, leftpos, 162, 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;
}
/*
//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;">Consumer Information</div>','show-menu=custinfo',,'',1
,'<div style="height:40px; padding-top:12px;">Useful Links</div>','show-menu=links',,'',1]
);

//level2 menu for About Us

addmenu(2,'aboutus',
['Office','office.html',,,1
,'Why Associates Title','aboutuswhyassociate.html',,,1
,'Corporate','http://www.realogy.com/ target="_blank"',,,1
,'Privacy & Usage','privacy_policy.html',,,1
,'Terms of Use','termsofuse.html',,,1]
);

//level 2 menu for Customer Information

addmenu(2,'custinfo',
['Why I need Title Insurance?','why_insurance.html',,,1
,'What is an Escrow?','what_escrow.html',,,1
,'Using a Real Estate Broker','usingreal_broker.html',,,1
,'Frequently Asked Questions','faq.html',,,1]
);

//level 2 menu for Useful Links

addmenu(2,'links',
['Realtor','http://www.Realtor.com target="_blank"',,,1
,'Calculators','show-menu=calc',,,1
,'Clark County Recorder Treasurer Assessor','http://www.co.clark.nv.us/recorder/recindex.htm target="_blank"',,,1
,'School Links','show-menu=school',,,1
,'Associations Links','show-menu=association',,,1
,'Credit Report','http://www.annualcreditreport.com target="_blank"',,,1
,'Zip Code Search','http://zip4.usps.com/zip4/welcome.jsp target="_blank"',,,1

]
);

//level 3 menu for Useful Links
addmenu(2,'calc',
['Rent v/s Buy','#',,,1
,'Mortgage Principal & Interest','#',,,1
,'Annual Ownership Cost','#',,,1]
);
addmenu(2,'school',
['CCSO','www.ccso.org/ target="_blank"',,,1
,'Education Yahoo','http://education.yahoo.com/k12 target="_blank"',,,1]
);
addmenu(2,'association',
['National Association of Realtors','http://www.realtor.org/ target="_blank"',,,1
,'Greater Las Vegas Association of Realtors','http://www.glvar.net/site/home.asp target="_blank"',,,1
,'American Land Title Association','http://www.alta.org/index.cfm target="_blank"',,,1]
);

dumpmenus();
*/