var op5 = (window.opera)? true:false;
var ns4 = (document.layers)? true:false;
var ie4 = (document.all && !op5)? true:false;  //opera 5.0 ausschließen
var ns6 = (document.getElementsByTagName && !document.all)? true:false; 


v=20;i=10;j=15;m=1;k=1;loy=68;luy=68;lrx=189;llx=189;

i1='<table bgcolor="#'
i2='" cellpadding="2" cellspacing="2" border="10" width="657" height="435"><tbody><tr><td align=center valign=middle>'
i3='</td></tr></tbody></table>'


function position(divname,links, oben){
// links=Math.floor(links)
        if (ns4) schicht = document.layers[divname];
        if (ie4) schicht = document.all[divname].style;
        if (ns6) schicht = document.getElementById(divname).style;

        schicht.left=links;
        schicht.top=oben;
}

function layerWrite(id,text)
{
        if (ns4) {
                var lyr =  document.layers[id].document
                lyr.open()
                lyr.write(text)
                lyr.close()
        }
        if (ie4) document.all[id].innerHTML = text

        if (ns6) {
          document.getElementById(id).innerHTML = text;
	  }
}

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function init(){
      inhalt=i1+inhf[0]+i2+inh[0]+i3
       layerWrite("lro",inhalt)
       layerWrite("lru",inhalt)
       layerWrite("llo",inhalt)
       layerWrite("llu",inhalt)
       inhalt=i1+inhf[1]+i2+inh[1]+i3
       layerWrite("l1",inhalt)
}

function halt(){
       inhalt=i1+inhf[k]+i2+inh[k]+i3
       layerWrite("lro",inhalt)
       layerWrite("lru",inhalt)
       layerWrite("llo",inhalt)
       layerWrite("llu",inhalt)
       loy = 68;luy = 68;lrx = 189;llx = 189;

       position("lro",lrx,loy);
       position("lru",lrx,luy);
       position("llo",llx,loy);
       position("llu",llx,luy);
       k=k+1
       if (k==baz) k=0;
       inhalt=i1+inhf[k]+i2+inh[k]+i3
       layerWrite("l1",inhalt)
}

function zeig(divname) {
        if (ns4) schicht = document.layers[divname];
        if (ie4) schicht = document.all[divname].style;
        if (ns6) schicht = document.getElementById(divname).style;
	if (ns4) schicht.visibility = "show"
	else  schicht.visibility = "visible"
}

function weg(divname) {
        if (ns4) schicht = document.layers[divname];
        if (ie4) schicht = document.all[divname].style;
        if (ns6) schicht = document.getElementById(divname).style;
	if (ns4) schicht.visibility = "hide"
	else  schicht.visibility = "hidden"
}

