fixMozillaZIndex=false; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps _menuCloseDelay=100; _menuOpenDelay=0; _subOffsetTop=0; _subOffsetLeft=-0; // calculate offset var oBody = document.body; var intWindowWidth = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth); var myOffset = (intWindowWidth - 850) / 2 + 298; // trap re-size event function reDo(){ // check window size actually changed as this event is triggered in IE by menu mouseover var intWindowWidthNew = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth); if (intWindowWidth != intWindowWidthNew) { if((navigator.appVersion.indexOf("MSIE 6.0")>0) || (navigator.appVersion.indexOf("MSIE 7.")>0)) { window.location.reload() ; } else { window.location.href = window.location.href; } } } window.onresize = reDo; // special FF layout calculations if(navigator.userAgent.indexOf("Firefox")!=-1){ //var versionindex=navigator.userAgent.indexOf("Firefox")+8 //if (parseInt(navigator.userAgent.charAt(versionindex))>=1) { var strItemHeight=90 var strItemWidth=112 myOffset = myOffset - 8 } else { var strItemHeight=75 var strItemWidth=112 } //} // CUSTOM DYNAMIC STICKY MENU VARS AND SETTINGS var myMainMenuBG1 = ""; var myMainMenuBG2 = ""; var myMainMenuBG3 = ""; var myMainMenuBG4 = ""; var mySubMenuVisible1 = "0"; var mySubMenuVisible2 = "0"; var mySubMenuVisible3 = "0"; var mySubMenuVisible4 = "0"; // get file name fullPath = location.pathname; lastSlash = fullPath.lastIndexOf("/"); fileName = fullPath.substring(lastSlash+1,fullPath.length); // set active submenu by script name switch(fileName) { case "furniture.php": var myMainMenuBG1 = "bgimage='images/menu_tab_on.gif';"; mySubMenuVisible1 = "1"; break; case "accessories.php": var myMainMenuBG2 = "bgimage='images/menu_acc_on.gif';"; mySubMenuVisible2 = "1"; break; case "press.php": case "events.php": case "installations.php": case "TravelLog.php": var myMainMenuBG3 = "bgimage='images/menu_comm_on.gif';"; mySubMenuVisible3 = "1"; break; case "history.php": case "faq.php": case "finishes.php": case "contact.php": case "contact_confirm.php": var myMainMenuBG4 = "bgimage='images/menu_about_on.gif';"; mySubMenuVisible4 = "1"; break; } // page URL's var furniture = new Array(); furniture[0]="New & Unique"; if ((fileName + location.search) == "furniture.php?CatID=15") furniture[0] = "" + furniture[0] + ""; furniture[1]="Accent Pieces"; if ((fileName + location.search) == "furniture.php?CatID=2") furniture[1] = "" + furniture[1] + ""; furniture[2]="Tables"; if ((fileName + location.search) == "furniture.php?CatID=6") furniture[2] = "" + furniture[2] + ""; furniture[3]="Seating"; if ((fileName + location.search) == "furniture.php?CatID=3") furniture[3] = "" + furniture[3] + ""; furniture[4]="Cabinets"; if ((fileName + location.search) == "furniture.php?CatID=9") furniture[4] = "" + furniture[4] + ""; var accessories = new Array(); accessories[0]="Handicrafts"; if ((fileName + location.search) == "accessories.php?CatID=14") accessories[0] = "" + accessories[0] + ""; accessories[1]="Antiques"; if ((fileName + location.search) == "accessories.php?CatID=5") accessories[1] = "" + accessories[1] + ""; accessories[2]="Structures"; if ((fileName + location.search) == "accessories.php?CatID=10") accessories[2] = "" + accessories[2] + ""; accessories[3]="Landscape Accents"; if ((fileName + location.search) == "accessories.php?CatID=7") accessories[3] = "" + accessories[3] + ""; accessories[4]="Outdoor Teak"; if ((fileName + location.search) == "accessories.php?CatID=13") accessories[4] = "" + accessories[4] + ""; var community = new Array(4) community[0]="News & Events"; if (fileName == "events.php") community[0] = "" + community[0] + ""; community[1]="Installations"; if (fileName == "installations.php") community[1] = "" + community[1] + ""; community[2]="Press"; if (fileName == "press.php") community[2] = "" + community[2] + ""; community[3]="Travel Log"; if (fileName == "TravelLog.php") community[3] = "" + community[3] + ""; var about = new Array(4); about[0]="Our Story"; if (fileName == "history.php") about[0] = "" + about[0] + ""; about[1]="Finishes"; if (fileName == "finishes.php") about[1] = "" + about[1] + ""; about[2]="FAQs"; if (fileName == "faq.php") about[2] = "" + about[2] + ""; about[3]="Contact Us"; if ((fileName == "contact.php") || (fileName == "contact_confirm.php")) about[3] = "" + about[3] + ""; with(menuStyle=new mm_style()){ fontfamily="Verdana, Tahoma, Arial"; fontsize="9pt"; fontstyle="normal"; offbgcolor="#EAE6CE"; offcolor="#3D3009"; onbgcolor="#EAE6CE"; oncolor="#3D3009"; overfilter="Fade(duration=0.1);"; padding=7; separatorcolor="#C3BEA1"; separatorsize=1; valign="bottom"; itemheight=strItemHeight; itemwidth=strItemWidth; } with(subMenuStyle=new mm_style()){ bordercolor="#999999"; borderstyle="solid"; borderwidth=0; fontfamily="Verdana, Tahoma, Arial"; fontsize="8pt"; fontstyle="normal"; offbgcolor="#EAE6CE"; offcolor="#3D3009"; onbgcolor="#EAE6CE"; oncolor="#3D3009"; padding=0; subimage="http://www.milonic.com/menuimages/arrow.gif"; subimagepadding=2; onbold=1; } with(milonic=new menuname("Main Menu")){ alwaysvisible=1; orientation="horizontal"; style=menuStyle; keepalive=1; top=52; //screenposition="center"; //menualign="center"; left=myOffset; aI("showmenu=furniture;text=FURNITURE;overbgimage='images/menu_tab_on.gif';" + myMainMenuBG1 + ";url=furniture.php?CatID=6;"); aI("showmenu=accessories;text=ACCESSORIES;overbgimage='images/menu_acc_on.gif';"+ myMainMenuBG2 + ";url=accessories.php?CatID=5;"); aI("showmenu=community;text=COMMUNITY;overbgimage='images/menu_comm_on.gif';" + myMainMenuBG3 + ";url=events.php;"); aI("showmenu=about;text=ABOUT;overbgimage='images/menu_about_on.gif';" + myMainMenuBG4 + ";url=history.php;"); } with(milonic=new menuname("furniture")){ alwaysvisible=mySubMenuVisible1; style=subMenuStyle; position="absolute"; left=5+myOffset; top=150; aI("text=»  " + furniture[0] +";url=furniture.php?CatID=15;"); aI("text=»  " + furniture[1] +";url=furniture.php?CatID=2;"); aI("text=»  " + furniture[2] +";url=furniture.php?CatID=6;"); aI("text=»  " + furniture[3] +";url=furniture.php?CatID=3;"); aI("text=»  " + furniture[4] +";url=furniture.php?CatID=9;"); } with(milonic=new menuname("accessories")){ alwaysvisible=mySubMenuVisible2; style=subMenuStyle; position="absolute"; left=125+myOffset; top=150; aI("text=»  " + accessories[0] + ";url=accessories.php?CatID=14;"); aI("text=»  " + accessories[1] + ";url=accessories.php?CatID=5;"); aI("text=»  " + accessories[2] + ";url=accessories.php?CatID=10;"); aI("text=»  " + accessories[3] + ";url=accessories.php?CatID=7;"); aI("text=»  " + accessories[4] + ";url=accessories.php?CatID=13;"); } with(milonic=new menuname("community")){ alwaysvisible=mySubMenuVisible3; style=subMenuStyle; position="absolute"; left=252+myOffset; top=150; aI("text=»  " + community[0] + ";url=events.php;"); aI("text=»  " + community[1] + ";url=installations.php;"); aI("text=»  " + community[2] + ";url=press.php;"); aI("text=»  " + community[3] + ";url=TravelLog.php;"); } with(milonic=new menuname("about")){ alwaysvisible=mySubMenuVisible4; style=subMenuStyle; position="absolute"; left=380+myOffset; top=150; aI("text=»  " + about[0] + ";url=history.php;"); aI("text=»  " + about[1] + ";url=finishes.php;"); aI("text=»  " + about[2] + ";url=faq.php;"); aI("text=»  " + about[3] + ";url=contact.php;"); } drawMenus();