			// if (loaded) will be asked in the DHTML-menu-functions before showing/hiding layers because this would cause mistakes if layer are not loaded in that moment
			var loaded = false;			
			
			//client detection	
			var agt=navigator.userAgent.toLowerCase();

			var is_major = parseInt(navigator.appVersion);
			var is_minor = parseFloat(navigator.appVersion);
		
			var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));

			var ns5 = (is_nav && (is_major >= 5));
			var ns4 = (document.layers)? true:false;
			var ie4 = (document.all)? true:false;
			var nsMac = (ns4 &&  navigator.platform == "MacPPC")? true:false;
			var ieMac = (ie4 &&  navigator.platform == "MacPPC")? true:false;


			//netscape reloading in case of resizing
			if (document.layers) {
				widthCheck = window.innerWidth;
				heightCheck = window.innerHeight;
				window.onResize = resizeFix;
			}

			function resizeFix() {
				if (widthCheck != window.innerWidth || heightCheck != window.innerHeight) {
					document.location.href = document.location.href;
				}
			}

			function stay() {
				null;
			}

			//image preloading
			function preload(imgObj,imgSrc) {
				eval(imgObj+' = new Image()');
				eval(imgObj+'.src = "'+imgSrc+'"');
			}			
			
			//change the image for any image object (this has to be named)
			function changeImage(nested, layer, imgName, imgObj) {
				if (ns4) {
					tmpStr = (nested) ? "document."+nested+".document."+layer+"." : "document."+layer+".";
					if ( eval(tmpStr+"document.images[\""+imgName+"\"]") )
					eval(tmpStr+"document.images[\""+imgName+"\"].src = "+imgObj+".src");
				}
				if (ie4){
					if ( eval("document.images[\""+imgName+"\"]") )
					eval("document.images[\""+imgName+"\"].src = "+imgObj+".src")
				}
			}
			
			//ns6
			function setIdProperty( id, property, value ) {
			    if (ns5) {
			        var styleObject = document.getElementById( id );
			        if (styleObject != null) {
			            styleObject = styleObject.style;
			            styleObject[ property ] = value;
			        }
			    }
			}
			
			//general show/hide-functions work on any client that supports <div></div>
			function show(id) {
				if (ns4) document.layers[id].visibility = "show";
				else if (ie4) document.all[id].style.visibility = "visible";
				else if (ns5) setIdProperty( id, "visibility", "visible" );
			}
			
			function hide(id) {
				if (ns4) document.layers[id].visibility = "hide";
				else if (ie4) document.all[id].style.visibility = "hidden";
				else if (ns5) setIdProperty( id, "visibility", "hidden" );
			}
			
			//absoulte moving of layers
			function moveTo(obj,x,y) {
				obj.xpos = x
				obj.left = obj.xpos
				obj.ypos = y
				obj.top = obj.ypos
			}
			
			//relative moving
			function moveBy(obj,x,y) {
				obj.xpos += x
				obj.left = obj.xpos
				obj.ypos += y
				obj.top = obj.ypos
			}
			
			//popupfunktion general und focus included
			var whichPopup="";
			function launchPopup(url){
				whichPopup=url;
				popup = window.open ("/external.html","popup","width=640,height=480,resizable=yes,scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes");
			}
			
			//popupfunktion 
				function aktuellPopup() {
					var aktuell = window.open('popup_actual.html','popup1',"width=360,height=360,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
				}
			
			//popupfunktion 
				function openMembers() {
					var aktuell = window.open('wvpa_members.html','popup1',"width=360,height=360,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
				}
			
			//wechselt die frameinhalte ueber alle drei frames
			function change3Frames(URL1,URL2,URL3) {
			  URL1 = window.top.menu.location.href;
			  URL2 = window.top.head.location.href;
			  URL3 = window.top.content.location.href;
			 }
			
			//wechselt die frameinhalte ueber head und content frames
			function change2Frames(URL1,URL2) {
			  parent.head.location.href=URL1;
			  parent.content.location.href=URL2;
			 }
			 
			 //wechselt den content der Aufrufseite aus dem popup
			 function popuplink () {
			 	var bselink = window.opener.top.content.location.href="/news/index.php3";
			}	
			 	 
