/****************************************** CM_ADD-IN - checkscrolled (last updated: 01/29/02) This is supported by all browsers - IE5 for MAC has some screen refreshing problems - Using this for non-ie browsers might slow down the page because the other browsers do not support the onscroll event so the script uses a timer. Now with two new features. - Set scrollstop to 1 to get another scrolling effect. If you do it will work the way it does on DHTMLCentral.com. Note that this feature is not perfect on menus not in rows. - If you have the hideselectboxes add-in as well this function will now check for interfearing selectboxes when you scroll as well. Just add this code to the coolmenus js file or link the cm_addins.js file to your page as well. *****************************************/ if(bw.ie) makeCM.prototype.onconstruct='document.body.onscroll=new Function(c.name+".checkscrolled("+c.name+")")' else makeCM.prototype.onconstruct='setTimeout(c.name+".checkscrolled()",200)' //REMOVE THIS LINE TO HAVE SCROLLING ON FOR EXPLORER ONLY!! makeCM.prototype.lscroll=0 makeCM.prototype.scrollstop=0 //Set this variable to 1 for another scrolling effect. Leave at 0 to scroll regular makeCM.prototype.doscroll=0; // by Wit, 1-wlacza, 0-wylacza makeCM.prototype.checkscrolled=function(obj){ var i; if(bw.mac) return //REMOVE THIS LINE TO HAVE SCROLLING ON THE MAC AS WELL - unstable! var c=bw.ie?obj:this, o if(!c.doscroll) // by Wit return; if(bw.ns4 || bw.ns6 || bw.op5) c.scrollY=window.pageYOffset else c.scrollY=document.body.scrollTop if(c.scrollY!=c.lscroll){ c.hidesub() if(c.scrollY>c.fromTop&&c.scrollstop){ for(i=0;ic.bar.x?c.bar.x:c.m[c.l[0].m[0]].b.x:c.m[c.l[0].m[0]].b.x; var y = c.useBar?c.m[c.l[0].m[0]].b.y>c.bar.y?c.bar.y:c.m[c.l[0].m[0]].b.y:c.m[c.l[0].m[0]].b.y; var maxw = c.useBar?c.bar.w:c.rows?c.totw:c.maxw; var maxh = c.useBar?c.bar.h:!c.rows?c.toth:c.maxh c.hideselectboxes(0,x,y,maxw,maxh,0) } } if(!bw.ie) setTimeout(c.name+".checkscrolled()",200) } /**************************************************************************************/ oM=new makeCM("oM"); oM.resizeCheck=1; oM.rows=0; oM.onlineRoot=""; oM.pxBetween=10; oM.fillImg="cm_fill.gif"; oM.fromTop=0; oM.fromLeft=0; oM.wait=300; oM.zIndex=400; oM.doscroll=1; oM.level[0]=new cm_makeLevel(150,41,"clT","clTover",1,1,"clB",0,"right",5,0,0,0,0); oM.level[1]=new cm_makeLevel(130,22,"clS","clSover",1,1,"clBS",0,"right",0,0,"_menu_arrow.jpg",10,10); oM.level[2]=new cm_makeLevel(110,22,"clS","clSover",1,1,"clBS",0,"right",0,0,"_menu_arrow.jpg",10,10); oM.level[3]=new cm_makeLevel(140,22); oM.menuPlacement=new Array(); oM.makeMenu('kat_2','',"P造tki pod這gowe,
軼ienne i dekory",'', 0, 0, 22+16*1); oM.menuPlacement[0]=110; oM.makeMenu('pkat_23','kat_2',"P造tki pod這gowe",'ekran2.php?act=show_pkat&pid=23', 0, 0, 22+16*0); oM.makeMenu('pkat_24','kat_2',"P造tki 軼ienne",'ekran2.php?act=show_pkat&pid=24', 0, 0, 22+16*0); oM.makeMenu('pkat_25','kat_2',"Dekory",'ekran2.php?act=show_pkat&pid=25', 0, 0, 22+16*0); oM.makeMenu('kat_14','',"P造tki kuchenne,
dekory",'', 0, 0, 22+16*1); oM.menuPlacement[1]=148; oM.makeMenu('pkat_35','kat_14',"P造tki kuchenne",'ekran2.php?act=show_pkat&pid=35', 0, 0, 22+16*0); oM.makeMenu('pkat_36','kat_14',"Dekory",'ekran2.php?act=show_pkat&pid=36', 0, 0, 22+16*0); oM.makeMenu('kat_6','',"P造tki gresowe, stopnice,
polery",'', 0, 0, 22+16*1); oM.menuPlacement[2]=186; oM.makeMenu('pkat_26','kat_6',"Gresy",'ekran2.php?act=show_pkat&pid=26', 0, 0, 22+16*0); oM.makeMenu('pkat_28','kat_6',"Polery",'ekran2.php?act=show_pkat&pid=28', 0, 0, 22+16*0); oM.makeMenu('pkat_27','kat_6',"Stopnice",'ekran2.php?act=show_pkat&pid=27', 0, 0, 22+16*0); oM.makeMenu('kat_5','',"P造tki elewacyjne
i klinkierowe",'', 0, 0, 22+16*1); oM.menuPlacement[3]=224; oM.makeMenu('pkat_29','kat_5',"P造tki elewacyjne",'ekran2.php?act=show_pkat&pid=29', 0, 0, 22+16*0); oM.makeMenu('pkat_30','kat_5',"P造tki klinkierowe",'ekran2.php?act=show_pkat&pid=30', 0, 0, 22+16*0); oM.makeMenu('kat_13','',"P造tki basenowe",'ekran2.php?act=show_kat&kid=13', 0, 0, 22+16*0); oM.menuPlacement[4]=262; oM.makeMenu('kat_15','',"P造tki TERRAZZO 
(Lastriko)",'', 0, 0, 22+16*1); oM.menuPlacement[5]=284; oM.makeMenu('pkat_37','kat_15',"P造tki Terrazzo",'ekran2.php?act=show_pkat&pid=37', 0, 0, 22+16*0); oM.makeMenu('pkat_38','kat_15',"P造tki schodowe",'ekran2.php?act=show_pkat&pid=38', 0, 0, 22+16*0); oM.makeMenu('kat_7','',"Chemia budowlana",'', 0, 0, 22+16*0); oM.menuPlacement[6]=322; oM.makeMenu('pkat_34','kat_7',"Chemia budowlana",'ekran2.php?act=show_pkat&pid=34', 0, 0, 22+16*0); oM.makeMenu('pkat_32','kat_7',"Fugi",'ekran2.php?act=show_pkat&pid=32', 0, 0, 22+16*0); oM.makeMenu('pkat_31','kat_7',"Kleje",'ekran2.php?act=show_pkat&pid=31', 0, 0, 22+16*0); oM.makeMenu('pkat_33','kat_7',"Zaprawy",'ekran2.php?act=show_pkat&pid=33', 0, 0, 22+16*0); oM.makeMenu('kat_3','',"Kolekcje",'ekran2.php?act=show_kat&kid=3', 0, 0, 22+16*0); oM.menuPlacement[7]=344; oM.makeMenu('kat_4','',"Wyposa瞠nie 豉zienek",'ekran2.php?act=show_kat&kid=4', 0, 0, 22+16*0); oM.menuPlacement[8]=366; oM.construct();