function openWindow(url,title,features) {
	ow=window.open(url,title,features);
	ow.focus();
}

function browser_detect(){
	
	var detect = navigator.userAgent.toLowerCase();
	var OS,browser,version,total,thestring;

	if (checkIt('konqueror'))
	{
	browser = "Konqueror";
	OS = "Linux";
	}
	else if (checkIt('safari')) browser = "Safari"
	else if (checkIt('omniweb')) browser = "OmniWeb"
	else if (checkIt('opera')) browser = "Opera"
	else if (checkIt('webtv')) browser = "WebTV";
	else if (checkIt('icab')) browser = "iCab"
	else if (checkIt('msie')) browser = "Internet Explorer"
	else if (!checkIt('compatible'))
	{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
	}
	else browser = "An unknown browser";

	if (!version) version = detect.charAt(place + thestring.length);

	if (!OS)
	{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
	}

	function checkIt(string)
	{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
	}

return browser;	
}








function ini(){


function getId(id_num)
{
	var id_arr = new Array;

	id_arr[0] = "content";
	id_arr[1] = "bottom";
	id_arr[2] = "body_content";

	return id_arr[id_num];
}


function getElement(id){ return document.getElementById(id) }


ref_object = new Array;
i=0;
while(i<=2){
ref_object[i] = getElement(getId(i));
i++;
}


	if(browser_detect() == "Netscape Navigator"){content_height = parseFloat(document.defaultView.getComputedStyle(ref_object[0], "").getPropertyValue("height"));}else{ content_height = ref_object[0].offsetHeight;}

	content_height = content_height +350;
	if (content_height < 720){content_height = 720;}



	switch(ref_object[0].title){
	case "Fotos": if(browser_detect() == "Netscape Navigator"){document.getElementById('fotos_table').style.left='-160';}document.getElementById('fotos_table').style.visibility='visible';break;
	case "Dienstleistungen": if(browser_detect() == "Netscape Navigator"){document.getElementById('content').style.left='-110';}document.getElementById('fotos_table').style.visibility='visible';break;

}


ref_object[1].style.top = content_height;
ref_object[2].style.height = content_height;
ref_object[1].style.visibility='visible';
ref_object[2].style.visibility='visible';

}




function ShowPic(url,w,h)
{
	
	
	x = screen.availWidth/2-w/2;
	y = screen.availHeight/2-h/2;

   	var popupWindow = window.open('','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
	popupWindow.document.write('<html><head><title>Bild</title>');
	popupWindow.document.write("</head>");
	popupWindow.document.write('<body bgcolor="#FFFFFF"><img src="'+url+'">');
							   
													

	popupWindow.document.write('</body></html>');

	
}




	