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";
	
	if (checkIt('win')) LupeHeight=880;
	else LupeHeight=910;
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


function gotolink() {
        var myindex=document.bundesland.dest.value;
        location=myindex;
}	
function gotolink2(form) {
        var myindex=form.dest.value;
        location=myindex;
}	
function surfto(form) {
   var myindex=form.dest.selectedIndex
   window.open(form.dest.options[myindex].value,"_self","");
}

function openWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function closegoto(url) {
window.opener.location.href = url;
window.opener.focus();
self.focus();  
}
function Lupe(pic,session,picno,subfo) {
 MeinFenster =
 window.open("lupe.php?PHPSESSID="+session+"&pic="+pic+"&picno="+picno+"&subfo="+subfo, "Lupe", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=900,height="+LupeHeight);
 MeinFenster.focus();
}

/* wohnung-jetzt.de * Copyright e-deas.de 2003 - 2005 */