//<script> // Nur für den Editor!
	var nav = (document.layers); 
	var iex = (document.all);
	varY = screen.availHeight; 
	varX = screen.availWidth; 

	var skn = (nav) ? document.topdeck : topdeck.style;
	
	if (nav) 
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = get_mouse;
    
	function pop(msg,bak,size) {
		var mySize;
		if (typeof size != "undefined") 
				{ mySize=size;	}
		else	{ mySize=350;	}
	    var content ="<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#000000 width='"+mySize+"'><TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 align='center' width='100%'><TR><TD align='center'><FONT FACE=TAHOMA COLOR=#FFFFFF SIZE=2><B>Kurzinformation</B></FONT></TD></TR></TABLE><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR="+bak+" width='100%'><TR><TD align='left'><FONT CLASS='popper_contenttxt'>"+msg+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";

        if (iex) {
            document.all("topdeck").innerHTML = content;
            skn.visibility = "visible";  
        }
        else {
            skn.document.write(content); 
            skn.document.close();
            skn.visibility = "visible";
        }
	}


	function get_mouse(e) {
		var x = (nav) ? e.pageX : event.x+document.body.scrollLeft; 
		var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
		skn.left = x - 175;
		skn.top  = y + 20;
	}

	function kill() {	    var content ="";

        if (iex) {
            document.all("topdeck").innerHTML = content;
        }
        else {
            skn.document.write(content); 
            skn.document.close();
        }
        skn.visibility = "hidden";
	}

    //Weitere Scripts
    function StatusBar(StatusText) {
        window.status = StatusText;
    }

    function ImageOnOff(Name,Source) {
        window.document.images[Name].src = Source;  
    }

    function SeePicture(WindowName,X_width,Y_height) {
        window.open('',WindowName, 'toolbar=no,location=NO,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + X_width + ',height=' + Y_height);
    }
	function SeePictureEx(WindowName,X_width,Y_height) {
        window.open('',WindowName, 'fullscreen=1,toolbar=no,location=NO,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + X_width + ',height=' + Y_height);
    }

    function SeePictureWithBorder(WindowName,X_width,Y_height) {
        window.open('',WindowName, 'toolbar=no,location=NO,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + X_width + ',height=' + Y_height);
    }

    function ChangeBGColor(Name,Color) {
        document.all[Name].style.backgroundColor= Color;
    }
    
   
	function BlurIn(GivenID) {
		document.all[GivenID].filters.blendTrans.Apply();
		document.all[GivenID].style.visibility = "visible";
		document.all[GivenID].filters.blendTrans.Play();
		//style="visibility:hidden;filter:blendTrans(Duration=4);"
		//<script>BlurOut('sdsdsd');<script>
	}
	function BlurOut(GivenID) {
		document.all[GivenID].filters.blendTrans.Apply();
		document.all[GivenID].filters.blendTrans.Play();
		document.all[GivenID].style.visibility = "hidden";
	}

//------------------------------------------------------------------
self.onError=null;

currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;

function heartBeat() {
	if(iex) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
//	if(nav) { diffY = self.pageYOffset; diffX = self.pageXOffset; }

	if(diffY != lastScrollY)
	{
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(iex) document.all.MainHeader.style.pixelTop += percent;
		if(nav) document.MainHeader.top += percent;
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX)
	{
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(iex) document.all.MainHeader.style.pixelLeft += percent;
		if(nav) document.MainHeader.left += percent;
		lastScrollX = lastScrollX + percent;
	}
}
//}

if (screen.width >= 1024)
{
	if(nav || iex) action = window.setInterval("heartBeat()",1);
	var o = 0;
}