
document.write('<link href="http://www.elastogum.pl/dok/script/s640_480.css" rel="stylesheet" type="text/css">');
if (screen.width>=800||screen.height>=600) document.write('<link href="http://www.elastogum.pl/dok/script/s800_600.css" rel="stylesheet" type="text/css">');
if (screen.width>=1024||screen.height>=768) document.write('<link href="http://www.elastogum.pl/dok/script/s1024_768.css" rel="stylesheet" type="text/css">');
if (screen.width>=1280||screen.height>=1024) document.write('<link href="http://www.elastogum.pl/dok/script/s1280_1024.css" rel="stylesheet" type="text/css">');

gora=60
reakcja=500
szybkosc=12


function Namiar(t){celY=t;if(!anim)menuGo()}

function menuGo(){ 
 oBy=(szybkosc*oBy+celY)/(szybkosc+1)
document.all["flMenu"].style.top=Math.round(oBy)
document.all["flMenu2"].style.top=Math.round(oBy)
 if(Math.round(oBy)!=celY)anim=setTimeout("menuGo()",20)
 else anim=0
}
function scrLay() {
 var pYoff=(d.a&&!window.opera)?document.body.scrollTop:window.pageYOffset
 if(parseInt(document.all["flMenu"].style.top)!=pYoff+gora)Namiar(pYoff+gora)
 if(parseInt(document.all["flMenu2"].style.top)!=pYoff+gora)Namiar(pYoff+gora)
}
 
function initMenu(){
 d=document,d.l=d.layers,d.a=d.all,d.g=d.getElementById
 eval(oBy=gora,anim=0)
 setInterval('scrLay()',reakcja)
}
