/************** Copyright (c) 2001 Thomas Brattli (www.dhtmlcentral.com) eXperience DHTML coolMenus - Get it at www.dhtmlcentral.com Version 3.02 This script can be used freely as long as all copyright messages are intact. (You can delete the comments below to save space) This script takes over for the old Coolmenus2 and CoolFrameMenu Visit www.dhtmlcentral.com/coolmenus/ for the latest version of the script. Tutorial: http://www.dhtmlcentral.com/tutorial.asp Support: http://www.dhtmlcentral.com/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus Known bugs: Netscape 6: When using padding in the layers you can sometimes get strange visual effects on the lowest menu item. Only way to fix is to not use padding. Opera: This menu is very close to working on Opera, but as far as I could figure out opera don't support innerHTML or document.createElement() which makes the changing of the text inside the submenus immpossible. If anyone know a solution to this please let me know. Explorer 4 for mac: It will not work in this browser, nothing does. Explorer 5 for mac: It works fine, but like Netscape 6 it's a little slow and you can get strange visual effects sometimes. Script checked and working with: PC: Netscape 4.03 - Netscape 4.04 -Netscape 4.08 - Netscape 4.73 - Netscape 6 - Netscape 6.01 Internet Explorer 5.0 - Internet Explorer 5.5 -Internet Explorer 6.0 MAC: Netscape 4 - Explorer 5 Btw: There is basically just one explanation to why this code is sort of "scrambled": I wanted this file be as small as possible.. If you want it to be smaller feel free to remove all comments (except for the copyright) **************/ /************* Pageobject ***************/ function makePageCoords(win,fr){ if(!win) win=window this.x=0;this.x2=(bw.ns4 || bw.ns6)?win.innerWidth-1:win.document.body.offsetWidth; if(!fr&&bw.ie) this.x2-=20; else if(!fr&&bw.ns4) this.x2-=4; else if(bw.ns6) this.x2+=1 this.y=0;this.y2=(bw.ns4 || bw.ns6)?win.innerHeight:win.document.body.offsetHeight; if(bw.ns4&&!win.rows) this.x2+=5; if(!fr&&bw.ie) this.y2-=4; else if(bw.ns4&&fr) this.y2+=4 this.y2orig=this.y2; this.x50=this.x2/2; this.y50=this.y2/2; return this; } /************* Debugging function ***************/ function debug(txt,ev){if(mDebugging==2) self.status=txt; else alert(txt); if(ev) eval(ev); return false} /************ Scroll function *************/ function cm_checkScrolled(obj){ if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset else obj.scrolledY=obj.win.document.body.scrollTop if(obj.scrolledY!=obj.lastScrolled){ if(!obj.useframes){ for(i=0;i(end-px*px-px) && px>1) px-=px/5; this.moveIt(this.x,this.y+px) this.clipTo(end-this.y,this.width,this.height,0) this.tim=setTimeout(this.obj+".slide("+end+","+px+","+tim+","+w+","+h+")",tim) }else{this.clipTo(0,this.width,this.height,0); this.moveIt(this.x,end)} } function cm_filterIt(f){if(this.evnt.filters[0]) this.evnt.filters[0].Stop(); else this.css.filter=f; this.evnt.filters[0].Apply(); this.showIt(); this.evnt.filters[0].Play();} function cm_setactive(on,name,frmmouse){ if(!name) name=this.name; var tobj=this.parent.m[name] if(tobj.img){if(tobj.img2){if(on) this.ref.images[tobj.img].src=tobj.img2; else this.ref.images[tobj.img].src=tobj.img1} }else{ if(on){var color=tobj.c2; var fcolor=tobj.c4; var re=tobj.c3}else{var color=tobj.c1; var fcolor=tobj.c3; var re=tobj.c4} if(color){if(bw.dom || bw.ie4) this.css.backgroundColor=color; else if(bw.ns4) if(color=="transparent") color=null; this.css.bgColor=color} if(fcolor && !bw.ns4){if(bw.ie4) this.evnt.style.color=fcolor; else if(this.evnt.childNodes[0]) this.evnt.style.color=fcolor }else if(fcolor&&frmmouse){t=this.parent.m[name].text; t=t.replace(re,fcolor); this.writeIt(t); if(on) this.addEvents(name,this.parent.name,tobj.lnk,this.parent.useclick)} if(tobj.l==0&&bw.ns6){this.parent.l[0].o[tobj.num].oBorder.hideIt(); this.parent.l[0].o[tobj.num].oBorder.showIt();} //Stupid fix for netscape 6.... } } function cm_clipTo(t,r,b,l,w){if(bw.ns4){this.css.clip.top=t;this.css.clip.right=r; this.css.clip.bottom=b;this.css.clip.left=l }else{this.css.clip="rect("+t+","+r+","+b+","+l+")"; if(w){this.css.width=r; this.css.height=b}}; this.width=r; this.height=b} function cm_addEvents(n,name,url,useclick){ this.evnt.onmouseover=new Function(name+".mover('"+n+"')"); this.evnt.onmouseout=new Function(name+".mmout('"+n+"')") if(!url && useclick) ev=new Function(name+".mover('"+n+"',1)") else ev=new Function(name+".go('"+n+"')") if(bw.ns4){this.ref.captureEvents(Event.MOUSEDOWN); this.ref.onmousedown=ev} else this.evnt.onclick=ev } /************ Making menu object *************/ function cm_makeMenu(name,parent,text,link,target,width,height,img1,img2,bgcoloroff,bgcoloron,textcolor,hovercolor,onclick,onmouseover,onmouseout){ this.m[name]=new Object(); var obj=this.m[name]; obj.name=name; obj.subs=new Array(); obj.parent=parent; var tt obj.lnk=(link==0||link=='')?"":link; obj.target=target if(parent!="" && parent){this.m[parent].subs[this.m[parent].subs.length]=name; l=this.m[parent].l+1} else l=0 obj.l=l; prop1=lthis.l[l].maxnum) this.l[l].maxnum=this.m[parent].subs.length if(this.m[parent].totheight==0) this.m[parent].totheight=this.l[l].border this.m[parent].totheight+=obj.height+ this.l[l].border if(this.m[parent].maxwidthobj.width?this.maxwidth:obj.width; this.maxheight=this.maxheight>obj.height?this.maxwidth:obj.height }if(img1) text='' else if(bw.ns4){text=''+text+''} if(bw.ns4&&this.useNS4links&&(l==0||!this.useframes) ||(l==0&&img1)){tt=img1&&l==0?this.useclick?this.name+".mover('"+name+"',1);":this.name+".go('"+name+"');":"";text=''+text+''} if(img1){obj.preimg1=new Image(); obj.preimg1.src=img1}; if(img2){obj.preimg2=new Image(); obj.preimg2.src=img2} if(img2) obj.img="imgCMenu"+name; else obj.img=0; obj.img1=img1||""; obj.img2=img2||""; obj.text=text; obj.subx=-1; obj.c1=bgcoloroff||prop1.bgcoloroff||prop2.bgcoloroff; obj.c2=bgcoloron||prop1.bgcoloron||prop2.bgcoloron; obj.c3=textcolor||this.l[l].tc; obj.c4=hovercolor||prop1.hovercolor||prop2.hovercolor; obj.suby=-1; obj.mclick=onclick||""; obj.mover=onmouseover||""; obj.mout=onmouseout||""; obj.totheight=0; obj.maxwidth=0; } /************ Onmouseout *************/ function cm_mout(name,cl){ if(!name&&cl&&!this.isover){this.isclicked=0; this.hideSubs(1,0,0,0,1); this.aobj[0]=-1; return} if(!name) return; var l=this.m[name].l; if((this.m[name].subs.length==0||!this.loaded)||(this.useclick&&!this.isclicked)){if((this.aobj[l+1]==-1||l>=this.l.length-1)&&this.aobj[l]!=-1){this.aobj[l].setactive(0,0,1); this.aobj[l]=-1;}} if(this.m[name].mout!="") eval(this.m[name].mout) if(this.useclick){this.isover=0; return}; clearTimeout(this.tim); if(!(!bw.ie&&this.useframes&&l==0&&this.aobj1)){ this.isover=0; this.aobj1=0; this.tim=setTimeout(this.name+".hideSubs(1,0,0,0,1)",this.wait)} } /************ Onmouseover *************/ function cm_mover(name,cl){ clearTimeout(this.tim); this.isover=1; var l=this.m[name].l; if(this.aobj[l].name==name){ if(this.aobj[l+1]!=-1 && l=page.y2) { this.m[name].suby=page.y2-this.m[name].totheight-this.l[l].height; } if(this.pagecheck&&(l!=1||!this.useframes)) { this.checkPage(name,l,num,topalign,align,ln,border,cn) } } /************ Checking page coords *************/ function cm_checkPage(name,l,num,topalign,align,ln,border,cn){ cn++; if(this.m[name].subx+this.m[name].maxwidth>page.x2){ if(align!=1){if(align==3&&topalign!=0) topalign=3; align=1; this.getCoords(name,l,num,topalign,align,ln,border,cn)} }else if(this.m[name].subxpage.y2){ if(l==1){topalign=3; this.getCoords(name,l,num,topalign,align,ln,border,cn,3)} else if(align!=3){ align=3; this.getCoords(name,l,num,topalign,align,ln,border,cn)} }else if(this.m[name].suby=this.l.length) return; ln=this.m[name].subs.length if(ln==0){this.hideSubs(l,1,0,1); return} else this.hideSubs(l+1,1); var border=this.l[l].border; this.aobj[l]=-1 if(this.useframes&&(bw.ns4||bw.ns6)) cm_checkScrolled(this) if((this.m[name].subx==-1 || this.m[name].suby==-1) || this.m[name].scrollY!=this.lastScrolled || this.isresized){ var topalign=this.l[0].align; var align=this.l[l-1].align; this.getCoords(name,l,num,topalign,align,ln,border,0) }var x=this.m[name].subx; var y=this.m[name].suby; var bobj=this.l[l].oBorder; bobj.hideIt(); if(this.l[l-1].clip&&!(this.l[l-1].filter&&bw.filter)){ clearTimeout(bobj.tim); bobj.clipy=0; bobj.clipTo(0,this.m[name].maxwidth,0,0); bobj.moveIt(x,y); }else if(this.l[l-1].slide&&!(this.l[l-1].filter&&bw.filter)){ clearTimeout(bobj.tim); bobj.clipTo(0,this.m[name].maxwidth,this.m[name].totheight,0,1) bobj.moveIt(x,y-this.m[name].totheight) }else{ bobj.clipTo(0,this.m[name].maxwidth,this.m[name].totheight,0,1) bobj.moveIt(x,y); } var yy=border for(i=0;ithis.m[name].subx && selx<(this.m[name].subx+this.m[name].maxwidth)) &&((sely+selh)>this.m[name].suby && sely<(this.m[name].suby+this.m[name].totheight))){ if(this.sel[i].style.visibility!="hidden"){this.sel[i].level=l; this.sel[i].style.visibility="hidden"; this.hcode+=this.name+".sel["+i+"].style.visibility='visible';"} }else if(l<=this.sel[i].level) this.sel[i].style.visibility="visible" } }else if(bw.ns4&&this.hideForm){eval(this.hideForm+".visibility='hide'"); this.hcode=this.hideForm+".visibility='show'"} } /************ Making all top elements *************/ function cm_makeTop(rr){ var m,rows,border,x,y,mpa m=this.menuplacement; rows=this.rows; this.pxbetween=this.checkp(this.pxbetween,0,1,1) border=this.l[0].border;y=this.checkp(this.fromtop,0,0,1)+border;x=this.checkp(this.fromleft,0,0,1)+border if(m=="bottomcenter"||m=="bottom"){ if(m=="bottomcenter") x=toppage.x2/2-(this.totwidth+border*this.l[0].num+this.pxbetween*(this.l[0].num-1))/2 y=toppage.y2-this.maxheight-border }else if(m=="right") x=toppage.x2-this.maxwidth-border*2 else if(m=="bottom") y=toppage.y2-this.maxheight-border*2 else if(m=="center"){if(rows==0) x=toppage.x2/2 - (this.maxwidth+border*2)/2; else x=toppage.x2/2 - (this.totwidth + border*this.l[0].num +this.pxbetween*(this.l[0].num-1))/2} else if(m.toString().indexOf(",")>-1) mpa=1 if(this.usebar){ var bx,by,bww,bh,oBb oNS=bw.ns6?this.oNS[this.l[0].maxnum]:0 this.oBar=new cm_makeObj('div'+this.name+'Bar',0,0,window,0,oNS) if(this.barx=="menu") bx=mpa&&rows?this.checkp(m[0],1,0,1)-border:x-border; else{ bx=this.checkp(this.barx,1,0,1) } if(this.bary=="menu") by=mpa&&!rows?this.checkp(m[0],0,0,1)-border:y-border; else by=this.checkp(this.bary,0,0,1); this.oBar.moveIt(bx,by) if(this.barwidth=="menu"){bww=rows?mpa?(this.checkp(m[m.length-1],1,0,1)-bx)+this.m[this.l[0].names[this.l[0].num-1]].width+border:(this.totwidth +this.pxbetween*(this.l[0].num-1)):this.maxwidth; bww+=!rows?border*2:0;}else bww=this.checkp(this.barwidth,1,0,1); if(bw.ie&&rows&&this.barwidth=="100%"&&this.useframes) bww+=parseInt(self.document.body.leftMargin)*2 if(this.barheight=="menu"){bh=!rows?mpa?(this.checkp(m[m.length-1],0,0,1)-by)+this.m[this.l[0].names[this.l[0].num-1]].height+border:(this.totheight + this.pxbetween*(this.l[0].num-1)):this.maxheight; bh+=rows?this.l[0].border*2:0;} else bh=this.checkp(this.barheight,0,0,1); this.oBar.clipTo(0,bww,bh,0,1); if(this.barinheritborder&&border){oBb=new cm_makeObj('div'+this.name+'Barb',0,0,window,'div'+this.name+'Bar'); oBb.moveIt(border,border); oBb.clipTo(0,bww-border*2,bh-border*2,0,1); oBb=null;} }this.l[0].o=new Array(); if(this.usetextwidth) this.maxwidth=0 for(j=0;j\n' for(j=0;j' str+=tempstr+' class="cl'+this.name+i+'">'+txt+''; str+='\n' }else this.oNS[j]=cm_NS6_createElement(this.ns6styleb[i],tempstr+' class="cl'+this.name+i+'">'+txt+'') }else frstr+=tempstr+'">\n' }if(i!=0){frstr+='\n'} }if(this.usebar){ if(this.barinheritborder) str2='
'; if(bw.ns6) this.oNS[this.l[0].maxnum]=cm_NS6_createElement(this.ns6styleb[this.ns6styleb.length-1],str2) else{str+='
';str+=str2+'
\n'} }if(!this.useframes&&bw.ie) str+=frstr; else this.frstr=frstr; if(!bw.ns6) document.write(str) this.makeTop(); if(this.useframes) window.onerror=cm_check_error; } coolFrameError=0//Trapping external pages in frame error! function cm_check_error(e){e=e.toLowerCase(); if(e.indexOf("access")>-1||e.indexOf("permission")>-1){coolFrameError=1; return true;}else return false} /************** Make styles **************/ function cm_makeStyle(){ var str="\n") } /************ Refreshing page if it's resized *************/ function cm_resized(){ page2=new makePageCoords(window,this.useframes); if(page2.x2!=toppage.x2 || page2.y2!=toppage.y2){ if(!bw.ns4){ toppage=new makePageCoords(window,this.useframes); this.makeTop(1) if(!this.useframes) page=toppage; this.isresized=1; eval(this.resizecode) }else{this.win.location.reload(); location.reload()} }if(!bw.ns4&&this.useframes){page=new makePageCoords(this.win,this.useframes)} } /************ Going to another page *************/ function cm_go(name){ obj=this.m[name]; url=obj.lnk; target=obj.target; fc=obj.mclick if(url){ if(this.useframes&&!coolFrameError) loc=this.win.location.href; else loc=location.href if(fc) eval(fc); url=this.checkFolder(loc.toString(),url); this.isover=0; this.hideSubs(1,0,1); this.isclicked=0; this.aobj[0]=-1 if(String(target)=="undefined" || target=="" || target==0 || target=="_self"){ this.win.location.href=url }else if(target=="_blank") window.open(url) else if(target=="_top" || target=="window") top.location.href=url else if(top[target]) top[target].location.href=url else{fr=findFrame(target); if(fr) fr.location.href=url} }else if(fc) eval(fc) } /************ Getting folders - THANKS TO DCAGE FOR THIS FIX *************/ function cm_checkFolder(tmp,url){ if(url.indexOf("mailto:")>-1 || url.indexOf("/")==0 || url.indexOf("http://")==0) return url else if(this.useframes && bw.ie || bw.ns6) return url var addr=''; var lvl=''; var off_cnt=0; var cnt=0; if(tmp.indexOf('file:')>-1 || tmp.charAt(1)==':') addr=this.offlineUrl; else if(tmp.indexOf('http:')>-1) addr=this.onlineUrl; for(var i=0;ioff_cnt) lvl+='../'; }} return lvl + url } /************ Checkloaded for the frames version *************/ function cm_checkLoaded(ev,ns){ coolFName=eval(coolFName) var ok=0 if(document.layers){ if(ns){coolFName.refresh(); coolFName.nsload=1; ok=1; coolFrameError=0 }else if(ev.target.name==coolFName.frame&&!coolFName.nsload){coolFName.refresh(); ok=1; coolFrameError=0; routeEvent(ev)} }else if(bw.ie){ if (coolFName.win.document.readyState == "complete"){ coolFName.win.document.body.insertAdjacentHTML("beforeEnd",coolFName.frstr) coolFName.win.document.body.onunload=cm_unloaded; coolFName.refresh(); ok=1; coolFrameError=0 }else setTimeout("cm_checkLoaded()",200) }else if(bw.ns6){ if(coolFName.win.document){ if(coolFName.win.document.body){coolFName.win.addEventListener("unload", cm_unloaded, true); coolFName.refresh(); ok=1; coolFrameError=0} else setTimeout("cm_checkLoaded()",200) }else setTimeout("cm_checkLoaded()",200) } } function cm_unloaded(ev){coolFName=eval(coolFName); if(!coolFName) return; if(document.layers && ev.target.name!=coolFName.frame) return; else coolFName.nsload=0; coolFName.loaded=0; if(!document.layers) setTimeout("cm_checkLoaded()",200)} /************ Make menu object *************/ var coolFName=""; var onload; var coolFMouseup=""; function makeCoolMenu(name){ coolFName=name; this.name=name; this.lastScrolled=0; this.win=window; toppage=new makePageCoords(window,parent.frames.length); this.aobj=new Array(); this.m=new Array(); this.l=new Array() this.level=new Array(); this.resized=cm_resized; this.makeMenu=cm_makeMenu; this.showSubs=cm_showSubs; this.makeTop=cm_makeTop; this.getCoords=cm_getCoords; this.checkPage=cm_checkPage; this.mmout=cm_mout; this.mover=cm_mover; this.checkp=cm_checkp; this.hideSubs=cm_hideSubs; this.construct=cm_construct; this.makeStyle=cm_makeStyle; this.refresh=cm_refresh; this.go=cm_go; this.frstr=""; this.mobj=new Array() this.totwidth=0; this.totheight=0; this.maxwidth=0; this.maxheight=0 this.tim=10; this.loaded=0; this.isover=false; this.checkFrame=cm_checkFrame; this.checkFolder=cm_checkFolder; this.hcode=""; this.oNS=new Array(); this.oNS2=new Array() bw.filter=(bw.ie7||bw.ie6||bw.ver.indexOf("MSIE 5.5")>-1) && !bw.mac } /************ Find frame *************/ function findFrame(frameName){ obj=top; var frameObj=0; for(i=0;i-1 && this.dom)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ie=this.ie4||this.ie5||this.ie6||this.ie7 this.mac=this.agent.indexOf("Mac")>-1 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom) return this } var bw=new lib_bwcheck() //Making browsercheck object var mDebugging=2 oCMenu=new makeCoolMenu("oCMenu") oCMenu.useframes=0 oCMenu.frame="" oCMenu.useNS4links=1 oCMenu.checkselect=0 oCMenu.offlineUrl="" oCMenu.onlineUrl="" oCMenu=new makeCoolMenu("oCMenu") oCMenu.usebar=1 oCMenu.barinheritborder=0 oCMenu.rows=0 oCMenu.barcolor="#ffffcc" oCMenu.barwidth=0 oCMenu.barheight=0 oCMenu.barx=0 oCMenu.bary=0 oCMenu.fromleft=10 oCMenu.fromtop=135 oCMenu.pxbetween=3 oCMenu.menuplacement=0 oCMenu.level[0]=new Array() oCMenu.level[0].width=150 oCMenu.level[0].height=17 oCMenu.level[0].bgcoloroff="#FFFFFF" oCMenu.level[0].bgcoloron="#003366" oCMenu.level[0].textcolor="#003366" oCMenu.level[0].hovercolor="#FFFFFF" oCMenu.level[0].style="font-family:verdana; font-size:11px" oCMenu.level[0].border=0 oCMenu.level[0].bordercolor="#336699" oCMenu.level[0].offsetX=1 oCMenu.level[0].offsetY=-1 oCMenu.level[0].NS4font="Arial" oCMenu.level[0].NS4fontSize="2" oCMenu.level[0].NS4fontColor="003366" oCMenu.level[0].align="right" oCMenu.level[0].clip=1 oCMenu.level[0].clippx= 20 oCMenu.level[0].cliptim= 10 oCMenu.level[1]=new Array() oCMenu.level[1].width=145 oCMenu.level[1].height=17 oCMenu.level[1].bgcoloroff="#FFCC00" oCMenu.level[1].bgcoloron="#003366" oCMenu.level[1].textcolor="#003366" oCMenu.level[1].hovercolor="#ffcc00" oCMenu.level[1].style="font-family:verdana; font-size:11px" oCMenu.level[1].offsetX=0 oCMenu.level[1].offsetY=0 oCMenu.level[1].border=1 oCMenu.level[1].bordercolor="003366" oCMenu.level[1].NS4font="Arial" oCMenu.level[1].NS4fontSize="2" oCMenu.level[1].NS4fontColor="003366" oCMenu.makeMenu('top1','',' Adhesives and Sealants','http://www.mptools.co.uk/mcp/Adhesives_and_Sealants.html','') oCMenu.makeMenu('sub1','top1','Building Adhesives','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Building_Adhesives.html') oCMenu.makeMenu('sub148','top1','Building Admixtures','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Building_Admixtures.html') oCMenu.makeMenu('sub97','top1','Building Sealants','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Building_Sealants.html') oCMenu.makeMenu('sub212','top1','Building Tapes','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Building_Tapes.html') oCMenu.makeMenu('sub67','top1','Chemical Anchors','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Chemical_Anchors.html') oCMenu.makeMenu('sub101','top1','Cleaning and HG','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Cleaning_and_HG.html') oCMenu.makeMenu('sub190','top1','Decorating Materials','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Decorating_Materials.html') oCMenu.makeMenu('sub198','top1','Epoxy Repair','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Epoxy_Repair.html') oCMenu.makeMenu('sub96','top1','Expanding Foams','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Expanding_Foams.html') oCMenu.makeMenu('sub143','top1','Fixings and Bolts','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Fixings_and_Bolts.html') oCMenu.makeMenu('sub19','top1','Levelling Compound','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Levelling_Compound.html') oCMenu.makeMenu('sub123','top1','Line Marking','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Line_Marking.html') oCMenu.makeMenu('sub124','top1','Roofing Repair','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Roofing_Repair.html') oCMenu.makeMenu('sub159','top1','Screws','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Screws.html') oCMenu.makeMenu('sub80','top1','Sealant Guns','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Sealant_Guns.html') oCMenu.makeMenu('sub66','top1','Selection Packs','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Selection_Packs.html') oCMenu.makeMenu('sub156','top1','Smart Tack System','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Smart_Tack_System.html') oCMenu.makeMenu('sub129','top1','Surface Treatments','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Surface_Treatments.html') oCMenu.makeMenu('sub82','top1','Tarmacadam Repair','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Tarmacadam_Repair.html') oCMenu.makeMenu('sub74','top1','Technical Mortars','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Technical_Mortars.html') oCMenu.makeMenu('sub49','top1','Tile Adhesives','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Tile_Adhesives.html') oCMenu.makeMenu('sub220','top1','Wipes','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Wipes.html') oCMenu.makeMenu('sub64','top1','Wood Adhesives','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Wood_Adhesives.html') oCMenu.makeMenu('sub497','top1','Wood Treatments','http://www.mptools.co.uk/scp/Adhesives_and_Sealants/Wood_Treatments.html') oCMenu.makeMenu('top2','',' Air Tools and Compressors','http://www.mptools.co.uk/mcp/Air_Tools_and_Compressors.html','') oCMenu.makeMenu('sub206','top2','Accessories','http://www.mptools.co.uk/scp/Air_Tools_and_Compressors/Accessories.html') oCMenu.makeMenu('sub108','top2','Air Tools','http://www.mptools.co.uk/scp/Air_Tools_and_Compressors/Air_Tools.html') oCMenu.makeMenu('sub26','top2','Compressors','http://www.mptools.co.uk/scp/Air_Tools_and_Compressors/Compressors.html') oCMenu.makeMenu('sub53','top2','Nailers and Staplers','http://www.mptools.co.uk/scp/Air_Tools_and_Compressors/Nailers_and_Staplers.html') oCMenu.makeMenu('top3','',' Construction Tools','http://www.mptools.co.uk/mcp/Construction_Tools.html','') oCMenu.makeMenu('sub221','top3','Access Equipment','http://www.mptools.co.uk/scp/Construction_Tools/Access_Equipment.html') oCMenu.makeMenu('sub60','top3','Brushes and Rollers','http://www.mptools.co.uk/scp/Construction_Tools/Brushes_and_Rollers.html') oCMenu.makeMenu('sub181','top3','Building Tools','http://www.mptools.co.uk/scp/Construction_Tools/Building_Tools.html') oCMenu.makeMenu('sub35','top3','Decorating Tools','http://www.mptools.co.uk/scp/Construction_Tools/Decorating_Tools.html') oCMenu.makeMenu('sub165','top3','Detectors','http://www.mptools.co.uk/scp/Construction_Tools/Detectors.html') oCMenu.makeMenu('sub62','top3','Electrical','http://www.mptools.co.uk/scp/Construction_Tools/Electrical.html') oCMenu.makeMenu('sub16','top3','Lead and Slate','http://www.mptools.co.uk/scp/Construction_Tools/Lead_and_Slate.html') oCMenu.makeMenu('sub29','top3','Levels','http://www.mptools.co.uk/scp/Construction_Tools/Levels.html') oCMenu.makeMenu('sub34','top3','Networking','http://www.mptools.co.uk/scp/Construction_Tools/Networking.html') oCMenu.makeMenu('sub39','top3','Plumbing Tools','http://www.mptools.co.uk/scp/Construction_Tools/Plumbing_Tools.html') oCMenu.makeMenu('sub105','top3','Scaffolding','http://www.mptools.co.uk/scp/Construction_Tools/Scaffolding.html') oCMenu.makeMenu('sub51','top3','Soldering','http://www.mptools.co.uk/scp/Construction_Tools/Soldering.html') oCMenu.makeMenu('sub17','top3','Tiling Tools','http://www.mptools.co.uk/scp/Construction_Tools/Tiling_Tools.html') oCMenu.makeMenu('sub18','top3','Trowels and Floats','http://www.mptools.co.uk/scp/Construction_Tools/Trowels_and_Floats.html') oCMenu.makeMenu('sub33','top3','Spanners and Sets','http://www.mptools.co.uk/scp/Construction_Tools/Spanners_and_Sets.html') oCMenu.makeMenu('sub133','top3','Squares and Mitres','http://www.mptools.co.uk/scp/Construction_Tools/Squares_and_Mitres.html') oCMenu.makeMenu('top4','',' Electrical and Cables','http://www.mptools.co.uk/mcp/Electrical_and_Cables.html','') oCMenu.makeMenu('sub130','top4','Automotive','http://www.mptools.co.uk/scp/Electrical_and_Cables/Automotive.html') oCMenu.makeMenu('sub217','top4','Bulbs & Lamps','http://www.mptools.co.uk/scp/Electrical_and_Cables/Bulbs_&_Lamps.html') oCMenu.makeMenu('sub10','top4','Electrical Hardware','http://www.mptools.co.uk/scp/Electrical_and_Cables/Electrical_Hardware.html') oCMenu.makeMenu('sub78','top4','Extension Reels','http://www.mptools.co.uk/scp/Electrical_and_Cables/Extension_Reels.html') oCMenu.makeMenu('sub37','top4','110V Fittings','http://www.mptools.co.uk/scp/Electrical_and_Cables/110V_Fittings.html') oCMenu.makeMenu('sub142','top4','240V Fittings','http://www.mptools.co.uk/scp/Electrical_and_Cables/240V_Fittings.html') oCMenu.makeMenu('sub195','top4','Measuring','http://www.mptools.co.uk/scp/Electrical_and_Cables/Measuring.html') oCMenu.makeMenu('sub210','top4','RCD and Timers','http://www.mptools.co.uk/scp/Electrical_and_Cables/RCD_and_Timers.html') oCMenu.makeMenu('top5','',' Engineering Tools','http://www.mptools.co.uk/mcp/Engineering_Tools.html','') oCMenu.makeMenu('sub72','top5','ARC Welding','http://www.mptools.co.uk/scp/Engineering_Tools/ARC_Welding.html') oCMenu.makeMenu('sub109','top5','Automotive','http://www.mptools.co.uk/scp/Engineering_Tools/Automotive.html') oCMenu.makeMenu('sub27','top5','Engineers Tools','http://www.mptools.co.uk/scp/Engineering_Tools/Engineers_Tools.html') oCMenu.makeMenu('sub211','top5','Engineers Vices','http://www.mptools.co.uk/scp/Engineering_Tools/Engineers_Vices.html') oCMenu.makeMenu('sub91','top5','Files','http://www.mptools.co.uk/scp/Engineering_Tools/Files.html') oCMenu.makeMenu('sub42','top5','Hacksaws and Blades','http://www.mptools.co.uk/scp/Engineering_Tools/Hacksaws_and_Blades.html') oCMenu.makeMenu('sub136','top5','Hex and Torx Sets','http://www.mptools.co.uk/scp/Engineering_Tools/Hex_and_Torx_Sets.html') oCMenu.makeMenu('sub122','top5','Magnets','http://www.mptools.co.uk/scp/Engineering_Tools/Magnets.html') oCMenu.makeMenu('sub7','top5','MIG Welding','http://www.mptools.co.uk/scp/Engineering_Tools/MIG_Welding.html') oCMenu.makeMenu('sub8','top5','MIG Welding Machines','http://www.mptools.co.uk/scp/Engineering_Tools/MIG_Welding_Machines.html') oCMenu.makeMenu('sub182','top5','Other Welding','http://www.mptools.co.uk/scp/Engineering_Tools/Other_Welding.html') oCMenu.makeMenu('sub117','top5','Other Welding Accessories','http://www.mptools.co.uk/scp/Engineering_Tools/Other_Welding_Accessories.html') oCMenu.makeMenu('sub202','top5','Precision and Meters','http://www.mptools.co.uk/scp/Engineering_Tools/Precision_and_Meters.html') oCMenu.makeMenu('sub99','top5','Riveters and Rivets','http://www.mptools.co.uk/scp/Engineering_Tools/Riveters_and_Rivets.html') oCMenu.makeMenu('sub56','top5','Sockets and Sets','http://www.mptools.co.uk/scp/Engineering_Tools/Sockets_and_Sets.html') oCMenu.makeMenu('sub119','top5','Spanners and Sets','http://www.mptools.co.uk/scp/Engineering_Tools/Spanners_and_Sets.html') oCMenu.makeMenu('sub79','top5','Tap and Die Sets','http://www.mptools.co.uk/scp/Engineering_Tools/Tap_and_Die_Sets.html') oCMenu.makeMenu('sub203','top5','Tin Snips','http://www.mptools.co.uk/scp/Engineering_Tools/Tin_Snips.html') oCMenu.makeMenu('sub161','top5','Welding Consumables','http://www.mptools.co.uk/scp/Engineering_Tools/Welding_Consumables.html') oCMenu.makeMenu('sub13','top5','Wire Brushes','http://www.mptools.co.uk/scp/Engineering_Tools/Wire_Brushes.html') oCMenu.makeMenu('sub218','top5','Grease Application','http://www.mptools.co.uk/scp/Engineering_Tools/Grease_Application.html') oCMenu.makeMenu('sub4','top5','Thread Repair','http://www.mptools.co.uk/scp/Engineering_Tools/Thread_Repair.html') oCMenu.makeMenu('sub144','top5','Torque Wrenches','http://www.mptools.co.uk/scp/Engineering_Tools/Torque_Wrenches.html') oCMenu.makeMenu('top6','',' Garden and Outdoor','http://www.mptools.co.uk/mcp/Garden_and_Outdoor.html','') oCMenu.makeMenu('sub120','top6','Car Care','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Car_Care.html') oCMenu.makeMenu('sub61','top6','Brooms','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Brooms.html') oCMenu.makeMenu('sub225','top6','Gardeners','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Gardeners.html') oCMenu.makeMenu('sub103','top6','Hoses and Fittings','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Hoses_and_Fittings.html') oCMenu.makeMenu('sub213','top6','Pest Control','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Pest_Control.html') oCMenu.makeMenu('sub102','top6','Pruning','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Pruning.html') oCMenu.makeMenu('sub83','top6','Landscaping','http://www.mptools.co.uk/scp/Garden_and_Outdoor/Landscaping.html') oCMenu.makeMenu('top7','',' Hand Tools','http://www.mptools.co.uk/mcp/Hand_Tools.html','') oCMenu.makeMenu('sub36','top7','Bolt Cutters','http://www.mptools.co.uk/scp/Hand_Tools/Bolt_Cutters.html') oCMenu.makeMenu('sub168','top7','Chalk Lines','http://www.mptools.co.uk/scp/Hand_Tools/Chalk_Lines.html') oCMenu.makeMenu('sub106','top7','Demolition Tools','http://www.mptools.co.uk/scp/Hand_Tools/Demolition_Tools.html') oCMenu.makeMenu('sub95','top7','Hammers','http://www.mptools.co.uk/scp/Hand_Tools/Hammers.html') oCMenu.makeMenu('sub75','top7','Knives','http://www.mptools.co.uk/scp/Hand_Tools/Knives.html') oCMenu.makeMenu('sub154','top7','Measuring','http://www.mptools.co.uk/scp/Hand_Tools/Measuring.html') oCMenu.makeMenu('sub63','top7','Pliers','http://www.mptools.co.uk/scp/Hand_Tools/Pliers.html') oCMenu.makeMenu('sub162','top7','Screwdrivers','http://www.mptools.co.uk/scp/Hand_Tools/Screwdrivers.html') oCMenu.makeMenu('sub160','top7','Wrenches','http://www.mptools.co.uk/scp/Hand_Tools/Wrenches.html') oCMenu.makeMenu('sub199','top7','Tool Kits','http://www.mptools.co.uk/scp/Hand_Tools/Tool_Kits.html') oCMenu.makeMenu('top8','',' Multi Tools and Gadgets','http://www.mptools.co.uk/mcp/Multi_Tools_and_Gadgets.html','') oCMenu.makeMenu('sub46','top8','Batteries','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Batteries.html') oCMenu.makeMenu('sub172','top8','Bicycle Tools','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Bicycle_Tools.html') oCMenu.makeMenu('sub163','top8','Just for Fun','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Just_for_Fun.html') oCMenu.makeMenu('sub216','top8','Leisure','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Leisure.html') oCMenu.makeMenu('sub3','top8','Magnifying','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Magnifying.html') oCMenu.makeMenu('sub15','top8','Multi Tools','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Multi_Tools.html') oCMenu.makeMenu('sub140','top8','Optical Devices','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Optical_Devices.html') oCMenu.makeMenu('sub81','top8','Scissors','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Scissors.html') oCMenu.makeMenu('sub157','top8','Swiss Army','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Swiss_Army.html') oCMenu.makeMenu('sub191','top8','Thermometers','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Thermometers.html') oCMenu.makeMenu('sub187','top8','Utility Keys','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Utility_Keys.html') oCMenu.makeMenu('sub2','top8','Wheels & Castors','http://www.mptools.co.uk/scp/Multi_Tools_and_Gadgets/Wheels_&_Castors.html') oCMenu.makeMenu('top11','',' Power Tools','http://www.mptools.co.uk/mcp/Power_Tools.html','') oCMenu.makeMenu('sub110','top11','Batteries and Chargers','http://www.mptools.co.uk/scp/Power_Tools/Batteries_and_Chargers.html') oCMenu.makeMenu('sub14','top11','Benchtop and Workshop','http://www.mptools.co.uk/scp/Power_Tools/Benchtop_and_Workshop.html') oCMenu.makeMenu('sub178','top11','Combination Kits','http://www.mptools.co.uk/scp/Power_Tools/Combination_Kits.html') oCMenu.makeMenu('sub9','top11','Construction Equipment','http://www.mptools.co.uk/scp/Power_Tools/Construction_Equipment.html') oCMenu.makeMenu('sub141','top11','Drills - Cordless','http://www.mptools.co.uk/scp/Power_Tools/Drills_-_Cordless.html') oCMenu.makeMenu('sub208','top11','Drills - Corded','http://www.mptools.co.uk/scp/Power_Tools/Drills_-_Corded.html') oCMenu.makeMenu('sub149','top11','Drills - SDS','http://www.mptools.co.uk/scp/Power_Tools/Drills_-_SDS.html') oCMenu.makeMenu('sub89','top11','Drills - Angled','http://www.mptools.co.uk/scp/Power_Tools/Drills_-_Angled.html') oCMenu.makeMenu('sub32','top11','Drills - Electromagnetic','http://www.mptools.co.uk/scp/Power_Tools/Drills_-_Electromagnetic.html') oCMenu.makeMenu('sub118','top11','Garden and Outdoor','http://www.mptools.co.uk/scp/Power_Tools/Garden_and_Outdoor.html') oCMenu.makeMenu('sub171','top11','Generators','http://www.mptools.co.uk/scp/Power_Tools/Generators.html') oCMenu.makeMenu('sub128','top11','Grinders','http://www.mptools.co.uk/scp/Power_Tools/Grinders.html') oCMenu.makeMenu('sub92','top11','Heat Guns','http://www.mptools.co.uk/scp/Power_Tools/Heat_Guns.html') oCMenu.makeMenu('sub137','top11','Impact Wrenches','http://www.mptools.co.uk/scp/Power_Tools/Impact_Wrenches.html') oCMenu.makeMenu('sub135','top11','Lighting','http://www.mptools.co.uk/scp/Power_Tools/Lighting.html') oCMenu.makeMenu('sub30','top11','Miscellaneous','http://www.mptools.co.uk/scp/Power_Tools/Miscellaneous.html') oCMenu.makeMenu('sub179','top11','Mixers','http://www.mptools.co.uk/scp/Power_Tools/Mixers.html') oCMenu.makeMenu('sub215','top11','Nailers and Staplers','http://www.mptools.co.uk/scp/Power_Tools/Nailers_and_Staplers.html') oCMenu.makeMenu('sub186','top11','Planers','http://www.mptools.co.uk/scp/Power_Tools/Planers.html') oCMenu.makeMenu('sub112','top11','Routers','http://www.mptools.co.uk/scp/Power_Tools/Routers.html') oCMenu.makeMenu('sub150','top11','Sanders','http://www.mptools.co.uk/scp/Power_Tools/Sanders.html') oCMenu.makeMenu('sub223','top11','Saws - Circular','http://www.mptools.co.uk/scp/Power_Tools/Saws_-_Circular.html') oCMenu.makeMenu('sub12','top11','Saws - Jigsaws','http://www.mptools.co.uk/scp/Power_Tools/Saws_-_Jigsaws.html') oCMenu.makeMenu('sub69','top11','Saws - Mitre','http://www.mptools.co.uk/scp/Power_Tools/Saws_-_Mitre.html') oCMenu.makeMenu('sub204','top11','Saws - Reciprocating','http://www.mptools.co.uk/scp/Power_Tools/Saws_-_Reciprocating.html') oCMenu.makeMenu('sub94','top11','Screwdrivers','http://www.mptools.co.uk/scp/Power_Tools/Screwdrivers.html') oCMenu.makeMenu('sub180','top11','Tile Cutters','http://www.mptools.co.uk/scp/Power_Tools/Tile_Cutters.html') oCMenu.makeMenu('sub40','top11','Transformers','http://www.mptools.co.uk/scp/Power_Tools/Transformers.html') oCMenu.makeMenu('sub222','top11','Vacuum Cleaners','http://www.mptools.co.uk/scp/Power_Tools/Vacuum_Cleaners.html') oCMenu.makeMenu('sub214','top11','Wallpaper Strippers','http://www.mptools.co.uk/scp/Power_Tools/Wallpaper_Strippers.html') oCMenu.makeMenu('sub65','top11','Water Pumps','http://www.mptools.co.uk/scp/Power_Tools/Water_Pumps.html') oCMenu.makeMenu('top10','',' Power Tool Accessories','http://www.mptools.co.uk/mcp/Power_Tool_Accessories.html','') oCMenu.makeMenu('sub188','top10','Abrasives','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Abrasives.html') oCMenu.makeMenu('sub31','top10','Auger','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Auger.html') oCMenu.makeMenu('sub173','top10','Biscuits','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Biscuits.html') oCMenu.makeMenu('sub192','top10','Chucks','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Chucks.html') oCMenu.makeMenu('sub209','top10','Core Drills','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Core_Drills.html') oCMenu.makeMenu('sub48','top10','Drill Bits','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Drill_Bits.html') oCMenu.makeMenu('sub166','top10','Drivers','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Drivers.html') oCMenu.makeMenu('sub169','top10','Flat Bits','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Flat_Bits.html') oCMenu.makeMenu('sub45','top10','Forstner Bits','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Forstner_Bits.html') oCMenu.makeMenu('sub85','top10','Grinding and Cups','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Grinding_and_Cups.html') oCMenu.makeMenu('sub28','top10','Hobby Tool','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Hobby_Tool.html') oCMenu.makeMenu('sub194','top10','Hole Saws','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Hole_Saws.html') oCMenu.makeMenu('sub54','top10','Jigs','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Jigs.html') oCMenu.makeMenu('sub219','top10','Kango','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Kango.html') oCMenu.makeMenu('sub200','top10','Miscellaneous','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Miscellaneous.html') oCMenu.makeMenu('sub43','top10','Mixers','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Mixers.html') oCMenu.makeMenu('sub170','top10','Mortice Bits','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Mortice_Bits.html') oCMenu.makeMenu('sub57','top10','Router Cutters','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Router_Cutters.html') oCMenu.makeMenu('sub121','top10','Sand and Polish','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Sand_and_Polish.html') oCMenu.makeMenu('sub207','top10','Saw Blades','http://www.mptools.co.uk/scp/Power_Tool_Accessories/Saw_Blades.html') oCMenu.makeMenu('sub127','top10','SDS Max','http://www.mptools.co.uk/scp/Power_Tool_Accessories/SDS_Max.html') oCMenu.makeMenu('sub24','top10','SDS Plus','http://www.mptools.co.uk/scp/Power_Tool_Accessories/SDS_Plus.html') oCMenu.makeMenu('top13','',' Safety and Signage','http://www.mptools.co.uk/mcp/Safety_and_Signage.html','') oCMenu.makeMenu('sub41','top13','Access Ramps','http://www.mptools.co.uk/scp/Safety_and_Signage/Access_Ramps.html') oCMenu.makeMenu('sub21','top13','Environmental','http://www.mptools.co.uk/scp/Safety_and_Signage/Environmental.html') oCMenu.makeMenu('sub131','top13','Fire','http://www.mptools.co.uk/scp/Safety_and_Signage/Fire.html') oCMenu.makeMenu('sub184','top13','First Aid Kits','http://www.mptools.co.uk/scp/Safety_and_Signage/First_Aid_Kits.html') oCMenu.makeMenu('sub183','top13','Harnesses','http://www.mptools.co.uk/scp/Safety_and_Signage/Harnesses.html') oCMenu.makeMenu('sub164','top13','Janitorial','http://www.mptools.co.uk/scp/Safety_and_Signage/Janitorial.html') oCMenu.makeMenu('sub22','top13','Signage','http://www.mptools.co.uk/scp/Safety_and_Signage/Signage.html') oCMenu.makeMenu('top14','',' Spray Equipment','http://www.mptools.co.uk/mcp/Spray_Equipment.html','') oCMenu.makeMenu('sub87','top14','Airless Filters','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Filters.html') oCMenu.makeMenu('sub196','top14','Airless Guns','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Guns.html') oCMenu.makeMenu('sub189','top14','Airless Hoses','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Hoses.html') oCMenu.makeMenu('sub158','top14','Airless Machines','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Machines.html') oCMenu.makeMenu('sub23','top14','Airless Poles','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Poles.html') oCMenu.makeMenu('sub114','top14','Airless Rollers','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Rollers.html') oCMenu.makeMenu('sub176','top14','Airless Tips','http://www.mptools.co.uk/scp/Spray_Equipment/Airless_Tips.html') oCMenu.makeMenu('sub58','top14','HVLP Machines','http://www.mptools.co.uk/scp/Spray_Equipment/HVLP_Machines.html') oCMenu.makeMenu('sub375','top14','Compressor Guns','http://www.mptools.co.uk/scp/Spray_Equipment/Compressor_Guns.html') oCMenu.makeMenu('sub6','top14','Masking','http://www.mptools.co.uk/scp/Spray_Equipment/Masking.html') oCMenu.makeMenu('sub132','top14','Plaster Machines','http://www.mptools.co.uk/scp/Spray_Equipment/Plaster_Machines.html') oCMenu.makeMenu('sub224','top14','Portaspray','http://www.mptools.co.uk/scp/Spray_Equipment/Portaspray.html') oCMenu.makeMenu('sub55','top14','Reconditioned','http://www.mptools.co.uk/scp/Spray_Equipment/Reconditioned.html') oCMenu.makeMenu('sub52','top14','Service','http://www.mptools.co.uk/scp/Spray_Equipment/Service.html') oCMenu.makeMenu('sub227','top14','Tanning Equipment','http://www.mptools.co.uk/scp/Spray_Equipment/Tanning_Equipment.html') oCMenu.makeMenu('sub138','top14','Transformer','http://www.mptools.co.uk/scp/Spray_Equipment/Transformer.html') oCMenu.makeMenu('top15','',' Storage and Security','http://www.mptools.co.uk/mcp/Storage_and_Security.html','') oCMenu.makeMenu('sub93','top15','Cargo Handling','http://www.mptools.co.uk/scp/Storage_and_Security/Cargo_Handling.html') oCMenu.makeMenu('sub25','top15','Door Closers','http://www.mptools.co.uk/scp/Storage_and_Security/Door_Closers.html') oCMenu.makeMenu('sub167','top15','Pouches and Belts','http://www.mptools.co.uk/scp/Storage_and_Security/Pouches_and_Belts.html') oCMenu.makeMenu('sub177','top15','Security','http://www.mptools.co.uk/scp/Storage_and_Security/Security.html') oCMenu.makeMenu('sub193','top15','Tool Transport','http://www.mptools.co.uk/scp/Storage_and_Security/Tool_Transport.html') oCMenu.makeMenu('sub90','top15','Torches','http://www.mptools.co.uk/scp/Storage_and_Security/Torches.html') oCMenu.makeMenu('sub111','top15','Van and Site Boxes','http://www.mptools.co.uk/scp/Storage_and_Security/Van_and_Site_Boxes.html') oCMenu.makeMenu('sub76','top15','Workbenches','http://www.mptools.co.uk/scp/Storage_and_Security/Workbenches.html') oCMenu.makeMenu('top17','',' Woodworking Tools','http://www.mptools.co.uk/mcp/Woodworking_Tools.html','') oCMenu.makeMenu('sub146','top17','Chisels','http://www.mptools.co.uk/scp/Woodworking_Tools/Chisels.html') oCMenu.makeMenu('sub68','top17','Clamps and Vices','http://www.mptools.co.uk/scp/Woodworking_Tools/Clamps_and_Vices.html') oCMenu.makeMenu('sub175','top17','Saws and Blades','http://www.mptools.co.uk/scp/Woodworking_Tools/Saws_and_Blades.html') oCMenu.makeMenu('sub115','top17','Squares and Mitres','http://www.mptools.co.uk/scp/Woodworking_Tools/Squares_and_Mitres.html') oCMenu.makeMenu('sub38','top17','Planers','http://www.mptools.co.uk/scp/Woodworking_Tools/Planers.html') oCMenu.makeMenu('sub20','top17','Rules','http://www.mptools.co.uk/scp/Woodworking_Tools/Rules.html') oCMenu.makeMenu('sub84','top17','Woodworker','http://www.mptools.co.uk/scp/Woodworking_Tools/Woodworker.html') oCMenu.makeMenu('top18','',' Workwear and Protection','http://www.mptools.co.uk/mcp/Workwear_and_Protection.html','') oCMenu.makeMenu('sub145','top18','Chainsaw Clothing','http://www.mptools.co.uk/scp/Workwear_and_Protection/Chainsaw_Clothing.html') oCMenu.makeMenu('sub185','top18','Ear Protection','http://www.mptools.co.uk/scp/Workwear_and_Protection/Ear_Protection.html') oCMenu.makeMenu('sub197','top18','Eye Protection','http://www.mptools.co.uk/scp/Workwear_and_Protection/Eye_Protection.html') oCMenu.makeMenu('sub59','top18','Footwear','http://www.mptools.co.uk/scp/Workwear_and_Protection/Footwear.html') oCMenu.makeMenu('sub98','top18','General Clothing','http://www.mptools.co.uk/scp/Workwear_and_Protection/General_Clothing.html') oCMenu.makeMenu('sub104','top18','Gloves','http://www.mptools.co.uk/scp/Workwear_and_Protection/Gloves.html') oCMenu.makeMenu('sub139','top18','Head Protection','http://www.mptools.co.uk/scp/Workwear_and_Protection/Head_Protection.html') oCMenu.makeMenu('sub73','top18','Hi-Viz Clothing','http://www.mptools.co.uk/scp/Workwear_and_Protection/Hi-Viz_Clothing.html') oCMenu.makeMenu('sub77','top18','Knee Protection','http://www.mptools.co.uk/scp/Workwear_and_Protection/Knee_Protection.html') oCMenu.makeMenu('sub152','top18','Masks','http://www.mptools.co.uk/scp/Workwear_and_Protection/Masks.html') oCMenu.makeMenu('top21','',' Hot Deals','http://www.mptools.co.uk/mcp/Hot_Deals.html','') oCMenu.makeMenu('sub372','top21','Clearance Lines','http://www.mptools.co.uk/scp/Hot_Deals/Clearance_Lines.html') oCMenu.makeMenu('sub369','top21','Discontinued Lines','http://www.mptools.co.uk/scp/Hot_Deals/Discontinued_Lines.html') oCMenu.makeMenu('sub371','top21','Draper Specials','http://www.mptools.co.uk/scp/Hot_Deals/Draper_Specials.html') oCMenu.makeMenu('sub370','top21','Hot Power Tools','http://www.mptools.co.uk/scp/Hot_Deals/Hot_Power_Tools.html') oCMenu.makeMenu('top9','',' New Lines','http://www.mptools.co.uk/mcp/New_Lines.html','') oCMenu.makeMenu('sub514','top9','Abus','http://www.mptools.co.uk/scp/New_Lines/Abus.html') oCMenu.makeMenu('sub515','top9','Advent','http://www.mptools.co.uk/scp/New_Lines/Advent.html') oCMenu.makeMenu('sub512','top9','AEG Power Tools','http://www.mptools.co.uk/scp/New_Lines/AEG_Power_Tools.html') oCMenu.makeMenu('sub516','top9','ALM','http://www.mptools.co.uk/scp/New_Lines/ALM.html') oCMenu.makeMenu('sub518','top9','Arrow','http://www.mptools.co.uk/scp/New_Lines/Arrow.html') oCMenu.makeMenu('sub519','top9','Bahco','http://www.mptools.co.uk/scp/New_Lines/Bahco.html') oCMenu.makeMenu('sub522','top9','Bi-Metal','http://www.mptools.co.uk/scp/New_Lines/Bi-Metal.html') oCMenu.makeMenu('sub521','top9','Big Wipes','http://www.mptools.co.uk/scp/New_Lines/Big_Wipes.html') oCMenu.makeMenu('sub513','top9','Black and Decker','http://www.mptools.co.uk/scp/New_Lines/Black_and_Decker.html') oCMenu.makeMenu('sub523','top9','Bluespot','http://www.mptools.co.uk/scp/New_Lines/Bluespot.html') oCMenu.makeMenu('sub524','top9','Bostitch','http://www.mptools.co.uk/scp/New_Lines/Bostitch.html') oCMenu.makeMenu('sub526','top9','Bulldog','http://www.mptools.co.uk/scp/New_Lines/Bulldog.html') oCMenu.makeMenu('sub392','top9','Byron','http://www.mptools.co.uk/scp/New_Lines/Byron.html') oCMenu.makeMenu('sub528','top9','Concept','http://www.mptools.co.uk/scp/New_Lines/Concept.html') oCMenu.makeMenu('sub529','top9','Cuprinol','http://www.mptools.co.uk/scp/New_Lines/Cuprinol.html') oCMenu.makeMenu('sub530','top9','Denso Tape','http://www.mptools.co.uk/scp/New_Lines/Denso_Tape.html') oCMenu.makeMenu('sub395','top9','DeWalt','http://www.mptools.co.uk/scp/New_Lines/DeWalt.html') oCMenu.makeMenu('sub396','top9','DMT','http://www.mptools.co.uk/scp/New_Lines/DMT.html') oCMenu.makeMenu('sub397','top9','Dormer','http://www.mptools.co.uk/scp/New_Lines/Dormer.html') oCMenu.makeMenu('sub532','top9','Earlex','http://www.mptools.co.uk/scp/New_Lines/Earlex.html') oCMenu.makeMenu('sub398','top9','Edma','http://www.mptools.co.uk/scp/New_Lines/Edma.html') oCMenu.makeMenu('sub399','top9','Einhell','http://www.mptools.co.uk/scp/New_Lines/Einhell.html') oCMenu.makeMenu('sub400','top9','Energize','http://www.mptools.co.uk/scp/New_Lines/Energize.html') oCMenu.makeMenu('sub401','top9','Estwing','http://www.mptools.co.uk/scp/New_Lines/Estwing.html') oCMenu.makeMenu('sub533','top9','Everbuild','http://www.mptools.co.uk/scp/New_Lines/Everbuild.html') oCMenu.makeMenu('sub403','top9','Evo-Stik','http://www.mptools.co.uk/scp/New_Lines/Evo-Stik.html') oCMenu.makeMenu('sub404','top9','Faithfull','http://www.mptools.co.uk/scp/New_Lines/Faithfull.html') oCMenu.makeMenu('sub405','top9','Faithfull Power Plus','http://www.mptools.co.uk/scp/New_Lines/Faithfull_Power_Plus.html') oCMenu.makeMenu('sub534','top9','Fisco','http://www.mptools.co.uk/scp/New_Lines/Fisco.html') oCMenu.makeMenu('sub535','top9','Fiskars','http://www.mptools.co.uk/scp/New_Lines/Fiskars.html') oCMenu.makeMenu('sub536','top9','Flexovit','http://www.mptools.co.uk/scp/New_Lines/Flexovit.html') oCMenu.makeMenu('sub409','top9','Frys Metals','http://www.mptools.co.uk/scp/New_Lines/Frys_Metals.html') oCMenu.makeMenu('sub537','top9','Gerber','http://www.mptools.co.uk/scp/New_Lines/Gerber.html') oCMenu.makeMenu('sub538','top9','Gorilla Glue','http://www.mptools.co.uk/scp/New_Lines/Gorilla_Glue.html') oCMenu.makeMenu('sub411','top9','Hammerite','http://www.mptools.co.uk/scp/New_Lines/Hammerite.html') oCMenu.makeMenu('sub539','top9','Henry Squire','http://www.mptools.co.uk/scp/New_Lines/Henry_Squire.html') oCMenu.makeMenu('sub413','top9','Hills industries','http://www.mptools.co.uk/scp/New_Lines/Hills_industries.html') oCMenu.makeMenu('sub540','top9','Hilmor','http://www.mptools.co.uk/scp/New_Lines/Hilmor.html') oCMenu.makeMenu('sub541','top9','Hitachi','http://www.mptools.co.uk/scp/New_Lines/Hitachi.html') oCMenu.makeMenu('sub542','top9','Hozelock','http://www.mptools.co.uk/scp/New_Lines/Hozelock.html') oCMenu.makeMenu('sub543','top9','Irazola','http://www.mptools.co.uk/scp/New_Lines/Irazola.html') oCMenu.makeMenu('sub544','top9','Irimo','http://www.mptools.co.uk/scp/New_Lines/Irimo.html') oCMenu.makeMenu('sub545','top9','Irwin','http://www.mptools.co.uk/scp/New_Lines/Irwin.html') oCMenu.makeMenu('sub419','top9','Irwin Jack','http://www.mptools.co.uk/scp/New_Lines/Irwin_Jack.html') oCMenu.makeMenu('sub420','top9','Irwin Quick-Grip','http://www.mptools.co.uk/scp/New_Lines/Irwin_Quick-Grip.html') oCMenu.makeMenu('sub546','top9','Isotronic','http://www.mptools.co.uk/scp/New_Lines/Isotronic.html') oCMenu.makeMenu('sub547','top9','ITL','http://www.mptools.co.uk/scp/New_Lines/ITL.html') oCMenu.makeMenu('sub422','top9','Jack','http://www.mptools.co.uk/scp/New_Lines/Jack.html') oCMenu.makeMenu('sub423','top9','Jubilee','http://www.mptools.co.uk/scp/New_Lines/Jubilee.html') oCMenu.makeMenu('sub548','top9','Karcher','http://www.mptools.co.uk/scp/New_Lines/Karcher.html') oCMenu.makeMenu('sub425','top9','Kidde','http://www.mptools.co.uk/scp/New_Lines/Kidde.html') oCMenu.makeMenu('sub427','top9','Kunys','http://www.mptools.co.uk/scp/New_Lines/Kunys.html') oCMenu.makeMenu('sub549','top9','Kunys','http://www.mptools.co.uk/scp/New_Lines/Kunys.html') oCMenu.makeMenu('sub550','top9','LED Lenser','http://www.mptools.co.uk/scp/New_Lines/LED_Lenser.html') oCMenu.makeMenu('sub429','top9','Lessman','http://www.mptools.co.uk/scp/New_Lines/Lessman.html') oCMenu.makeMenu('sub551','top9','Liberon','http://www.mptools.co.uk/scp/New_Lines/Liberon.html') oCMenu.makeMenu('sub430','top9','Lighthouse','http://www.mptools.co.uk/scp/New_Lines/Lighthouse.html') oCMenu.makeMenu('sub431','top9','Loctite','http://www.mptools.co.uk/scp/New_Lines/Loctite.html') oCMenu.makeMenu('sub552','top9','Lufkin','http://www.mptools.co.uk/scp/New_Lines/Lufkin.html') oCMenu.makeMenu('sub433','top9','Maglite','http://www.mptools.co.uk/scp/New_Lines/Maglite.html') oCMenu.makeMenu('sub511','top9','Marcrist','http://www.mptools.co.uk/scp/New_Lines/Marcrist.html') oCMenu.makeMenu('sub435','top9','Markal','http://www.mptools.co.uk/scp/New_Lines/Markal.html') oCMenu.makeMenu('sub520','top9','Marshalltown','http://www.mptools.co.uk/scp/New_Lines/Marshalltown.html') oCMenu.makeMenu('sub553','top9','Masterlock','http://www.mptools.co.uk/scp/New_Lines/Masterlock.html') oCMenu.makeMenu('sub437','top9','Masterplug','http://www.mptools.co.uk/scp/New_Lines/Masterplug.html') oCMenu.makeMenu('sub438','top9','Matabi','http://www.mptools.co.uk/scp/New_Lines/Matabi.html') oCMenu.makeMenu('sub439','top9','Metabo','http://www.mptools.co.uk/scp/New_Lines/Metabo.html') oCMenu.makeMenu('sub440','top9','Miscellaneous','http://www.mptools.co.uk/scp/New_Lines/Miscellaneous.html') oCMenu.makeMenu('sub554','top9','Mitutoyo','http://www.mptools.co.uk/scp/New_Lines/Mitutoyo.html') oCMenu.makeMenu('sub555','top9','Moldex','http://www.mptools.co.uk/scp/New_Lines/Moldex.html') oCMenu.makeMenu('sub443','top9','Monument','http://www.mptools.co.uk/scp/New_Lines/Monument.html') oCMenu.makeMenu('sub556','top9','N/P','http://www.mptools.co.uk/scp/New_Lines/N/P.html') oCMenu.makeMenu('sub444','top9','Nicholson','http://www.mptools.co.uk/scp/New_Lines/Nicholson.html') oCMenu.makeMenu('sub557','top9','Nilfisk','http://www.mptools.co.uk/scp/New_Lines/Nilfisk.html') oCMenu.makeMenu('sub559','top9','NWS','http://www.mptools.co.uk/scp/New_Lines/NWS.html') oCMenu.makeMenu('sub445','top9','Oakley','http://www.mptools.co.uk/scp/New_Lines/Oakley.html') oCMenu.makeMenu('sub560','top9','Olympia','http://www.mptools.co.uk/scp/New_Lines/Olympia.html') oCMenu.makeMenu('sub446','top9','Perles','http://www.mptools.co.uk/scp/New_Lines/Perles.html') oCMenu.makeMenu('sub447','top9','Plano','http://www.mptools.co.uk/scp/New_Lines/Plano.html') oCMenu.makeMenu('sub448','top9','Plasplug','http://www.mptools.co.uk/scp/New_Lines/Plasplug.html') oCMenu.makeMenu('sub563','top9','Plasti-kote','http://www.mptools.co.uk/scp/New_Lines/Plasti-kote.html') oCMenu.makeMenu('sub562','top9','Plastikote','http://www.mptools.co.uk/scp/New_Lines/Plastikote.html') oCMenu.makeMenu('sub564','top9','Polycell','http://www.mptools.co.uk/scp/New_Lines/Polycell.html') oCMenu.makeMenu('sub565','top9','Primus','http://www.mptools.co.uk/scp/New_Lines/Primus.html') oCMenu.makeMenu('sub450','top9','Priory','http://www.mptools.co.uk/scp/New_Lines/Priory.html') oCMenu.makeMenu('sub566','top9','Procter','http://www.mptools.co.uk/scp/New_Lines/Procter.html') oCMenu.makeMenu('sub451','top9','Proctor Brothers','http://www.mptools.co.uk/scp/New_Lines/Proctor_Brothers.html') oCMenu.makeMenu('sub453','top9','R.S.T.','http://www.mptools.co.uk/scp/New_Lines/R.S.T..html') oCMenu.makeMenu('sub454','top9','Ragni','http://www.mptools.co.uk/scp/New_Lines/Ragni.html') oCMenu.makeMenu('sub455','top9','Rapid','http://www.mptools.co.uk/scp/New_Lines/Rapid.html') oCMenu.makeMenu('sub456','top9','Rawlplug','http://www.mptools.co.uk/scp/New_Lines/Rawlplug.html') oCMenu.makeMenu('sub568','top9','Recoil','http://www.mptools.co.uk/scp/New_Lines/Recoil.html') oCMenu.makeMenu('sub569','top9','Record Power','http://www.mptools.co.uk/scp/New_Lines/Record_Power.html') oCMenu.makeMenu('sub459','top9','Rentokil','http://www.mptools.co.uk/scp/New_Lines/Rentokil.html') oCMenu.makeMenu('sub460','top9','Rocol','http://www.mptools.co.uk/scp/New_Lines/Rocol.html') oCMenu.makeMenu('sub571','top9','Ronseal','http://www.mptools.co.uk/scp/New_Lines/Ronseal.html') oCMenu.makeMenu('sub573','top9','Rustins','http://www.mptools.co.uk/scp/New_Lines/Rustins.html') oCMenu.makeMenu('sub461','top9','Ryobi','http://www.mptools.co.uk/scp/New_Lines/Ryobi.html') oCMenu.makeMenu('sub575','top9','S STYLE','http://www.mptools.co.uk/scp/New_Lines/S_STYLE.html') oCMenu.makeMenu('sub576','top9','Scan','http://www.mptools.co.uk/scp/New_Lines/Scan.html') oCMenu.makeMenu('sub464','top9','Scottool','http://www.mptools.co.uk/scp/New_Lines/Scottool.html') oCMenu.makeMenu('sub577','top9','SHP','http://www.mptools.co.uk/scp/New_Lines/SHP.html') oCMenu.makeMenu('sub466','top9','SMJ','http://www.mptools.co.uk/scp/New_Lines/SMJ.html') oCMenu.makeMenu('sub578','top9','Solvite','http://www.mptools.co.uk/scp/New_Lines/Solvite.html') oCMenu.makeMenu('sub574','top9','Stabila','http://www.mptools.co.uk/scp/New_Lines/Stabila.html') oCMenu.makeMenu('sub579','top9','Stahlwille','http://www.mptools.co.uk/scp/New_Lines/Stahlwille.html') oCMenu.makeMenu('sub469','top9','Stanley','http://www.mptools.co.uk/scp/New_Lines/Stanley.html') oCMenu.makeMenu('sub470','top9','Steinel','http://www.mptools.co.uk/scp/New_Lines/Steinel.html') oCMenu.makeMenu('sub471','top9','Strait-Line','http://www.mptools.co.uk/scp/New_Lines/Strait-Line.html') oCMenu.makeMenu('sub472','top9','STV','http://www.mptools.co.uk/scp/New_Lines/STV.html') oCMenu.makeMenu('sub473','top9','Swarfega','http://www.mptools.co.uk/scp/New_Lines/Swarfega.html') oCMenu.makeMenu('sub475','top9','Tacwise','http://www.mptools.co.uk/scp/New_Lines/Tacwise.html') oCMenu.makeMenu('sub476','top9','Teng','http://www.mptools.co.uk/scp/New_Lines/Teng.html') oCMenu.makeMenu('sub479','top9','Town and Country','http://www.mptools.co.uk/scp/New_Lines/Town_and_Country.html') oCMenu.makeMenu('sub480','top9','Trend','http://www.mptools.co.uk/scp/New_Lines/Trend.html') oCMenu.makeMenu('sub481','top9','TUW','http://www.mptools.co.uk/scp/New_Lines/TUW.html') oCMenu.makeMenu('sub482','top9','U-Care','http://www.mptools.co.uk/scp/New_Lines/U-Care.html') oCMenu.makeMenu('sub486','top9','Vileda','http://www.mptools.co.uk/scp/New_Lines/Vileda.html') oCMenu.makeMenu('sub489','top9','Vitrex','http://www.mptools.co.uk/scp/New_Lines/Vitrex.html') oCMenu.makeMenu('sub491','top9','Weller','http://www.mptools.co.uk/scp/New_Lines/Weller.html') oCMenu.makeMenu('sub492','top9','Wera','http://www.mptools.co.uk/scp/New_Lines/Wera.html') oCMenu.makeMenu('sub493','top9','Wiss','http://www.mptools.co.uk/scp/New_Lines/Wiss.html') oCMenu.makeMenu('sub495','top9','Wolfcraft','http://www.mptools.co.uk/scp/New_Lines/Wolfcraft.html') oCMenu.makeMenu('sub496','top9','Wynns','http://www.mptools.co.uk/scp/New_Lines/Wynns.html') oCMenu.wait=1000 oCMenu.pagecheck=1 oCMenu.checkscroll=0 oCMenu.resizecheck=1 oCMenu.makeStyle(); oCMenu.construct() function cm_checkScrolled(obj){ if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset else obj.scrolledY=obj.win.document.body.scrollTop if(obj.scrolledY!=obj.lastScrolled){ if(!obj.useframes){ self.status=obj.scrolledY if(obj.scrolledY>119){ for(i=0;i