// JavaScript Document

function einausblenden01() {	
	if (document.getElementById("produkte").style.visibility == "hidden") {
		document.getElementById("produkte").style.visibility = "visible";
		
		if (document.getElementById("hilfe").style.visibility == "visible") {
			document.getElementById("hilfe").style.visibility = "hidden";
		}
	} else {
		document.getElementById("produkte").style.visibility = "hidden";
	}
}

function einausblenden02() {	
	if (document.getElementById("hilfe").style.visibility == "hidden") {
		document.getElementById("hilfe").style.visibility = "visible";
		
		if (document.getElementById("produkte").style.visibility == "visible") {
		document.getElementById("produkte").style.visibility = "hidden";
		}
		
	} else {
		document.getElementById("hilfe").style.visibility = "hidden";
	}
}

// ############################ POP UP #########################################


newWindow="";

function OpenNewWindow(Picture,Breit,Hoch,Alttext) {
xsize = Breit+1;
ysize = Hoch+25;

ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-((ysize+50)/2);

if (!newWindow.closed && newWindow.location) {newWindow.close();}

html = ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><head><title>Richtig Intelligente Produkte - '+Alttext+'</title><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /><style type="text/css">html, body, p, img, a, a:hover {margin:0; padding:0; border: 0; font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#716f76; text-align: center;} a:hover {color:#256ff5;} body {font-size:100.01%; background:#dcdcf4;} p {font-size: 0.8em;}</style></head><body onload="focus()" onblur="javascript:self.close()"><p><img src="'+Picture+'" alt="'+Alttext+'" width="'+Breit+'" height="'+Hoch+'" /><br /><a href="javascript:self.close()">Fenster&nbsp;schlie&szlig;en</a>&nbsp;|&nbsp;<a href="javascript:window.print()">Drucken</a></p></body></html>');

newWindow=window.open("","Picture","height="+ysize+",width="+xsize+",resizable=yes,top="+ypos+",left="+xpos+"");

  newWindow.document.open("text/html", "replace")
  newWindow.document.write(html)
  newWindow.document.close()


  return false;
}

