/****************************************** 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(140,41,"clT","clTover",1,1,"clB",0,"right",-30,0,0,0,0); oM.level[1]=new cm_makeLevel(150,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','',"Dozowniki mydła",'katalog.php?act=show_kat&kid=2', 0, 0, 22+16*0); oM.menuPlacement[0]=170; oM.makeMenu('kat_14','',"Dozowniki łokciowe",'katalog.php?act=show_kat&kid=14', 0, 0, 22+16*0); oM.menuPlacement[1]=192; oM.makeMenu('kat_6','',"Podajniki ręczników
papierowych",'katalog.php?act=show_kat&kid=6', 0, 0, 22+16*1); oM.menuPlacement[2]=214; oM.makeMenu('kat_5','',"Podajniki papieru
toaletowego",'katalog.php?act=show_kat&kid=5', 0, 0, 22+16*1); oM.menuPlacement[3]=252; oM.makeMenu('kat_7','',"Suszarki do rąk i włosów",'katalog.php?act=show_kat&kid=7', 0, 0, 22+16*0); oM.menuPlacement[4]=290; oM.makeMenu('kat_4','',"Odświeżacze powietrza",'katalog.php?act=show_kat&kid=4', 0, 0, 22+16*0); oM.menuPlacement[5]=312; oM.makeMenu('kat_3','',"Kosze, koszopopielnice",'katalog.php?act=show_kat&kid=3', 0, 0, 22+16*0); oM.menuPlacement[6]=334; oM.makeMenu('kat_8','',"Inne artykuły",'katalog.php?act=show_kat&kid=8', 0, 0, 22+16*0); oM.menuPlacement[7]=356; oM.makeMenu('kat_9','',"Sprzęt do sprzątania",'katalog.php?act=show_kat&kid=9', 0, 0, 22+16*0); oM.menuPlacement[8]=378; oM.makeMenu('pkat_4','kat_9',"Wózki i zestawy sprzątające",'katalog.php?act=show_pkat&pid=4', 0, 0, 22+16*0); oM.makeMenu('pkat_5','kat_9',"Stelaże i mopy",'katalog.php?act=show_pkat&pid=5', 0, 0, 22+16*0); oM.makeMenu('pkat_7','kat_9',"Akcesoria do mycia szyb",'katalog.php?act=show_pkat&pid=7', 0, 0, 22+16*0); oM.makeMenu('pkat_6','kat_9',"Inne",'katalog.php?act=show_pkat&pid=6', 0, 0, 22+16*0); oM.makeMenu('kat_11','',"Czyściwa przemysłowe",'katalog.php?act=show_kat&kid=11', 0, 0, 22+16*0); oM.menuPlacement[9]=400; oM.makeMenu('pkat_12','kat_11',"Czyściwa uniwersalne",'katalog.php?act=show_pkat&pid=12', 0, 0, 22+16*0); oM.makeMenu('pkat_11','kat_11',"Czyściwa specjalistyczne",'katalog.php?act=show_pkat&pid=11', 0, 0, 22+16*0); oM.makeMenu('pkat_21','kat_11',"Stojaki",'katalog.php?act=show_pkat&pid=21', 0, 0, 22+16*0); oM.makeMenu('kat_10','',"Materiały eksploatacyjne",'katalog.php?act=show_kat&kid=10', 0, 0, 22+16*0); oM.menuPlacement[10]=422; oM.makeMenu('pkat_8','kat_10',"Mydła w płynie",'katalog.php?act=show_pkat&pid=8', 0, 0, 22+16*0); oM.makeMenu('pkat_9','kat_10',"Ręczniki składane „ZZ",
„C"",'katalog.php?act=show_pkat&pid=9', 0, 0, 22+16*1); oM.makeMenu('pkat_10','kat_10',"Ręczniki w roli "MINI"",'katalog.php?act=show_pkat&pid=10', 0, 0, 22+16*0); oM.makeMenu('pkat_22','kat_10',"Ręczniki w roli "MAXI"",'katalog.php?act=show_pkat&pid=22', 0, 0, 22+16*0); oM.makeMenu('pkat_16','kat_10',"Papiery toaletowe "JUMBO"",'katalog.php?act=show_pkat&pid=16', 0, 0, 22+16*0); oM.makeMenu('pkat_17','kat_10',"Papiery toaletowe - małe
rolki",'katalog.php?act=show_pkat&pid=17', 0, 0, 22+16*1); oM.makeMenu('pkat_18','kat_10',"Inne art. papiernicze",'katalog.php?act=show_pkat&pid=18', 0, 0, 22+16*0); oM.makeMenu('pkat_19','kat_10',"Worki foliowe",'katalog.php?act=show_pkat&pid=19', 0, 0, 22+16*0); oM.makeMenu('pkat_20','kat_10',"Rękawice",'katalog.php?act=show_pkat&pid=20', 0, 0, 22+16*0); oM.makeMenu('kat_12','',"Środki do utrzymania
czystości",'katalog.php?act=show_kat&kid=12', 0, 0, 22+16*1); oM.menuPlacement[11]=444; oM.makeMenu('pkat_13','kat_12',"Podłogi",'katalog.php?act=show_pkat&pid=13', 0, 0, 22+16*0); oM.makeMenu('pkat_15','kat_12',"Inne",'katalog.php?act=show_pkat&pid=15', 0, 0, 22+16*0); oM.makeMenu('pkat_14','kat_12',"WC",'katalog.php?act=show_pkat&pid=14', 0, 0, 22+16*0); oM.construct();