function preloadImg()
{ 
  img_menue=new Image(); //globale Variable
  img_menue.src="/reservierung_db/images/resbgnd.gif";
  img_menuedark=new Image(); //globale Variable
  img_menuedark.src="/reservierung_db/images/resbgnddark.gif";
}


function gerade(k)
{return !(k%2);}


function callHomePage(elem)
{
var ch=elem.getElementsByTagName("a")[0];

var td_parent=elem.parentNode;
var knoten=td_parent.firstChild;
  
var i=1;
while (knoten!=null)
{
knoten=knoten.nextSibling;
if (knoten!=null && gerade(i) )
   {
    knoten.background='';
    knoten.bgColor='#dddddd';
   }
i++;
}
elem.bgColor='eeeeee';
elem.background=img_menue.src;
//window.alert(ch.getAttribute('href'));
document.location.href=ch.getAttribute('href');

}



function callPage(elem, strURL)
{
//var ch=elem.childNodes[0];
//var ch=elem.firstChild;

var ch=elem.getElementsByTagName("a")[0];

var td_parent=elem.parentNode;
var knoten=td_parent.firstChild;

var i=1;
while (knoten!=null)
{
knoten=knoten.nextSibling;
if (knoten!=null && gerade(i) )
   {
    knoten.background='';
    knoten.bgColor='#dddddd';
   }
i++;
}
elem.bgColor='eeeeee';
elem.background=img_menue.src;

parent.frames["iframe_a"].location.href=ch.getAttribute("href");

//window.alert("Funktionstest: "+ch.getAttribute("href"));  
//window.document.frames["iframe_a"].location.href=ch.getAttribute("href");
//document.frames[0].location.href=ch.getAttribute("href");
//strURL="http://80.120.1.235/reservierung_db/"+strURL
//parent.frames["iframe_a"].location.href=strURL;
//document.getElementById('iframe_a').location.href="http://edv2nb/reservierung_db/default.asp";
}




function callPageSPAN(elem)
{
//var ch=elem.childNodes[0];
//var ch=elem.firstChild;

var ch=elem.getElementsByTagName("span")[0];

var td_parent=elem.parentNode;
var knoten=td_parent.firstChild;

var i=1;
while (knoten!=null)
{
knoten=knoten.nextSibling;
if (knoten!=null && gerade(i) )
   {
    knoten.background='';
    knoten.bgColor='#dddddd';
   }
i++;
}
elem.bgColor='eeeeee';
elem.background=img_menue.src;
//parent.frames["iframe_a"].location.href=ch.getAttribute("href");

//window.alert(ch.getAttribute("href"));  
//document.frames["iframe_a"].location.href=ch.getAttribute("href");
}



function callPage2(elem)
{
//var ch=elem.childNodes[0];
var ch=elem.getElementsByTagName("a")[0];

var td_parent=elem.parentNode;
var knoten=td_parent.firstChild;
   
var i=1;
while (knoten!=null)
{	
	knoten=knoten.nextSibling;
	if (knoten!=null && gerade(i) )
	   {
	    knoten.background='';
	    knoten.bgColor='dddddd';
	   }
	i++;
}	

elem.bgColor='eeeeee';
elem.background=img_menue.src;
if (ch.getAttribute("target")=='frm_unten')  
    parent.frm_unten.location.href=ch.getAttribute("href");
    else if (ch.getAttribute("target")=='_parent')
            parent.location.href=ch.getAttribute("href");
}



  preloadImg();

