
var ie = document.all&&!window.opera?1:0;
var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;


function anzisha() {

if(!(ie||dom||ns4)) {
return;
}
else if(ie) {

box = document.all.angukaboksi.style;
boxheight = document.all.angukaboksi.offsetHeight;
}
else if(dom) {

box = document.getElementById("angukaboksi").style;
boxheight = document.getElementById("angukaboksi").offsetHeight;
}
else if(ns4) {

box = document.angukaboksi;
boxheight = box.clip.height;
}

scroll_top=(ie)?document.body.scrollTop:window.pageYOffset;
box.top = scroll_top - boxheight;
speed = 1;
ingiaNdani();
}


function ingiaNdani() {

 speed+=6; 

 if(parseInt(box.top) < scroll_top ) {

  box.top = parseInt(box.top) + speed;
  in_timer = setTimeout("ingiaNdani()", 50);
 } 
 else {
  clearTimeout(in_timer);
 }
}


function tokaNje() {

 if(parseInt(box.top) > (-1)*boxheight) {

  box.top = parseInt(box.top) - 40;
  out_timer = setTimeout("tokaNje()", 50);
 }
 else {
  clearTimeout(out_timer);
 }
}

window.onload=anzisha;


