

// IE6  text selection bug in combination with standards-compatible mode
// see also http://blog.tom.me.uk/2003/07/23/boie6selecta.php
//detects IE6 and if it is in standards mode (=CSS1Compat)
  
if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat")
{
  document.onreadystatechange = onresize = function fixIE6AbsPos()
  {
    if (!document.body) return;
    if (document.body.style.margin != "0px") document.body.style.margin = 0;
    onresize = null;
    document.body.style.height = 0;
    setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+'px'; }, 1);
    setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
  }
}


/* Swap Images with MouserOver-Effect for the NAVIGATIONIMAGES*/
function swapNavImage(id,imgName) {
	/*********************************************/
	/* Mouseovereffect with Images					*/
	/* id: Number of ID of ImageTag					*/
	/* imgName: Name of the Image to display 		*/
	/*********************************************/
	// Die folgenden 3 Zeilen sind fuer Netscape 6
	var IDName = "navImage"+id;
	if (document.getElementById) {
		document.getElementById(IDName).src=imgName;
	}
	// Ende Netscape 6
	
	if (document.all) {
		document.all[IDName].src=imgName;
	}
	
	if (document.layers) {
		document.layers[IDName].src=imgName;
	}

	// old stuff: eval("navImage"+id+".src='"+imgName+"';");
}

function mainNavMouseover(id) {
		
		document.getElementById("l_"+id).className="mainnav_left_aktiv";
		document.getElementById("text_"+id).className="mainnav_text_aktiv";
		document.getElementById("r_"+id).className="mainnav_right_aktiv";
}

function mainNavMouseout(id) {

		document.getElementById("l_"+id).className="mainnav_left";
		document.getElementById("text_"+id).className="mainnav_text";
		document.getElementById("r_"+id).className="mainnav_right";
}


