
function PosElement(id, x, y) {
	if(id && x) {
		document.getElementById(id).style.left = x + 'px';;
	}
	if(id && y) {
		document.getElementById(id).style.top = y + 'px';;
	}
}

function showIFrame(url, titel)
{
	PosElement('iframewindow',300,70) ;
	
	
	document.getElementById('iframe').style.display = 'block';
    document.getElementById('iframe').src=url;
	document.getElementById('iframewindow').style.display = 'block';
	document.getElementById('iframewindowtitle_text').innerHTML = titel;

}

function showIFrame2(url1,url, titel, titel2)
{
	
	if(!titel2)
	{
		titel2 = titel;
	}
	var content = "<div id=\"iframewindow\" style=\"display: block;\">\n";
	content+= "	<div id=\"iframe2windowtitle\">\n";
	content+= "	</div>\n";
	content+= "	<div id=\"iframeborder\">\n";
	content+= "			<iframe id=\"iframe\" frameborder=\"0\"  src=\"http://kontakt.kunzmann.de/"+url+"\" style=\"display: block; overflow: hidden;height: 520px;width: 621px;\" ></iframe>\n";
	content+= "	</div>\n";
	content+= "	<div id=\"iframe2windowfooter\" style=\"text-align:left;\">\n";
	content+= "		<a class=\"none-underline\" href=\"javascript:window.close();\"> [x]  Fenster schliessen</a>\n";
	content+= "	</div>\n";
	content+= "</div>\n";
	

	var p = window.open(url1, titel, "width=637, height=637");
	p.document.open("text/html")
	p.document.write("<html><head><title></title>");
	p.document.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"/css/layout.css\">");
	p.document.write("</head><body style='background:black;'>");
	p.document.write(content);
	p.document.write("</body></html>");
	p.document.close();
	p.focus();
	

}
function showIFrameBilder(url )
{
	PosElement('iframewindow_bilder',300,70) ;
	
	showRocketOverlayBackground();
	//document.getElementById('overlay_background').style.display = 'block';
	document.getElementById('iframe_bilder').src=url;
	
	document.getElementById('iframe_bilder').style.display = 'block';
    document.getElementById('iframewindow_bilder').style.display = 'block';

}
function hideIFrame()
{
	document.getElementById('iframe').style.display = 'none';
	document.getElementById('iframewindow').style.display = 'none';
}
function hideIFrameBilder()
{
	parent.document.getElementById('iframe_bilder').style.display = 'none';
	parent.document.getElementById('iframewindow_bilder').style.display = 'none';
	parent.document.getElementById('rocket_overlay').style.display = 'none';
}

function ShowElement(id){
  document.getElementById(id).style.display = "block";
}

function HideElement(id){
   document.getElementById(id).style.display = "none";
}
