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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  	if ((obj=MM_findObj(args[i]))!=null) { 
  		v=args[i+2];
    	if (obj.style) { 
    		obj=obj.style; 
    		v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
   		}
    	obj.visibility=v; 
  	}
}

lastref = "reff";

function referenzen_showHideLayers() { //v6.0
  var i,p,v,obj,args=referenzen_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  	if ((obj=MM_findObj(args[i]))!=null) { 
  		v=args[i+2];
    	if (obj.style) { 
    		obj=obj.style; 
    		v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
   		}
    	obj.visibility=v; 
    	if ( obj.visibility == 'visible' ) {
    		if ( ( (objHide=MM_findObj( lastref ))!=null ) && ( lastref != args[i] ) ) { 
    			if (objHide.style) { 
    				objHide=objHide.style; 
    				objHide.visibility = 'hidden';
   				}
    		}
    		obj.left = xMousePos - 3;
    		obj.top = yMousePos - 3;
    		lastref = args[i];
    	}
  	}
}

function leistungen_showHideLayers() { //v6.0
  var i,p,v,obj,args=leistungen_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  	if ((obj=MM_findObj(args[i]))!=null) { 
  		v=args[i+2];
    	if (obj.style) { 
    		obj=obj.style; 
    		v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
   		}
    	obj.visibility=v; 
    	refObjekt = MM_findObj("refpunkt");	
		
		obj.left = refObjekt.offsetLeft;
   		obj.top = refObjekt.offsetTop-3;
  	}
}

function hideLastRef( ) {
	if ((obj=MM_findObj( lastref ))!=null) { 
	   	if (obj.style) { 
    		obj=obj.style; 
   		}
   		if ( ( xMousePos < ( parseInt(obj.left)+ 3 ) ) || ( xMousePos > ( parseInt(obj.left) + 205 ) ) || ( yMousePos < ( parseInt(obj.top) + 3 ) ) || ( yMousePos > ( parseInt(obj.top) + 109 ) ) ) {
   				obj.visibility='hidden'; 
   		}
	}
}

intro = 740;
adresse = 40;
marion = 495;
mary = 312;
vipo = 205;
carmen = 32;
denis = 625;
sam = 785;
expertenArray = new Array("marion","mary","vipo","carmen","sam","denis");
show_all = false;

function refreshLayers() {
	experten_hide();
}

function experten_hide() { 
	show_all = false;
	for (i=0; i<(expertenArray.length); i+=1) {
		if ((obj=MM_findObj( expertenArray[i] ))!=null) { 
	    	if (obj.style) { 
	    		obj=obj.style; 
		    	obj.visibility='hidden'; 
	   		}
	  	}
		if ((obj=MM_findObj( expertenArray[i] + "card" ))!=null) { 
	    	if (obj.style) { 
	    		obj=obj.style; 
		    	obj.visibility='hidden'; 
	   		}
	  	}
	}
}

function experten_show() { 
	experten_hide();
	if ( ! show_all ) {
		show_all = true;
		for (i=0; i<(expertenArray.length); i+=1) 
		if ((obj=MM_findObj( expertenArray[i] ))!=null) { 
	    	if (obj.style) { 
	    		obj=obj.style; 
		    	obj.visibility='visible'; 
		    	obj.left = giveMePos( expertenArray[i] );
	   		}
	  	}
	}
}

function giveMePos( mylayer ) {
  	if ( xMousePosMax < 880 ) {
    	return eval(mylayer) - 40;
   	}
   	else {
   		return eval(mylayer) - (960 - xMousePosMax)/2;
   	}
}

function experten_showHideLayers() { //v6.0
	if ( ! show_all ) {
		experten_hide();
		var i,p,v,obj,args=experten_showHideLayers.arguments;
		for (i=0; i<(args.length-2); i+=3) {
			if ((obj=MM_findObj(args[i]))!=null) { 
				v=args[i+2];
				if (obj.style) { 
					obj=obj.style; 
					v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
				}
				obj.visibility=v; 
				obj.left = giveMePos(args[0]);
			}
		}
	}
}

function cu_CenterPopup(tpage, windowname, twidth, theight, props) {
	var LeftPosition 	= (screen.width) ? (screen.width-twidth)/2 : 0;
	var TopPosition 	= (screen.height) ? (screen.height-theight)/2 : 0;
	var settings 		= 'top=' + TopPosition + ',left=' + LeftPosition + ',screenY=' + TopPosition + ',screenX=' + LeftPosition + ',height=' + theight + ',width=' + twidth + ' ' + props;
	window.open(tpage, windowname, settings);
}

// ----------------------------------------------------------------------------------------------
// http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&U=87256B14007C5C6A87256B4B0005BFA6
// ----------------------------------------------------------------------------------------------
if (document.layers) { // Netscape
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
    document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
    document.onmousemove = captureMousePosition;
}

xMousePos = 0; // Horizontal position of the mouse on the screen
yMousePos = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page

function captureMousePosition(e) {
    if (document.layers) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        xMousePos = window.event.x+document.body.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    } else if (document.getElementById) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}
// ----------------------------------------------------------------------------------------------
