
function openwindow(seite,features){
window.open(seite,"",features);
}

function drucken()
{
	parent.frames.hauptframe.focus();
	parent.frames.hauptframe.print();
}


<!--
var yPos = 0;
var yPosX = 0;
var yPosP1 = 0;
var demY = 0.7;
var accY = 24;
var sY	 = 0;
var yPosC = 62;
var cY = 0;
var commercial_i = 62;
var commercialShowAgain = false;
var commercialHidden = false;
var bodyHeight = 0;
var bodyWidth = 0;
var marginDef = 35;
var menuLoop = false;
var toggleBorder = 1;
var Bhide = false;
var mX = 0;
var mY = 0;
var hideL = true;

var IE = navigator.appName.indexOf("Microsoft") != -1;
var NS = navigator.appName.indexOf("Netscape") != -1;
var MAC = navigator.platform.indexOf("Mac") != -1;


////////////// Initialisation ///////////////////////////////////////////////

function gFrame(frame) {															//passt die Menu-Farbe dem Content-Dokument an
	if (parent.menu){														//wenn der Menu-Frame vorhanden ist
		if (parent.menu.document.noflashMenu) {									//wenn das Imagemap-Menu geladen ist
			if (self.navigator.platform.indexOf("Win")!=-1 && self.navigator.appName.indexOf("Microsoft Internet Explorer")!=-1){
				parent.menu.document.noflashMenu.src="images/noflashMenu.jpg";
			}else{ 
				parent.menu.document.noflashMenu.src="images/noflashMenu.jpg";
			}
		}else{															//wenn das Flash-Menu geladen ist
			while (parent.menu.document.colormenu.PercentLoaded() < 100) { }
			parent.menu.document.colormenu.GotoFrame(frame);
		}
	}
}

function mousePosition(e) {
	if (IE) {
		mX = event.x;
		mY = event.y;
	} else {
		mX = e.pageX
		mY = e.pageY
	}
}
	
function resizeFix() {
	if (NS) {
		if  (bodyHeight != this.innerHeight || bodyWidth != this.innerWidth) {
			location.reload();
			bodyHeight = this.innerHeight;
			bodyWidth = this.innerWidth;
		}		
	} else if (IE) {
		bodyHeight = document.body.clientHeight;
		bodyWidth = document.body.clientWidth;
	}
	
}


function startMovement(mPos, newcolor) {
	
	document.onmousemove = mousePosition;
	
	if (IE && !MAC) { 
//		document.form.TSetProperty("/border",7,"1");
//		document.menu.setVariable("position", mPos);
//		document.menu.setVariable("color", newcolor);
		positionControlIE(); 
	} else if (IE && MAC) { positionControlIEMac(); 
	} else if (NS) {
		document.captureEvents(Event.MOUSEMOVE);
		if ((document.Dmenu.document.embeds[0].PercentLoaded() < 100) && (document.Dform.document.embeds[0].PercentLoaded() < 100)) {
			setTimeout("startMovement(mPos, newcolor);",800);
		} else {
//			document.Dform.document.embeds[0].TSetProperty("/border",7,"1");
//			document.Dmenu.document.embeds[0].SetVariable("position",mPos);
//			document.Dmenu.document.embeds[0].SetVariable("color", newcolor);
 			bodyHeight = this.innerHeight;
			bodyWidth = this.innerWidth;

			positionControlNS();
		}	
	}
}


////////////// Mac & IE spezials ///////////////////////////////////////////////

function hideLilie() { 
		
		document.all('Dform').style.top = -150;
		document.all('Dform').style.height = 99;
		hideL = false;

}

function showLilie() { 
		
		document.all('Dform').style.top = Math.round(yPosX);
		document.all('Dform').style.height = 101;
		hideL = true;

}


////////////// toggle the border of form.de ///////////////////////////////////////////////



function toggleB() {
		if (yPosX < 0.5 && toggleBorder == 0) {
			sY = 0;
			if (IE) {document.form.TSetProperty("/border",7,"1"); }
			else { document.Dform.document.embeds[0].TSetProperty("/border",7,"1"); } 
			toggleBorder = 1;
		}
		else if (yPosX > 0.5 && toggleBorder == 1) { 
			if (IE) {document.form.TSetProperty("/border",7,"0"); }
			else { document.Dform.document.embeds[0].TSetProperty("/border",7,"0"); } 
			toggleBorder = 0;
		}

}

////////////// main loop for NS ///////////////////////////////////////////////

function positionControlNS() {

		yPos = this.pageYOffset;
		if (yPos == 0 || commercialShowAgain == true) { commercialShowNS(); }	
		else if (yPos < 105) { commercialHideNS(); yPos = 0 ;}
		else { commercialHideNS(); }
		var dY = yPos -yPosX;
		sY = demY * (sY + dY / (accY-4));
		if ((sY < 0.3 && dY >0.1) || (sY > -0.3 && dY < -0.1) ) { sY = 0; yPosX = yPos;  }
		toggleB();
		if (!MAC) {
			var tmp = yPos -yPosP1;
			var tmp1 = yPos - document.layers['Dform'].top;
			if ((tmp < 200) && (tmp1 != 0) && (tmp > 0)) { sY = 0; }
			else if ((tmp > -380) && (tmp1 != 0) && (tmp < 0)) { sY = 0; }
			yPosP1 = yPos;
		}
		yPosX = yPosX + sY;
		document.layers['Dform'].top = Math.round(yPosX);
		if (Bhide) {
				if (mX >= 758  || mY >= yPosX+105) {
					menuHide();
					Bhide = false;
				} else if (sY != 0) { menuHide(); Bhide = false; }
		}
		if (menuLoop == true) { menuShow(); }
		resizeFix();
		setTimeout("positionControlNS()", 1);
}


////////////// main loop for IE on Mac ///////////////////////////////////////////////


function positionControlIEMac() { 
		yPos = document.body.scrollTop;		
		if (yPos == 0 || commercialShowAgain == true) { commercialShowIE(); }	
		else if (yPos < 105) { commercialHideIE(); yPos = 0; }
		else { commercialHideIE(); }
		var dY = yPos - yPosX;
		sY = demY *(sY + dY/accY);
		if ((sY < 0.15 && dY >0.15) || (sY > -0.15 && dY < -0.15)) { 
			sY = 0; 
			yPosX = yPos; 
		}
		if ((sY != 0) && (hideL == true)) { hideLilie(); }
		else if ((sY == 0) && (hideL == false)) { showLilie(); }
		yPosX = yPosX + sY;
		document.all('DmacIE').style.top = Math.round(yPosX);
		if (Bhide) {
				if (mX >= 758  || mY >= 105) {
					menuHide();
					Bhide = false;
				} else if (sY != 0) { menuHide(); Bhide = false; }
		}
		if (mX  <= 150 && mY <= 70 && yPos != 0 && !Bhide) { menuShow(); }
		if (menuLoop == true) { menuShow(); }
		resizeFix();
		setTimeout("positionControlIEMac()", 1);

}




////////////// main loop for IE on WIN ///////////////////////////////////////////////

function positionControlIE() { 
		yPos = document.body.scrollTop;
		if (yPos == 0 || commercialShowAgain == true) { commercialShowIE(); }
		else if (yPos < 105) { commercialHideIE(); yPos = 0; }
		else { commercialHideIE(); }
		var dY = yPos - yPosX;
		sY = demY *(sY + dY/accY);
		if ((sY < 0.3 && dY >0.1) || (sY > -0.3 && dY < -0.1) ) { sY = 0; yPosX = yPos; }
		toggleB();
		var tmp = yPos -yPosP1;
		var tmp1 = yPos-document.all('Dform').offsetTop;
		if ((tmp < 400) && (tmp1 != 0) && (tmp > 0)) { sY = 0; }
		else if ((tmp > -380) && (tmp1 != 0) && (tmp < 0)) { sY = 0; }	
		yPosP1 = yPos;	
		yPosX = yPosX + sY;
		document.all('Dform').style.top = Math.round(yPosX);			
		if (Bhide) {
				if (mX >= 758  || mY >= 105) {
					menuHide();
					Bhide = false;
				} else if (sY != 0) { menuHide(); Bhide = false; }
		}
		if (menuLoop == true) { menuShow(); }
		resizeFix();
		setTimeout("positionControlIE()", 1);
}


////////////// Show the commercials ///////////////////////////////////////////////

function commercialShowIE() {
		commercialHidden = false;
		if (document.all('Dcommercial')) {
			document.all('Dcommercial').style.top = bodyHeight+yPos-62;
//			document.all('Dcommercial').style.left = 0;	
			document.all('Dcommercial').style.visibility = visible;

		}
/*		if (commercial_i != bodyWidth/20) {
			var dCy = bodyWidth - yPosC;
			cY = demY*(cY + dCy/accY);
			yPosC = yPosC+ cY;
			commercial_i = commercial_i-1
			document.all('Dcommercial').style.top = bodyHeight+yPos-60;
			document.all('Dcommercial').style.left = -bodyWidth+Math.round(yPosC);	
		} 
*/
}

function commercialShowNS() {
		commercialHidden = false;
		if (document.layers['Dcommercial']) {
			document.layers['Dcommercial'].top = bodyHeight+yPos-62;
//			document.layers['Dcommercial'].left = 0;
			document.layers['Dcommercial'].visibility = visible;
		}	
/*		if (commercial_i != bodyWidth/20) {
			var dCy = bodyWidth - yPosC;
			cY = demY*(cY + dCy/accY);
			yPosC = yPosC+ cY;
			commercial_i = commercial_i-1
			document.layers['Dcommercial'].top = bodyHeight+yPos-60;
			document.layers['Dcommercial'].left = -bodyWidth+Math.round(yPosC);							
		} 
*/
}



////////////// Hide the commercials ///////////////////////////////////////////////

function commercialHideIE() {
	commercialHidden = true;
	if (document.all('Dcommercial')) {
		bodyWidth = document.body.clientWidth;
		commercial_i = 0;
//		document.all('Dcommercial').style.left = -bodyWidth-30;
		document.all('Dcommercial').style.visibility = hidden;
		yPosC = 0;
	}
}

function commercialHideNS() {
	commercialHidden = true;
	if (document.layers['Dcommercial']) {
		commercial_i = 0;
//		document.layers['Dcommercial'].left = -bodyWidth;
		document.layers['Dcommercial'].visibility = hidden;
		yPosC = 0;
	}
}



////////////// Show the menu ///////////////////////////////////////////////

function menuShow() {
if (sY == 0) {
	if (IE) {
		 document.all('Dmenu').style.top = yPos + marginDef;
		 if (MAC) { document.all('Dmenu').style.height = 70; }
		 else { document.form.TSetProperty("/border",7,"1"); }
	} else {
		document.layers['Dmenu'].top = yPos + marginDef;
		document.Dform.document.embeds[0].TSetProperty("/border",7,"1"); 

	}
	menuLoop = false;
} else menuLoop = true;
	mX = 0;
	mY = 0;
	if (yPos != 0) { Bhide = true; }

}



////////////// Hide the menu ///////////////////////////////////////////////

function menuHide() {
	if (IE) {
		if (yPosX !=0 ) {
			document.all('Dmenu').style.top = marginDef;
			if (MAC) { document.all('Dmenu').style.height = 67; }
			else { document.form.TSetProperty("/border",7,"0"); }
			 
		}
	} else {
		if (yPosX !=0 ) {
			document.layers['Dmenu'].top = marginDef;
			document.Dform.document.embeds[0].TSetProperty("/border",7,"0"); 
		}
	}
}



//-->





