if( !HOMEPAGE ) { var HOMEPAGE = 0; }

_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;


with(menuStyle=new mm_style()) {
	oncolor			= "#042359";
	offcolor		= "#4C3614";
	offbgcolor		= "#D2C4A9";
	pagebgcolor		= "#D2C4A9";
	onbgcolor		= "#B49D74";
	bordercolor		= "#042359";
	separatorcolor	= "#042359";
	borderstyle		= "solid";
	borderwidth		= 1;
	separatorsize	= 1;
	separatorpadding= 0;
	separatorwidth	= 120;
	padding			= 7;
	fontsize		= 11;
	fontweight		= 'bold';
	fontfamily		= "Verdana, Arial, Helvetica, sans-serif";
	subimage		= "/lib/images/tri_right.gif";
	subimagepadding	= 10;
	overfilter		= "Fade(duration=0.3);Alpha(opacity=90)";
	outfilter		= "Fade(duration=0.3)";
}

with(milonic=new menuname("Gallery")){
	style		= menuStyle;
	orientation	= "vertical";
	itemwidth	= 160;
	top			= "offset=-20";
	left		= HOMEPAGE==1 ? "offset=137" : "offset=170";
	aI("text=&nbsp;Dining Room;url="+BASE_DIR+"/gallery/g1/dining_room_furniture/index.php");
	aI("text=&nbsp;Bedroom;url="+BASE_DIR+"/gallery/g2/bedroom_furniture/index.php");
	aI("text=&nbsp;Living Room;showmenu=Living");
	aI("text=&nbsp;Occasional;url="+BASE_DIR+"/gallery/g4/occasional_furniture/index.php");
	aI("text=&nbsp;Sleep Systems;url="+BASE_DIR+"/gallery/g5/emerald_sleep_systems/index.php");
	aI("text=&nbsp;Recliners;url="+BASE_DIR+"/gallery/g10/recliners/index.php");
	aI("text=&nbsp;Accessories;url="+BASE_DIR+"/gallery/g6/furniture_accessories/index.php");
	aI("text=&nbsp;Youth;url="+BASE_DIR+"/gallery/g9/furniture_for_youth/index.php");

}

with(milonic=new menuname("Living")){
	style		= menuStyle;
	orientation	= "vertical";
	itemwidth	= 160;
	top			= "offset=-20";

	aI("text=&nbsp;Products;url="+BASE_DIR+"/gallery/g3/living_room_furniture/index.php");
	aI("text=&nbsp;Upholstery Construction;url="+BASE_DIR+"/sofa.php");
}

with(milonic=new menuname("About")){
	style		= menuStyle;
	orientation	= "vertical";
	itemwidth	= 160;
	top			= "offset=-20";
	left		= HOMEPAGE==1 ? "offset=137" : "offset=170";
	aI("text=&nbsp;Our Company;url="+BASE_DIR+"/about_us.php");
	aI("text=&nbsp;Contact Us;url="+BASE_DIR+"/contact_us.php");
}

with(milonic=new menuname("Resources")){
	style		= menuStyle;
	orientation	= "vertical";
	itemwidth	= 240;
	top			= "offset=-20";
	left		= HOMEPAGE==1 ? "offset=137" : "offset=170";
	aI("text=&nbsp;Job Opportunities;url="+BASE_DIR+"/job_opportunities.php");
	aI("text=&nbsp;Product Care and Warranties;showmenu=Warranties");
	aI("text=&nbsp;Dealer Resources;showmenu=Dealer");
	aI("text=&nbsp;Employee Resources;showmenu=Employee");
	aI("text=&nbsp;Regulations;showmenu=Regulations");
	aI("text=&nbsp;Terms and Policies;showmenu=Terms");
}

with(milonic=new menuname("Warranties")){
	style		= menuStyle;
	aI("text=&nbsp;Emerald Home Furnishings Warranty;url="+BASE_DIR+"/warranty_emerald_home.php");
	aI("text=&nbsp;Emerald Sleep Systems Warranty;url="+BASE_DIR+"/warranty_sleep_systems.php");
	aI("text=&nbsp;Caring for Your Upholstery ;url="+BASE_DIR+"/warranty_caring_for_leather.php");
}

with(milonic=new menuname("Dealer")){
	style		= menuStyle;
	aI("text=&nbsp;Dealer Login;url=http://ebiz4.emeraldhome.com/default.aspx?Page=Logon");
}

with(milonic=new menuname("Employee")){
	style		= menuStyle;
	aI("text=&nbsp;Employee Benefits;url=/employee_benefits.php");
}

with(milonic=new menuname("Regulations")){
	style		= menuStyle;
	aI("target=_blank;text=&nbsp;C-TPAT;url="+BASE_DIR+"/c-tpat.pdf");
	aI("text=&nbsp;Regulations Compliance Notofication;url="+BASE_DIR+"/list_of_regulations.php");
}

with(milonic=new menuname("Terms")){
	style		= menuStyle;
	aI("text=&nbsp;Privacy Policy;url="+BASE_DIR+"/privacy_policy.php");
	aI("text=&nbsp;Terms of Use;url="+BASE_DIR+"/terms_of_use.php");
}

drawMenus();

