/*browserabfrage*/
var isNav=false;
var isIE=false;
var isNav6=false;

if(parseInt(navigator.appVersion)>=5 && navigator.appName=="Netscape"){isNav6=true;}
if(parseInt(navigator.appVersion)<5 && navigator.appName=="Netscape"){isNav=true;}
if(navigator.appName.indexOf("Microsoft")!=-1){isIE=true;}

/*scroller*/
var moving=false;
var timerID;
var mytop=31;
var LayerRestart=31;
var LayerHeight=0
var layerid=null;

function scrollhoehe(pixel){
LayerHeight=pixel;}

function startMoving(direction,layerid){
layerida=layerid;
if (moving == false) {
if (direction == 'up') {
moving=true;
timerID = setTimeout('onestepup(layerida);',40);}
if (direction == 'down') {
moving=true;
timerID = setTimeout('onestepdown(layerida);',40);
}
}
}

function stopMoving(){
moving=false;
clearTimeout(timerID);
}

function onestepup(layerida){
mytop=mytop-4;
if (mytop < 0-LayerHeight) {stopMoving();return false;}
if(isNav6){document.getElementsByTagName("div")[layerida].style.top=mytop;}
else {
if (isNav) {
document[layerida].top=mytop;
} else {
document.all[layerida].style.top=mytop;
}}
timerID = setTimeout('onestepup(layerida);',40);
}
function onestepdown(layerida){
if (mytop > LayerRestart) {stopMoving();return false;}
mytop=mytop+4;
if(isNav6){document.getElementsByTagName("div")[layerida].style.top=mytop;}
else {
if (isNav) {
document[layerida].top=mytop;
} else {
document.all[layerida].style.top=mytop;
}}
timerID = setTimeout('onestepdown(layerida);',40);
}

/*hide show layer*/
function showLayer(layid){
if(isNav6){document.getElementsByTagName("div")[layid].style.visibility="visible";}
else {
if(isNav){document.layers[layid].visibility="show";}
else{document.all.tags("div")[layid].style.visibility="visible";}}}

function hideLayer(layid){
if(isNav6){document.getElementsByTagName("div")[layid].style.visibility="hidden";}
else {
if(isNav){document.layers[layid].visibility="hide";}
else{document.all.tags("div")[layid].style.visibility="hidden";}}}

/*rezisebug*/
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);