function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_reloadPage(true);

// Notizen anzeigen
function showNotice (element, notice, classname) {
	obj = document.getElementById(element);
	if (!obj) return;
	obj.innerHTML = notice;
	if (classname==null) classname="notifybox";
	obj.className = classname;	
	//window.setTimeout("removeNotice('"+element+"')",6000);
}
// Notiz ausblenden
function removeNotice(element) {
	obj = document.getElementById(element);
	if(!obj) return;
	obj.innerHTML = '';
	obj.className = '';
}

// Vorschaulayer einblenden
function showPreview(id,display) {
	if (display==null) display="block";
	obj = document.getElementById(id);
	if (!obj) return;
	obj.style.display = display;
	if (document.layers) obj.style.visibility="show";
	else obj.style.visibility="visible";
	obj.style.zIndex = 100;
}
// Vorschaulayer ausblenden
function hidePreview(id) {
	obj = document.getElementById(id);
	if (!obj) return;
	obj.style.display = "none";
	if (document.layers) obj.style.visibility="hide";
	else obj.style.visibility="hidden";
	obj.style.zIndex=-1;
}
function showHideByValue(id, value, display) {
	if (value) showPreview(id, display);
	else hidePreview(id);
}