// DHTML intialisieren
var init = false;
var DHTML = false;
var DOM = false;
var IE = false;
var NC = false;
var OP = false;
function initDHTML()
{
   if (window.opera) {OP = true;}
   if (document.getElementById) {DHTML = true; DOM = true;}
   if (document.all && !OP) {DHTML = true; IE = true;}
   if (window.netscape && window.screen && !DOM && !OP) {DHTML = true; NC = true;}
   init = true;
}

// Element (DHTML-abhängig zurückliefern)
function getE(p)
{
   if (DOM) {if (typeof document.getElementById(p) == "object") {return document.getElementById(p);} else {return void(0);}}
   else if (IE) {if (typeof document.all[p] == "object") {return document.all[p];} else {return void(0);}}
   else if (NC) {if (typeof document[p] == "object") {return document[p];} else {return void(0);}}
   else return void(0);
}

function rot(i,s)
{
   if (s == 'h')
   {
      getE('t'+i+'a').style.visibility = 'visible';
      getE('t'+i+'b').style.visibility = 'visible';
   }
   else
   {
      getE('t'+i+'a').style.visibility = 'hidden';
      getE('t'+i+'b').style.visibility = 'hidden';
   }
}

function rol(i,s,l)
{
   getE('l'+i+'a').style.backgroundImage = 'url(img/ags/level_'+i+'_'+s+'_'+l+'.jpg)';
   if (s == 'h')
   {
      getE('l'+i).style.height = 'auto';
      getE('l'+i+'a').style.height = 63;
   }
   else
   {
      getE('l'+i).style.height = 73;
      getE('l'+i+'a').style.height = 73;
   }
}
