/*
Copyright by mate (2004)
for Pilzkoepp (Marcel Fischer)
*/

var lasty=0;
var ih=0;

function hoverme(a)
{
a.src='./templates/pk/inc/image.php?text='+a.alt+'&hover=true';
}
function unhoverme(a)
{
a.src='./templates/pk/inc/image.php?text='+a.alt;
}
function bnormal(x,y) {x.src='templates/pk/img/menu/' + y +'1.png';}
function bhover(x,y) {x.src='templates/pk/img/menu/' + y +'2.png';}
function scroll()
{
 var smooth;
 var skn=document.getElementById("menuu").style;
 smooth=.09 * (window.pageYOffset - lasty)
 if(smooth)
 {
  if(smooth>0) { smooth=Math.ceil(smooth);}
  else { smooth=Math.floor(smooth); }
  
  skn.top=parseInt(skn.top)+smooth+"px";
  lasty=lasty+smooth;
 }
 window.setTimeout("scroll()",3);
}
function initscroll()
{
 var skn=document.getElementById("menuu").style;
 window.setTimeout("scroll()",3);
}