var arr_menuPics;var str_site = "";var str_pictures = "";var bol_mozillaFix = false;function init_menu(str_pSite, str_pPath) {	str_site = str_pSite;	str_pictures = str_pPath;  arr_menuPics = new Array();  arr_menuPics[0] = new Image();  arr_menuPics[0].src = str_pPath+"qp_p_open.gif";  arr_menuPics[1] = new Image();  arr_menuPics[1].src = str_pPath+"qp_p_open_h.gif";  arr_menuPics[2] = new Image();  arr_menuPics[2].src = str_pPath+"qp_p_open.gif";  arr_menuPics[3] = new Image();  arr_menuPics[3].src = str_pPath+"qp_p_open_h.gif";	arr_menuPics[4] = new Image();	arr_menuPics[4].src = str_pPath+"show_mini.gif";	arr_menuPics[5] = new Image();	arr_menuPics[5].src = str_pPath+"show_h_mini.gif";	arr_menuPics[6] = new Image();	arr_menuPics[6].src = str_pPath+"qp_p_close.gif";	arr_menuPics[7] = new Image();  arr_menuPics[7].src = str_pPath+"qp_p_close_h.gif";  document.write("<style type=\"text/css\">");  document.write("#zimmerinSubmit {display:none;}");  document.write("#zihiSubmit {display:none;}");  document.write("#restauratrixSubmit {display:none;}");  document.write("#textZimmerinSubmit {display:none;}");  document.write("#textZihiSubmit {display:none;}");  document.write("#textRestauratrixSubmit {display:none;}");  document.write("</style>");}function changeMenuPic(str_pId, int_pNr) {  if (document.getElementById) {    document.getElementById(str_pId).src = arr_menuPics[int_pNr].src;  }}function writeClosedMenu(str_pMode) {	if ((document.getElementById) && (!(window.opera && !document.createAttribute))) {		document.write("<div id='closedZMenu' class='jsHide'>");		if (str_pMode == "full") {			document.write("<a href='javascript:showMenu();' onmouseover='changeMenuPic(\"showZImage\", 1);' onmouseout='changeMenuPic(\"showZImage\", 0);' title='Zimmerin.de Quick-Panel &ouml;ffnen.'>");			document.write("<img id='showZImage' src='"+ str_pictures +"qp_p_open.gif' width='18' height='131' alt=''/>");		}		else {			document.write("<a href='javascript:showMenu();' title='Zimmerin.de Quick-Panel &ouml;ffnen.'>");			document.write("<span><strong>Zimmerin.de</strong> Quickpanel</span>");		}		document.write("</a></div>");	}}function writeZimmerinTextMenu() {	if (document.getElementById) {		document.write("<hr class='nocss' />");		document.write("<h3 class='nocss'>Hauptmen&uuml;:</h3>");		document.write("<div id='textMenu' class='jsHide'><h3><a href='http://www.zimmerin.de/index.shtml' title='Zimmerin.de Startseite.'>Zimmerin.de ¶</a></h3><ol>");		document.write("<li><a href='http://www.zimmerin.de/zihi/index.shtml' title='&laquo;Zimmerer Hilfen&raquo; Startseite.'><span class='nocss'>Zimmerer Hilfen (</span>ZiHi<span class='nocss'>) Webseite aufrufen</span>.</a></li>");		document.write("<li style='left:-1px;'><a href='http://www.zimmerin.de/restauro/' title='&laquo;Restauratrix&raquo; Startseite.'>Restauratrix<span class='nocss'> Webseite aufrufen</span>.</a></li>");		document.write("<li style='left:-2px;'><a href='http://zimmerin.i-networx.de/news.php?url=http://www.archmatic.com/webplugin/n000.php3' title='Aktuelle Nachrichten aus dem Baugewerbe.'>Nachrichten<span class='nocss'>-Seiten anzeigen</span>.</a></li>");				document.write("<li style='left:-4px;'><a href='http://www.zimmerin.de/forum/index.php' title='Zimmerin.de Foren.'>Forum<span class='nocss'> anzeigen</span>.</a></li>");				document.write("<li style='left:-6px;'><a href='http://www.zimmerin.de/links.shtml' title='Linkliste.'>Linkliste<span class='nocss'> anzeigen</span>.</a></li>");		document.write("<li class='last' style='left:-7px;'><a href='http://www.zimmerin.de/sitemap.shtml' title='Projekt&uuml;bergreifendes Inhaltsverzeichnis / Sitemap.'><span class='nocss'>Projekt&uuml;bergreifendes Inhaltsverzeichnis / </span>Sitemap / Suche<span class='nocss'> anzeigen</span>.</a></li>");		document.write("</ol></div>");		document.write("<p class=\"nocss\" />&nbsp;</p>");	}}function writeOpendMenu(str_pMode) {	if ((document.getElementById) && (!(window.opera && !document.createAttribute))) {		document.write("<div id='opendZMenu'>");		if (str_pMode == "full") {			document.write("<a href='javascript:hideMenu();' onmouseover='changeMenuPic(\"hideZImage\", 3);' onmouseout='changeMenuPic(\"hideZImage\", 2);' title='Zimmerin.de Quick-Panel schliessen.'>");			document.write("<img id='hideZImage' src='"+ str_pictures +"qp_p_close.gif' width='18' height='131' alt=''/>");		}		else {			document.write("<a href='javascript:hideMenu();' onmouseover='changeMenuPic(\"hideZImage\", 7);' onmouseout='changeMenuPic(\"hideZImage\", 6);' title='Zimmerin.de Quick-Panel schliessen.'>");			document.write("<img id='hideZImage' src='"+ str_pictures +"qp_p_close.gif' width='18' height='94' alt=''/>");		}		document.write("</a></div>");	}}function hideMenu() {	if (window.opera && !document.createAttribute) { // Nur Operas < 7.0		if (str_site == "ZimmerinDE") {			/*document.getElementById("menubar").style.visibility = "hidden";			document.getElementById("content").style.position = "absolute";			document.getElementById("content").style.top = "15px";			document.getElementById("closedZMenu").style.visibility = "visible";			document.getElementById("textMenu").style.visibility = "visible"; */	  }		else if (str_site == "Restauratrix") {			document.getElementById("head").style.visibility = "hidden";			document.getElementById("opendZMenu").style.visibility = "hidden";			document.getElementById("zihiPanel").style.visibility = "visible";			document.getElementById("downloads").style.marginTop = "56px";		}	  else if (str_site == "ZiHi") {		}	}	else {		if (str_site == "ZimmerinDE") {			document.getElementById("menubar").className = "jsHide";			document.getElementById("topSpacer").className = "jsHide";			document.getElementById("content").style.marginTop = "20px";			document.getElementById("closedZMenu").className = "jsShow";			document.getElementById("textMenu").className = "jsShow";		}		else if (str_site == "Restauratrix") {			document.getElementById("head").className = "jsHide";			document.getElementById("opendZMenu").className = "jsHide";			document.getElementById("zihiPanel").className = "jsShow";			document.getElementById("downloads").style.marginTop = "56px";		}		else if (str_site == "ZiHi") {			document.getElementById("menubar").className = "jsHide";			document.getElementById("opendZMenu").className = "jsHide";			document.getElementById("closedZMenu").className = "jsShow";			document.getElementById("panelSpacer").className = "panelSpacerHide";			if (!document.all && document.styleSheets && bol_mozillaFix) {			  mozillaFloatFix(1);			}		}	}	if (navigator.cookieEnabled || window.opera) {		setCoockie("closed");	}}function showMenu() {	if (window.opera && !document.createAttribute) { // Nur Operas < 7.0		if (str_site == "ZimmerinDE") {			/* document.getElementById("menubar").style.visibility = "visible";			document.getElementById("content").style.position = "static";			document.getElementById("closedZMenu").style.visibility = "hidden";			document.getElementById("textMenu").style.visibility = "hidden"; */	  }		else if (str_site == "Restauratrix") {			document.getElementById("head").style.visibility = "visible";			document.getElementById("opendZMenu").style.visibility = "visible";			document.getElementById("zihiPanel").style.visibility = "hidden";			document.getElementById("downloads").style.marginTop = "6px";		}	  else if (str_site == "ZiHi") {		}	}	else {		if (str_site == "ZimmerinDE") {			document.getElementById("menubar").className = "jsShow";			document.getElementById("topSpacer").className = "jsShow";			document.getElementById("content").style.marginTop = "0px";			document.getElementById("closedZMenu").className = "jsHide";			document.getElementById("textMenu").className = "jsHide";		}		else if (str_site == "Restauratrix") {			document.getElementById("head").className = "jsShow";			document.getElementById("opendZMenu").className = "jsShow";			document.getElementById("zihiPanel").className = "jsHide";			document.getElementById("downloads").style.marginTop = "6px";		}		else if (str_site == "ZiHi") {			document.getElementById("menubar").className = "jsShow";			document.getElementById("opendZMenu").className = "jsShow";			document.getElementById("closedZMenu").className = "jsHide";			document.getElementById("panelSpacer").className = "panelSpacerShow";			if (!document.all && document.styleSheets && bol_mozillaFix) {			  mozillaFloatFix(2);			}		}	}	if (navigator.cookieEnabled || window.opera) {		setCoockie("opend");	}}function getStyle(str_pSelector) {	var arr_cssList = document.styleSheets;	for (i = arr_cssList.length - 1; i >= 0; i--) {		arr_rules = arr_cssList[i].cssRules;		for (x = 0; x < arr_rules.length; x++) {			if (arr_rules[x].type == CSSRule.STYLE_RULE &&					arr_rules[x].selectorText == str_pSelector) {				return arr_rules[x].style;			}		}	}}function mozillaFloatFix(int_pMode) {	if (int_pMode == 1) {		style = getStyle("#row .alignLeft");		style.setProperty("margin-top", "0.5em", "");		style = getStyle("#row .alignRight");		style.setProperty("margin-top", "0.5em", "");	}	else {		style = getStyle("#row .alignLeft");		style.setProperty("margin-top", "0.51em", "");		style = getStyle("#row .alignRight");		style.setProperty("margin-top", "0.51em", "");	}}function setCoockie(str_pMode) {  var obj_today = new Date();  var int_timestamp = obj_today.getTime() + (30*24*60*60*1000);  obj_today.setTime(int_timestamp);  str_coockieString = str_site+"=";  str_coockieString += str_pMode;  str_coockieString += "; expires="+obj_today.toGMTString();  if (str_site == "ZimmerinDE") {  	str_coockieString += "; path=/;";	}	else if (str_site == "Restauratrix") {		str_coockieString += "; path=/restauratrix;";	}	else if (str_site == "ZiHi") {		str_coockieString += "; path=/zihi;";	}  document.cookie = str_coockieString;}function getCoockie() {	if (navigator.cookieEnabled || window.opera) {  	str_coockieString = document.cookie;  	arr_cookies = str_coockieString.split(";");  	for (var int_counter in arr_cookies) {			arr_cookieVD = arr_cookies[int_counter].split("=");	  	if ((arr_cookieVD.length == 2) &&	  		(arr_cookieVD[0].search(str_site) != -1) &&	  		(arr_cookieVD[1].length > 0)) {				if (arr_cookieVD[1] == "closed") {					hideMenu();				}  	  	break;			}		}	}}function gotoURL(int_pURL) {	if ((int_pURL != "null") && (int_pURL != "")) {		window.location.href = int_pURL;	}}