// JavaScript Documentfunction myGetElementById(elemId,myDoc){	if (null == myDoc) myDoc = window.document;	if (myDoc.getElementById) return myDoc.getElementById(elemId);	else if (myDoc.all) return myDoc.all[elemId];	return null;	}	function pointDown(myID){	myGetElementById(myID, document).src = "/img-general/arrow_down.jpg"	lastImg = myID;}var lastImg;function pointRight(myID){var myName = findB(myID);if (myName == "0sub1"){	var myImg = myGetElementById(lastImg, document);	if (null != myImg) myImg.src = "/img-general/arrow_right.jpg";	}}function findB(myObj){		for (var x in oM.m){		if (oM.m[x].b == myObj) return oM.m[x].name;		}	return null;	}/*** This is the menu creation code - place it right after you body tagFeel free to add this to a stand-alone js file and link it to your page.**/var oM=new makeCM("oM")oM.pxBetween=1oM.fromTop=180oM.fromLeft=10oM.menuPlacement=0oM.wait=600oM.fillImg="cm_fill.gif"oM.zIndex=100 oM.resizeCheck=1oM.zIndex=100  oM.onlineRoot=""oM.offlineRoot="file:///C|/myfiles/"oM.rows=1//Level properties//Syntax for fast creation (advanced users only)//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)oM.level[0]=new cm_makeLevel()oM.level[0].width=60oM.level[0].height=10oM.level[0].regClass="clT" oM.level[0].overClass="clTover"  oM.level[0].borderX=2oM.level[0].borderY=2oM.level[0].borderClass="clB2" oM.level[0].rows=0oM.level[0].align="bottom"//oM.level[0].offsetX=0//oM.level[0].offsetY=0oM.level[0].arrow=0oM.level[0].arrowWidth=0oM.level[0].arrowHeight=0oM.level[1]=new cm_makeLevel()oM.level[1].width=90oM.level[1].height=nulloM.level[1].regClass="clS" oM.level[1].overClass="clSover" oM.level[1].borderX=0oM.level[1].borderY=1oM.level[1].borderClass="clB1"oM.level[1].align="right"oM.level[1].rows=1oM.level[1].arrow="/img-general/sub_arrow.gif"oM.level[1].arrowWidth=10oM.level[1].arrowHeight=10oM.level[2]=new cm_makeLevel()oM.level[2].width=90oM.level[2].height=nulloM.level[2].regClass="clS" oM.level[2].overClass="clSover" oM.level[2].borderX=0oM.level[2].borderY=1oM.level[2].borderClass="clB1"oM.level[2].align="left"oM.level[2].rows=1oM.level[2].arrow=0oM.level[2].arrowWidth=0oM.level[2].arrowHeight=0oM.level[3]=new cm_makeLevel()oM.level[3].width=90oM.level[3].height=nulloM.level[3].regClass="clS" oM.level[3].overClass="clSover" oM.level[3].borderX=1oM.level[3].borderY=1oM.level[3].borderClass="clBCC"oM.level[3].align="left"oM.level[3].rows=1oM.level[3].arrow=0oM.level[3].arrowWidth=0oM.level[3].arrowHeight=0//******************************************//Menu item creation://myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) oM.makeMenu('top0','','Align left','','',10,'','','','','',"left",'','','','','') //paints	oM.makeMenu('0sub1','top0','Water Based','/english/products/2.1.1_w_fullgloss.html','',110,18,'','','','','right',0,'','','','')			oM.makeMenu('0a1','0sub1','Full Gloss','/english/products/2.1.1_w_fullgloss.html','',105,18,'','','','','right')			oM.makeMenu('0a2','0sub1','Semi Gloss','/english/products/2.1.2_w_semigloss.html','',105,18,'','','','','right')			oM.makeMenu('0a3','0sub1','Satin','/english/products/2.1.3_w_satin.html','',105,18,'','','','','right')			oM.makeMenu('0a4','0sub1','Flat','/english/products/2.1.4_w_flat.html','',105,18,'','','','','right')			oM.makeMenu('0a5','0sub1','Odorless','/english/products/2.1.5_w_odorless.html','',105,18,'','','','','right')			oM.makeMenu('0a6','0sub1','Elastomeric','/english/products/2.1.6_w_elastomeric.html','',105,18,'','','','','right')			oM.makeMenu('0a7','0sub1','Waterproof','/english/products/2.1.7_w_waterproof.html','',105,18,'','','','','right')	oM.makeMenu('0sub2','top0','Oil Based','/english/products/2.2_oil_based.html','',110,18,'','','','','right')oM.makeMenu('top1','','Align left','','',10,'','','','','',"left") //primers	oM.makeMenu('1sub1','top1','Water Based','/english/products/1.1_water.html','',100,18)	oM.makeMenu('1sub2','top1','Oil Based','/english/products/1.2_oil.html','',100,18)oM.makeMenu('top2','','Align left','','',10,'','','','','',"left") //wood finishes	oM.makeMenu('2sub1','top2','Polyurethane Finishes','/english/products/3.1_poly_fin.html','',200,18)	oM.makeMenu('2sub2','top2','Alkyd Varnish','/english/products/3.2_alkyd.html','',200,18)	oM.makeMenu('2sub3','top2','Preservatives & Waterproofing','/english/products/3.3_pres_wproof.html','',200,18)	oM.makeMenu('2sub4','top2','Wood Protectant','/english/products/3.6_wood_protectant.html','',200,18)	oM.makeMenu('2sub5','top2','Lacquers','/english/products/3.4_lacquers.html','',200,18)	oM.makeMenu('2sub6','top2','Sanding Sealers','/english/products/3.5_sand_seal.html','',200,18)oM.makeMenu('top3','','Align left','','',10,'','','','','',"left",'','','','') //roof coatings	oM.makeMenu('3sub1','top3','Elastomeric Latex Primers','/english/products/4.1_elas_latex_primer.html','',265,18)	oM.makeMenu('3sub2','top3','Elastomeric Synthetic Rubber Primer','/english/products/4.2_elas_synth_rub_primer.html','',265,18)	oM.makeMenu('3sub3','top3','Elastomeric Latex Roof Coating','/english/products/4.3_elas_latex_roof_coating.html','',265,18)	oM.makeMenu('3sub4','top3','Elastomeric Synthetic Rubber Roof Coating','/english/products/4.4_elas_synth_rub_coating.html','',265,18)	oM.makeMenu('3sub5','top3','Acrylic Roof Coating','/english/products/4.5_acryl_roof_coating.html','',265,18)oM.makeMenu('top4','','Align left','','',10,'','','','','',"left",'','','','') //sealants & spacklings	oM.makeMenu('4sub1','top4','Acrylic Latex Sealants','/english/products/5.1_acryl_latex_sealants.html','',190,18)	oM.makeMenu('4sub2','top4','Elastomeric Latex Sealants','/english/products/5.2_elas_latex_sealants.html','',190,18)	oM.makeMenu('4sub3','top4','100% Silicone Sealants','/english/products/5.3_sil_sealants.html','',190,18)	oM.makeMenu('4sub4','top4','Elastomeric Urethane Sealants','/english/products/5.8_elas_urethane_sealants.html','',190,18)	oM.makeMenu('4sub5','top4','Elastomeric Crack Filler','/english/products/5.4_elas_crack_filler.html','',190,18)	oM.makeMenu('4sub6','top4','Interior & Exterior Spacklings','/english/products/5.5_int_ext_spacklings.html','',190,18)	oM.makeMenu('4sub7','top4','Interior Spackling','/english/products/5.6_int_spackling.html','',190,18)	oM.makeMenu('4sub8','top4','Wood Filler','/english/products/5.7_wood_filler.html','',190,18)oM.makeMenu('top5','','Align left','','',10,'','','','','',"left",'','','','') //adhesives	oM.makeMenu('5sub1','top5','Water Based','/english/products/6.1.1_acr_bonding_agent.html','',120,18,'','','','','right',0)			oM.makeMenu('5a1','5sub1','100% Acrylic Bonding Agent','/english/products/6.1.1_acr_bonding_agent.html','',180,18,'','','','','right')			oM.makeMenu('5a2','5sub1','Bonding Agents','/english/products/6.1.2_bonding_agents.html','',180,18,'','','','','right')			oM.makeMenu('5a3','5sub1','Contact Cements','/english/products/6.1.8_contact_cement.html','',180,18,'','','','','right')			oM.makeMenu('5a4','5sub1','All Purpose','/english/products/6.1.3_all_purpose.html','',180,18,'','','','','right')			oM.makeMenu('5a5','5sub1','Wallpaper Adhesives','/english/products/6.1.4_wallpaper_adhesives.html','',180,18,'','','','','right')			oM.makeMenu('5a6','5sub1','Ceramic Tile Adhesive','/english/products/6.1.5_cer_tile_adhesive.html','',180,18,'','','','','right')			oM.makeMenu('5a7','5sub1','Floor Adhesives','/english/products/6.1.6_floor_adhesives.html','',180,18,'','','','','right')			oM.makeMenu('5a8','5sub1','Glues','/english/products/6.1.7_glues.html','',180,18,'','','','','right')	oM.makeMenu('5sub2','top5','Solvent Based','/english/products/6.2.1_pvc_adhesives.html','',120,18,'','','','','right',0)			oM.makeMenu('5b1','5sub2','PVC Adhesives','/english/products/6.2.1_pvc_adhesives.html','',180,18,'','','','','right')			oM.makeMenu('5b2','5sub2','Brush Grade Contact Cement','/english/products/6.2.2_brush_contact_cement.html','',180,18,'','','','','right')			oM.makeMenu('5b3','5sub2','Spray Grade Contact Cement','/english/products/6.2.3_spray_contact_cement.html','',180,18,'','','','','right')			oM.makeMenu('5b5','5sub2','All Purpose','/english/products/6.2.4_all_purpose_contact_cement.html','',180,18,'','','','','right')oM.makeMenu('top8','','Align left','','',10,'','','','','',"left",'','','','') //value brands	oM.makeMenu('8sub1','top8','Paint Remover','/english/products/7.1_paint_remover.html','',135,18)	oM.makeMenu('top6','','Align left','','',10,'','','','','',"left",'','','','') //others	oM.makeMenu('6sub1','top6','Paint Remover','/english/products/7.1_paint_remover.html','',135,18)	oM.makeMenu('6sub2','top6','Automotive Products','/english/products/7.2_auto_prod.html','',135,18)	oM.makeMenu('6sub3','top6','Thinners & Retarders','/english/products/7.3_thinner_retarder.html','',135,18)oM.makeMenu('top7','','Align left','','',10,'','','','','',"left",0,'','','') //Color Corner	oM.makeMenu('7level1','top7','placehold','','',1,1,'','','hide1','hide2','',0)			oM.makeMenu('7level2','7level1','placehold','','',1,1,'','','hide1','hide2','',0)				oM.makeMenu('7sub2','7level2','Inspiration','/english/5.2.combinations.html','',80,18)				oM.makeMenu('7sub1','7level2','Expert Tips','/english/5.1.tips.html','',80,18)				oM.makeMenu('7sub3','7level2','Register!','/english/5.3.register.php','',80,18)	oM.construct()//Extra test code to customize the CoolMenus - moving the items to totally different positions://Extra test code to customize the CoolMenus.var xx,yyoM.m["top0"].b.hideIt() //Hiding the first item.function getCoords(e){}function xyOff(obj){	var menuWidths= [93,93,93];    //var obj= (bw.ns4)?document.images.browse:(bw.ie4)?document.all.browse:document.getElementById('browse');	//var obj = myGetElementById('paints',document);	if(bw.ns4){this.x= obj.x; this.y= obj.y} 	else if(bw.ns5){this.x= obj.offsetLeft; this.y= obj.offsetTop}	else {		this.x= obj.offsetLeft;		this.prnt= obj;		while((this.prnt=this.prnt.offsetParent)){			this.x+= this.prnt.offsetLeft;			}		this.y= obj.offsetTop;		this.prnt= obj;		while((this.prnt=this.prnt.offsetParent)){			this.y+= this.prnt.offsetTop;			}		}	}function browseMouseOver(theObj, top, myWidth, moreheight){	var off = new xyOff(theObj);	xx = off.x + myWidth;	yy = off.y + moreheight;    //alert(xx + " :: " + yy);	oM.m[top].b.moveIt(xx,yy); 	oM.showsub(top); 	if (top == 'top7'){	oM.showsub('7level1');	oM.showsub('7level2');	}//alert("x::" + xx + "\nyy: " + yy);	}//alert(myGetElementById("0sub1",document).outerHTML);
