
/* openpic */

function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+30;
ysize = Hoch+50;
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/3)-(xsize/3);
ypos = (ScreenHeight/3)-(ysize/3);
	
NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
NewWindow.document.write ("<html><head><title>  &Uuml;berbauung Nido d'Amore, Fahrweid - ");
NewWindow.document.write ("</title><link rel='stylesheet' type='text/css' href='nido.css'></head>");
NewWindow.document.write ("<body bgcolor='#64BAE4'>");
NewWindow.document.write ("<table align='center'><tr>");
NewWindow.document.write ("<td colspan='2' align='center' valign='top'>");
NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
NewWindow.document.write ("&nbsp;<br><img src=");
NewWindow.document.write (Picture);
NewWindow.document.write (" class='tab'>");
NewWindow.document.write ("</tr></td></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td><a href='javascript:window.print()'>drucken</a></td>");
NewWindow.document.write ("<td align='right'><a href='javascript:top.window.close()'>schliessen</a></td>");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</body></html>");
NewWindow.document.close();
}



/* inhalt scroller */ 

function content_layer(no,visibility) {

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

document_offset = 220;

if (visibility == 1) {
	visibility_status="visible";
}
else {
	visibility_status="hidden";
}

if ((navigator.userAgent.indexOf("Win") != -1)){

	if (browser_type == "Netscape") {
	
	document.write(' <div id="content'+no+'" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; VISIBILITY: '+visibility_status+'; WIDTH: 700px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: relative; overflow: auto;  padding-right: 10px;""> ');

	}
	
	else {
	
	document.write(' <div id="content'+no+'" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; VISIBILITY: '+visibility_status+'; WIDTH: 700px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: relative; overflow: auto;  padding-right: 10px;""> ');

	}
}

if (navigator.userAgent.indexOf('Mac') != -1){

	if (navigator.appName.indexOf('Microsoft') != -1) {
	
	document.write(' <div id="content'+no+'" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; VISIBILITY: '+visibility_status+'; WIDTH: 700px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: relative; overflow: auto;  padding-right: 10px;""> ');
	
	}
	
	else {
	
	document.write(' <div id="content'+no+'" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; VISIBILITY: '+visibility_status+'; WIDTH: 700px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: relative; overflow: auto;  padding-right: 10px;""> ');
	
	}
}

}

function set_content() {
	browser_version= parseInt(navigator.appVersion);
	browser_type = navigator.appName;

	if (browser_type == "Netscape") {
		for (x=1; x<= layers_total; x++) {
			document.getElementById('content'+x).style.height=window.innerHeight-document_offset;
		}
	}
	else {
		for (x=1; x<= 4; x++) {
			document.getElementById('content'+x).style.height=document.body.clientHeight-document_offset;
		}
	}
}


