
/**
* never ever use german komments. ie squirts up with the umlauts.
*/

var is_ie = 0;
var agt = navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
is_ie = (agt.indexOf("msie") != -1);
var is_opera = (agt.indexOf("pera") != -1);

var is_ie3  = (is_ie && (is_major < 4));
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5") == -1) && (agt.indexOf("msie 6") == -1) && (agt.indexOf("msie 7") == -1));
var is_ie7  = (is_ie && (agt.indexOf("msie 7") != -1));
var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);
var is_gecko = (agt.indexOf("gecko") != -1);
//window.onerror = noerrorinhere;

/**
* cross-browser element-getter
*/

if (is_ie4)
{
  $ = function (id) {return eval(id);}
}
else
{
  $ = function (id) {return  document.getElementById(id);}
}

function hide(id)
{
  $(id).style.display = 'none';
}

function show(id)
{
  $(id).style.display = 'block';
}


function change(id)
{
  if($(id).style["display"] != 'block')
  {
    show(id);
  }
  else
  {
    hide(id);
  }
}

function showpopup(id)
{
var test = $(id);
test.style.display = "block";
//test.parentNode.style.textAlign = "left";
do_onmouseover_table(id);
}
function hidepopup(id)
{
var test = $(id);
test.style.display = "none";
//test.parentNode.style.textAlign = "center";
}

function do_onmouseover_table(id)
{
 var tables = $(id).getElementsByTagName("table");
 var table = tables[0];
 var rows = table.getElementsByTagName("tr");
 for (i=0; i < rows.length; i++)
 {
   var td = rows[i].childNodes[0];
   if(td.childNodes[0].tagName == "A")
   {
     td.onclick = function(){window.location = this.childNodes[0].href};
   }
   rows[i].onmouseover = function() { this.className='over'; };
   rows[i].onmouseout = function() { this.className='' };
 }
}


