//Popup öffnen öffnen
navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);





function openWindow(url,w,h,menue){

	var rndURL = (1000*Math.random());

	newWindow = window.open(url,'Fenster','width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+',location=0,directories=0,status=yes,menuBar=no,toolbar='+menue+',scrollBars=yes,resizable=yes');

	newWindow.focus();

}

function switchImage(imgName, imgSrc) {
  if (document.images){
    if (imgSrc != "none"){
      document.images[imgName].src = imgSrc;
    }
  }
} 


function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function tooltipp_show (id){
	document.getElementById(id).style.display ="none";
	if(document.getElementById(id).style.display =="none"){
		document.getElementById(id).style.display ="block";
	}
}
function tooltipp_hide (id){
	document.getElementById(id).style.display ="block";
	if(document.getElementById(id).style.display =="block"){
		document.getElementById(id).style.display ="none";
	}
}