// leipzig film
function video1(url)
{
pop = window.open(url,'POP','scrollbars=no,width=701,height=444,top=' + ((screen.availHeight-700) / 2) + ',left=' + ((screen.availWidth-600) / 2)); 
pop.focus();
}

// holzhausen film
function video2(url)
{
pop = window.open(url,'POP','scrollbars=no,width=720,height=614,top=' + ((screen.availHeight-700) / 2) + ',left=' + ((screen.availWidth-600) / 2)); 
pop.focus();
}

function karte(url)
{
pop = window.open(url,'POP','scrollbars=no,width=599,height=570,top=' + ((screen.availHeight-700) / 2) + ',left=' + ((screen.availWidth-600) / 2)); 
pop.focus();
}


var browser=new Object;
browser=navigator.appName;
version=navigator.appVersion;
os=navigator.platform;
codename=navigator.appCodeName;
agent=navigator.userAgent;
browser.major = parseInt(navigator.appVersion);
browser.minor = parseFloat(navigator.appVersion);

/*
document.write("<br><br><br>Browser:" + browser + "<br>");
document.write("Version:" + version + "<br>");
document.write("Sprache:" + language + "<br>");
document.write("Betriebssystem:" + os + "<br>");
document.write("Codename des Browsers:" + codename + "<br>");
document.write("User-Agent-Attribut:" + agent + "<br>");
document.write("Browser:" + browser + "<br>");
*/

var spfad= stylepfad+'/common/styles/';

safari = (navigator.appVersion.indexOf("Safari")!=-1) ? true : false;
moz = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
opera = (navigator.userAgent.indexOf("Opera")!=-1) ? true : false;
ie55 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.5")!=-1)) ? true : false;
ie7 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 7")!=-1)) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
NS4 = (document.layers) ? true : false;

if(ie55) document.write('<link rel="stylesheet" media="screen, projection" href="'+spfad+'styles_ie55.css" type="text/css" />'); 


function setContentHeight(){
    window.setTimeout( "setContentHeight1()", 1000 );
}

function setContentHeight1(){
    var bheight=getMyPageSize();
    //alert(bheight[1]);
     if (moz  || ie7) document.getElementById('all').style.minHeight = bheight[1]-90 + "px";
    else document.getElementById('all').style.height = bheight[1]-90 + "px";

    window.setTimeout( "setContentHeight2()", 1000 );
}

function setContentHeight2(){
    var bheight2=getMyPageSize();
   // alert (bheight2);

    if (moz || ie7) document.getElementById('content').style.minHeight = bheight2[1]-340 + "px";
    else document.getElementById('content').style.height = bheight2[1]-340 + "px";
}


function getMyPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function onContent(f){//(C)webreflection.blogspot.com
var b=navigator.userAgent,d=document,w=window,
c="__onContent__",e="addEventListener",o="opera",r="readyState",
s="<scr".concat("ipt defer src='//:' on",r,"change='if({complete:true}[this.",r,"])",c,"()'></scr","ipt>");
w[c]=(function(o){return function(){w[c]=function(){};f(o?o():o)}})(w[c]);
if(d[e])d[e]("DOMContentLoaded",w[c],false);
if(/WebKit|Khtml/i.test(b)||(w[o]&&parseInt(w[o].version())<9))
(function(){/loaded|complete/.test(d[r])?w[c]():setTimeout(arguments.callee,1)})();
else if(/MSIE/i.test(b))d.write(s);
};

// window.setTimeout( "setContentHeight", 1000 );

// window.onload = setContentHeight;
// window.onresize = setContentHeight;