var Menu1 = new Array () var subMenu1 = new Array () Menu1[0] = new Array("Emulsions and glazes", "/paint.aspx","_top", "left") subMenu1[0] = new Array() subMenu1[0][0] = new Array ("Bathrooms and Kitchens", "/paint/bathrooms-and-kitchens.aspx","_top") subMenu1[0][1] = new Array ("General emulsion", "/paint/general-emulsion.aspx","_top") subMenu1[0][2] = new Array ("Silk finish emulsion", "/paint/silk-emulsion.aspx","_top") subMenu1[0][3] = new Array ("Wall glazes and washes", "/paint/wallglazes-and-washes.aspx","_top") Menu1[1] = new Array("Undercoats and Primers", "/paint.aspx","_top", "left") subMenu1[1] = new Array() subMenu1[1][0] = new Array ("Plaster Primers", "/paint/plaster-primers.aspx","_top") subMenu1[1][1] = new Array ("Wood Primers", "/paint/wood-primers.aspx","_top") subMenu1[1][2] = new Array ("Metal Primers", "/paint/metal-primers.aspx","_top") subMenu1[1][3] = new Array ("Sealers and Isolating primers", "/paint/isolating-primers.aspx","_top") Menu1[2] = new Array("Paint for metal", "/paint.aspx","_top", "left") subMenu1[2] = new Array() subMenu1[2][0] = new Array ("Radiator paint", "/paint/radiator-paint.aspx","_top") subMenu1[2][1] = new Array ("Gloss and satin", "/paint/metal-gloss-and-satin.aspx","_top") Menu1[3] = new Array("Paint for wood", "/paint.aspx","_top", "left") subMenu1[3] = new Array() subMenu1[3][0] = new Array ("Interior gloss", "/paint/wood-interior-gloss.aspx","_top") subMenu1[3][1] = new Array ("Exterior gloss", "/paint/wood-exterior-gloss.aspx","_top") subMenu1[3][2] = new Array ("Eggshell", "/paint/wood-eggshell.aspx","_top") subMenu1[3][3] = new Array ("Glazes and stains", "/paint/wood-glazes.aspx","_top") Menu1[4] = new Array("Casein and Limepaint", "/paint.aspx","_top", "left") subMenu1[4] = new Array() subMenu1[4][0] = new Array ("Casein wallpaints", "/paint/caseinwallpaint.aspx","_top") subMenu1[4][1] = new Array ("Lime Paint", "/paint/limepaint.aspx","_top") subMenu1[4][2] = new Array ("Distemper", "/paint/distemper.aspx","_top") Menu1[5] = new Array("Masonry paint", "/paint.aspx","_top", "right") subMenu1[5] = new Array() subMenu1[5][0] = new Array ("Exterior silicate paint", "/paint/silicextmasonrypaint.aspx","_top") subMenu1[5][1] = new Array ("Interior silicate paint", "/paint/silicintmasonrypaint.aspx","_top") subMenu1[5][2] = new Array ("Sealers and Primers", "/paint/masonryprimers.aspx","_top") subMenu1[5][3] = new Array ("Masonry and Architectural Conservation", "/paint/masonrypres.aspx","_top") Menu1[6] = new Array("Pigments", "/paint.aspx","_top", "right") subMenu1[6] = new Array() subMenu1[6][0] = new Array ("Powders and concentrates", "/paint/pigments.aspx","_top") /// FORMAT MENU /// menuStyle = "flat" // Menu Style (flat, 3d) cellPadding = "3" // Cell Padding cellBorder = 1 // Border width (for no border, enter 0) THIS VALUE APPLIES TO ALL MENUS verticalOffset = "0" // Vertical offset of Sub Menu. horizontalOffset = "30" // Horizontal offset of Sub Menu. subMenuDelay = 1 // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS subIndicate = 1 // Show if a sub menu is present (use 0 for "no") THIS VALUE APPLIES TO ALL MENUS indicator = "" // Symbol to show if a sub menu is present (subIndicate must be to set to 1) // Main Menu Items menuWidth = "0" // Width of menu item. Use 0 for default borderColor = "#FF0000" // Border Colour (flat mode only) borderHighlight = "#FF0000" // Border Highlight Colour (3d mode only) borderShadow = "#31556D" // Border Shadow Colour (3d mode only) menuBackground = "#DDDDDD" // Cell Background Colour menuHoverBackground = "#FF0000" // Cell Background Colour on mouse rollover fontFace = "arial" // Font Face fontColour = "#FF0000" // Font Colour fontHoverColour = "#FFFFFF" // Font Colour on mouse rollover fontSize = "8pt" // Font Size fontDecoration = "none" // Style of the link text (none, underline, overline, line-through) fontWeight = "normal" // Font Weight (normal, bold) // Sub Menu Items smenuWidth = "0" // Width of sub menu item. Use 0 for default sborderColor = "#FF0000" // Border Colour (flat mode only) sborderHighlight = "#FF0000" // Border Highlight Colour (3d mode only) sborderShadow = "#83837C" // Border Shadow Colour (3d mode only) smenuBackground = "#DDDDDD" // Cell Background Colour smenuHoverBackground = "#FF0000" // Cell Background Colour on mouse rolloverr sfontFace = "arial" // Font Face sfontColour = "#FF0000" // Font Colour sfontHoverColour = "#FFFFFF" // Font Colour on mouse rollover sfontSize = "8pt" // Font Size sfontDecoration = "none" // Style of the link text (none, underline, overline, line-through) sfontWeight = "normal" // Font Weight (normal, bold) quantity = 1 /// END FORMAT MENU //// /// DO NOT EDIT BELOW THIS LINE /// // Browser Sniffer var isIE = (document.getElementById && document.all)?true:false; var isNS4 = (document.layers)?true:false; var isNS6 = (document.getElementById && !document.all)?true:false; var timer; var obj = (isIE)?"document.all":"document.getElementById" // Menu Styles function createStyles(quant){ styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 document.writeln (''); } // Build and show the main menu items function showMenus(quant,definedOrientation, website) { indicator = '/images/buttons/shop_button_arrow.gif'; indicator = website + indicator; indicator = ""; createStyles(quant); if(definedOrientation!=""){orientation=definedOrientation} if (orientation.toLowerCase() == "vertical"){document.writeln ('')} else{document.writeln ('
')} for (x=0; x') document.writeln (''); if (orientation.toLowerCase()=="vertical") document.writeln('') } if (orientation.toLowerCase() == "vertical"){document.writeln ('
'); if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){ document.writeln('');} document.writeln ('
'); document.writeln (''+eval("Menu"+quant)[x][0]+''); document.writeln ('' + indicator+'
');} else{document.writeln ('');} // Build the sub menu items for (x=0; x 0) { document.writeln (''); } } } // Change colour or menu and submenu items when the mouse hovers over. function highlightMenu(element,mainMenu,dropMenu,state,quant) { hoverMenu(); state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant if (element == "sub") { for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++) { if (eval("subMenu"+quant)[mainMenu][x][1].indexOf("#") == -1){ eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"') eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"') } } if (eval("subMenu"+quant)[mainMenu][dropMenu][1].indexOf("#") == -1) { eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"') eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"') } } else { eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"') eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"') if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1) { eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"') eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"') } } } // Find positioning for sub menus function getOffset(obj, dim) { if(dim=="left") { oLeft = obj.offsetLeft; while(obj.offsetParent!=null) { oParent = obj.offsetParent oLeft += oParent.offsetLeft obj = oParent } return oLeft } else if(dim=="top") { oTop = obj.offsetTop; while(obj.offsetParent!=null) { oParent = obj.offsetParent oTop += oParent.offsetTop obj = oParent } return oTop } else if(dim=="width") { oWidth = obj.offsetWidth return oWidth } else if(dim=="height") { oHeight = obj.offsetHeight return oHeight } else { alert("Error: invalid offset dimension '" + dim + "' in getOffset()") return false; } } // Show sub menus function popDown(quant, param, id, orientation) { var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2) var browserAdjustment = (isNS6)?cellBorder:0 var menu; var button; if (id) { getOffset(eval(obj+'(id)'),'left'); getOffset(eval(obj+'(id)'),'top'); getOffset(eval(obj+'(id)'),'width'); getOffset(eval(obj+'(id)'),'height'); if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) { oLeft=oLeft oLeft=oLeft+oWidth; getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width'); oLeft=oLeft-oWidth ; alignAdjustment = cellBorder*2 + 1 } else { alignAdjustment = 0 oLeft=oLeft } } n = 0; while (n < eval("Menu"+quant).length) { menu = quant+"MENU"+n if (param == n) { theObj = eval(obj+'(menu)'); if (theObj) { theObj.style.visibility = "visible" if (orientation.toLowerCase()=="vertical"){ theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]); theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment} else{ theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment; theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);} } highlightMenu('main',n,'','hover',quant) if (eval("subMenu"+quant)[param].length > 0) { for (x=0; x 0)?setDelay:1 timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay) } // when you click the box, perform the same function as if the user had clicked the hyperlink function tdMouseClick(theElement) { eval(obj+'(theElement).click()') }