var immo={fensterprint:function(x){var winprint;winprint=window.open(x,'print','width=460,height=450,scrollbars=no,left=100,top=50');},fensterhelp:function(x){var winhelp;winhelp=window.open(x,'help','width=350,height=630,scrollbars=yes,left=230,top=50');},windowhelp:function(x){var winhelp;winhelp=window.open(x,'help','width=375,height=355,scrollbars=yes,left=200,top=50');},fensterschmal:function(x){var winschmal;winhelp=window.open(x,'help','width=280,height=500,scrollbars=yes,left=230,top=50');},fenstermedium:function(x){var winmedium;winhelp=window.open(x,'help','width=400,height=600,scrollbars=yes,left=230,top=50');},fensterhigh:function(x){var winhigh;winhelp=window.open(x,'help','width=400,height=750,scrollbars=yes,left=230,top=50');},fensterimprint:function(x){var winimprint;winimprint=window.open(x,'imprint','width=580,height=520,scrollbars=yes,left=230,top=50');},fensterfloor:function(x){var winfloor;winfloor=window.open(x,'floor','width=800,height=620,scrollbars=yes,left=230,top=50');},fensterpoke:function(x){var winpoke;winpoke=window.open(x,'help','width=490,height=650,scrollbars=no,left=50,top=50');},fensterpokeschmal:function(x){var winpoke;winpoke=window.open(x,'help','width=330,height=615,scrollbars=no,left=50,top=50');},popupAreamap:function(url){immo.newscrollwinflex(url,'Kartenansicht',790,690);},popupAreamapPrint:function(url){immo.newscrollwinflex(url,'Karten Druckansicht',790,690)},popupsmall:function(x){var winfloor;winfloor=window.open(x,'popup','width=580,height=565,scrollbars=yes,left=230,top=50');},popuplarge:function(x){var sh=screen.height;var sw=screen.width;if(sh<=900){var sh=(sh-100);}
if(sh>900){var sh=840;}
var winfloor;winfloor=window.open(x+'&h='+sh,'popup','width=850,height='+sh+',scrollbars=yes,left=0,top=0');},popupreview:function(url){var wwidth=670;var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);if(browserName=="Netscape"){if(browserVer>4){wwidth=wwidth-25;}}
immo.newscrollwinflex(url,'Bewertung',790,wwidth,true);},newscrollwinflex:function(url,wname,wheight,wwidth,showScrollbars){if((screen.height-wheight)<100){wheight=screen.height-100;}
var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);if(browserName=="Netscape"){if(browserVer>4){wwidth=wwidth+15;wheight=wheight+5;}}
if(navigator.appName=="Microsoft Internet Explorer"){wheight+=15;wwidth+=15;}
var windowtop=((screen.height-wheight)/2)-20;if(windowtop<0){windowtop=0;}
var windowleft=(screen.width-wwidth)/2;if(typeof showScrollbars=='undefined'||(showScrollbars==null)||showScrollbars){showScrollbars="yes";}
else{showScrollbars="no";}
var whdl=window.open(url,wname,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+showScrollbars+",resizable=yes,copyhistory=no"+",width="+wwidth+",height="+wheight+",left="+windowleft+",top="+windowtop);whdl.focus();},newscrollwin:function(url,wname,wheight,wwidth){var windowtop=((screen.height-wheight)/2)-20;var windowleft=(screen.width-wwidth)/2;var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);if(browserName=="Netscape"){if(browserVer>4){wwidth=wwidth+15;wheight=wheight+5;}}
wname=window.open(url,wname,"toolbar=0,width="+wwidth+",height="+wheight+",location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,left="+windowleft+",top="+windowtop);wname.focus();},SubmitForm:function(form,selectTag,selected){SelectOption(document.forms[form].elements[selectTag],selected);document.forms[form].submit();},load_popup:function(param){popup=window.open(param,"immonet",'scrollbars=no,left=85,top=20,width=650,height=470');if(typeof(popup)=='object'){popup.blur();}
window.focus();},load_impopup:function(param){sapop=window.open(param,"sapop",'scrollbars=no,left=85,top=20,width=650,height=470');if(typeof(sapop)=='object'){sapop.blur();}
window.focus();},load_back:function(param){if(window.opener&&!window.opener.closed){opener.location.href="/searchagent.do?"+param;self.close();}
else{win3=window.open("/searchagent.do?"+param,'zurueck','scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,status=yes,location=yes,left=85,top=20,height=768,width=1024');win3.focus();self.close();}},load_webde:function(param){if(window.opener&&!window.opener.closed){window.open(location.href="http://web.immonet.de/searchagent.do?"+param);self.close()}
else{win3=window.open("/searchagent.do?"+param,'zurueck','scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,status=yes,location=yes,left=85,top=20,height=768,width=1024');win3.focus();self.close()}},load_focus:function(param){if(window.opener&&!window.opener.closed){opener.location.href="/searchagent.do?navi=false&"+param;self.close()}
else{win3=window.open("/searchagent.do?navi=false&"+param,'zurueck','scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,status=yes,location=yes,left=85,top=20,height=768,width=1024');win3.focus();self.close()}},changeLink:function(x){for(i=0;i<document.links.length;i++){var y=document.links[i].href.toString();if(y.indexOf(x,0)>=0){var lnk=document.links[i].href.toString();var value=document.form1.objectType.options[document.form1.objecttype.selectedIndex].value;document.links[i].href=lnk+"&objecttype="+value;}}},changeObjectType:function(){var value=document.form1.objectTypeList.options[document.form1.objectTypeList.selectedIndex].value;var x=1;var y=1;if(value=="112"||value=="11"||value==12){x=1;}
else if(value==21){x=2;}
else if(value==31||value==323||value==30){x=3;}
if(value==12||value==323){y=2;}
else if(value==11||value==21||value==31){y=1;}
else if(value==112||value==30){y=0;}
if(document.form1!=null&&document.form1.objecttype!=null){document.form1.objecttype.value=x;document.form1.marketingtype.value=y;}
if(document.form2!=null&&document.form2.objecttype!=null){document.form2.objecttype.value=x;document.form2.marketingtype.value=y;}
if(document.form3!=null&&document.form3.objecttype!=null){document.form3.objecttype.value=x;document.form3.marketingtype.value=y;}
if(document.form4!=null&&document.form4.objecttype!=null){document.form4.objecttype.value=x;document.form4.marketingtype.value=y}
if(document.NewSearch!=null&&document.NewSearch.objecttype!=null){document.NewSearch.objecttype.value=x;document.NewSearch.marketingtype.value=y}},changeNewSearchObjectType:function(){var value=document.NewSearch.objectTypeList.options[document.NewSearch.objectTypeList.selectedIndex].value;var x=1;var y=1;if(value=="112"||value=="11"||value==12){x=1;}
else if(value==21){x=2;}
else if(value==31||value==323||value==30){x=3;}
if(value==12||value==323){y=2;}
else if(value==11||value==21||value==31){y=1;}
else if(value==112||value==30){y=0;}
if(document.NewSearch!=null&&document.NewSearch.objecttype!=null){document.NewSearch.objecttype.value=x;document.NewSearch.marketingtype.value=y;}},showKeywords:function(pagename,id){f=window.open("about:blank","Fenster1","width=400,height=400,left=50,top=50,status=yes");var y=pagename.split('/');f.document.open();f.document.writeln('<html><body>');f.document.writeln('<table align=\"center\"><tr><td align=\"center\" colspan=\"2\"><b>Immonet Keywords</b></td></tr><tr><td colspan=\"2\"><form name=\"addtag\">');f.document.writeln('<textarea rows=\"15\" cols=\"35\" name=\"tags\" onBlur=\"self.close()\">');for(i=1;i<y.length;i++){f.document.writeln(y[i].replace('%20',' ').replace('%20',' ').replace('%20',' ').replace('%20',' '));}
f.document.writeln('</textarea></form></td></tr>');if(y.length>2){f.document.writeln('<tr><td><b>Webseite:</td><td>'+y[1]+'</b></td></tr>');f.document.writeln('<tr><td><b>Werbeplatz:</td><td>'+y[2]+'</b></td></tr>');f.document.writeln('<tr><td><b>WerbeplatzId:</td><td>'+id+'</b></td></tr>');}
f.document.writeln('</table></body></html>');f.document.close();f.addtag.tags.focus();},submitBrokerForm:function(form,method,target){document.userManagerForm.method.value=method;document.userManagerForm.target.value=target;document.userManagerForm.submit();},SelectOption:function(selectTag,selected){for(i=0;i<selectTag.length;++i){if(selectTag.options[i].value==selected){selectTag.options[i].selected=true;}
else{selectTag.options[i].selected=false;}}},SubmitForm:function(form,selectTag,selected){immo.SelectOption(document.forms[form].elements[selectTag],selected);document.forms[form].submit();},pressEnter:function(index,ev){var keycode;if(window.event){keycode=window.event.keyCode;}
else if(e){keycode=e.which;}
else{return true;}
if(keycode==13){document.forms[index].submit();return false;}
else{return true;}},loginUrl:"/login/user",getXmlHttpRequest:function(){var xhr=null;if(typeof XMLHttpRequest!='undefined'){xhr=new XMLHttpRequest();}
if(!xhr){try{xhr=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xhr=null;}}}
return xhr;},sendXmlHttpRequest:function(url,onSuccess,onFailure){var xhr=immo.getXmlHttpRequest();if(!immo.isEmpty(xhr)){xhr.open("GET",url,true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){if(!immo.isEmpty(onSuccess)){onSuccess(xhr.responseText);}}
else{if(!immo.isEmpty(onFailure)){onFailure(xhr.responseText);}}}};xhr.send(null);}},updateXmlHttpRequest:function(url,elementId){function onSuccess(responseText){element=document.getElementById(elementId);element.innerHTML=responseText;}
immo.sendXmlHttpRequest(url,onSuccess);},counterTextArea:function(textAreaId,counterId,count,helpText,isCounterFormField){isCounterFormField=immo.isEmpty(isCounterFormField)?false:true;var counter=document.getElementById(counterId);setCountText(count);var textarea=document.getElementById(textAreaId);immo.addEvent(textarea,"keyup",countAfterContentChange);immo.addEvent(textarea,"blur",countAfterContentChange);immo.addEvent(textarea,"reset",countAfterContentChange);if(textarea.value){countAfterContentChange();}
else{immo.setFormElementHelpText(textAreaId,helpText);}
function countAfterContentChange(){var charsEntered=textarea.value.length;if(charsEntered>count){textarea.value=textarea.value.substring(0,count);textarea.selectionStart=count;textarea.selectionEnd=count;}
var charsLeft=count-charsEntered;if(charsLeft<0){charsLeft=0;}
setCountText(charsLeft);}
function setCountText(currentCounter){if(!isCounterFormField){var text=currentCounter;if(navigator.appName=="Microsoft Internet Explorer"){text+="&nbsp;";}
counter.innerHTML=text;}
else{counter.value=currentCounter;}}},setFormElementHelpText:function(formElementId,helpText){var formElement=document.getElementById(formElementId);var originalColor=formElement.style.color;if(!immo.isEmpty(helpText)){formElement.value=helpText;formElement.style.color="#aaa";}
formElement.onfocus=formElementOnFocus;function formElementOnFocus(){if(formElement.value==helpText){formElement.value="";formElement.style.color=originalColor;}}},keepAlive:function(){function keepAliveDelegate(){function onKeepAliveSuccess(resultText){immo.keepAlive();}
function onKeepAliveFailure(resultText){location.href=immo.loginUrl;}
immo.sendXmlHttpRequest("/keepalive.do?"+immo.generateRandomParameter(),onKeepAliveSuccess,onKeepAliveFailure);}
window.setTimeout(keepAliveDelegate,50000);},addEvent:function(obj,type,func){if(window.attachEvent){obj.attachEvent("on"+type,func);}
else{obj.addEventListener(type,func,false);}},removeEvent:function(obj,type,func){if(obj.detachEvent){obj.detachEvent("on"+type,func);}
else{obj.removeEventListener(type,func,false);}},onloadAfterBody:function(func){if(window.attachEvent){window.attachEvent("onload",func);}
else{window.addEventListener("load",func,false);}},submitForm:function(formName){document.forms[formName].submit();},decodeUmlaut:function(s){s=s.replace(/Ã/g,"ss");s=s.replace(/Ã€/g,"ae");s=s.replace(/Ã/g,"Ae");s=s.replace(/Ã¶/g,"oe");s=s.replace(/Ã/g,"Oe");s=s.replace(/ÃŒ/g,"ue");s=s.replace(/Ã/g,"Ue");s=s.replace(/Ã /g,"a");s=s.replace(/Ã/g,"A");s=s.replace(/Ã¡/g,"a");s=s.replace(/Ã/g,"A");s=s.replace(/Ã¢/g,"a");s=s.replace(/Ã/g,"A");s=s.replace(/Ã£/g,"a");s=s.replace(/Ã/g,"A");s=s.replace(/Ã¥/g,"a");s=s.replace(/Ã/g,"A");s=s.replace(/Ãš/g,"e");s=s.replace(/Ã/g,"E");s=s.replace(/Ã©/g,"e");s=s.replace(/Ã/g,"E");s=s.replace(/Ãª/g,"e");s=s.replace(/Ã/g,"E");s=s.replace(/Ã«/g,"e");s=s.replace(/Ã/g,"E");s=s.replace(/Ã¬/g,"i");s=s.replace(/Ã/g,"I");s=s.replace(/Ã­/g,"i");s=s.replace(/Ã/g,"I");s=s.replace(/Ã®/g,"i");s=s.replace(/Ã/g,"I");s=s.replace(/Ã¯/g,"i");s=s.replace(/Ã/g,"I");s=s.replace(/Ã±/g,"n");s=s.replace(/Ã/g,"N");s=s.replace(/Ã²/g,"o");s=s.replace(/Ã/g,"O");s=s.replace(/Ã³/g,"o");s=s.replace(/Ã/g,"O");s=s.replace(/ÃŽ/g,"o");s=s.replace(/Ã/g,"O");s=s.replace(/Ãµ/g,"o");s=s.replace(/Ã/g,"O");s=s.replace(/Ã¹/g,"u");s=s.replace(/Ã/g,"U");s=s.replace(/Ãº/g,"u");s=s.replace(/Ã/g,"U");s=s.replace(/Ã»/g,"u");s=s.replace(/Ã/g,"U");s=s.replace(/Ãœ/g,"y");s=s.replace(/Ã/g,"Y");s=s.replace(/Ã§/g,"c");s=s.replace(/Ã/g,"C");return(s);},trim:function(value){return value.replace(/(^ +| +$)/,"");},ltrim:function(value){return value.replace(/^\s+/,"");},isEmpty:function(value){return(typeof value=="undefined")||(value==null);},isStringEmpty:function(value){return immo.isEmpty(value)||(value.length==0);},isCookieSupportEnabled:function(){if(!navigator.cookieEnabled){return false;}
document.cookie="CookieTest=OK";if(immo.isEmpty(immo.getCookie("CookieTest"))){return false;}
else{immo.removeCookie("CookieTest");return true;}},getCookie:function(name){var i=0;var suche=name+"=";while(i<document.cookie.length){if(document.cookie.substring(i,i+suche.length)==suche){var ende=document.cookie.indexOf(";",i+suche.length);ende=(ende>-1)?ende:document.cookie.length;var cook=document.cookie.substring(i+suche.length,ende);return unescape(cook);}
i++;}
return null;},removeCookie:function(name,domain,path){var cook=name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT";cook+=(domain)?";domain="+domain:"";cook+=(path)?";path="+path:"";document.cookie=cook;},setSessionCookie:function(name,value,domain,path){var cook=name+"="+escape(value);cook+=(domain)?";domain="+domain:"";cook+=(path)?";path="+path:"";document.cookie=cook;},showSpinnerOverlay:function(elementId,backgroundPositionStyle){var element=document.getElementById(elementId);new Insertion.Before(element.firstChild,"<div id=\"spinnerOverlay\" class=\"spinnerOverlay\"></div>");var width=element.offsetWidth;var height=element.offsetHeight;var spinnerOverlay=document.getElementById("spinnerOverlay");spinnerOverlay.style.width=width+"px";spinnerOverlay.style.height=height+"px";spinnerOverlay.style.display="inline";if(!immo.isEmpty(backgroundPositionStyle)){spinnerOverlay.style.backgroundPosition=backgroundPositionStyle;}},generateRandomParameter:function(parameterName){var parameter="q"+new Date().getTime();if(immo.isStringEmpty(parameterName)){parameterName="p";}
return parameterName+"="+parameter;},togglePanel:function(elementName,objControlImg,imgName,displayStyle){var myElement=document.getElementById(elementName);var imgSuff="";if(myElement){var myStatus=myElement.style.display;myElement.style.display=(myStatus==''||myStatus=='block'||myStatus=='inline')?'none':displayStyle;imgSuff=(myElement.style.display=='none')?'0.gif':'1.gif';if(imgName!='')
objControlImg.src="/img/icons/"+imgName+imgSuff;}},reloadJavascript:function(src){var scrElement=document.createElement("script");scrElement.type="text/javascript";scrElement.src=src;document.getElementsByTagName("head")[0].appendChild(scrElement);return true;}}
var memoRemote={action:"/merkzettel.do",addObjectRemote:function(objectId,source,mandant){if(immo.isCookieSupportEnabled()){document.getElementById("memoAddLink"+objectId).style.display="none";document.getElementById("memoLoader"+objectId).style.display="inline";function onAddRemoteSuccess(response){var result=eval("("+response+")");if(result.status=="ok"){document.getElementById("memoLoader"+objectId).style.display="none";document.getElementById("memoRemoveLink"+objectId).style.display="inline";var prominentObjectElement=document.getElementById("prominentObjects");if(!immo.isEmpty(prominentObjectElement)){immo.updateXmlHttpRequest("/prominentObjects.do?"+immo.generateRandomParameter(),"prominentObjects");}
memoRemote.incrementEtracker("merken/"+source,mandant);}
else{document.getElementById("memoLoader"+objectId).style.display="none";document.getElementById("memoAddLink"+objectId).style.display="inline";}}
var url=memoRemote.action+"?action=addObjectRemote&objectId="+objectId+"&"+immo.generateRandomParameter();immo.sendXmlHttpRequest(url,onAddRemoteSuccess);}},removeObjectRemote:function(objectId,source,mandant){document.getElementById("memoRemoveLink"+objectId).style.display="none";document.getElementById("memoLoader"+objectId).style.display="inline";function onRemoveRemoteSuccess(response){document.getElementById("memoLoader"+objectId).style.display="none";document.getElementById("memoAddLink"+objectId).style.display="inline";var prominentObjectElement=document.getElementById("prominentObjects");if(!immo.isEmpty(prominentObjectElement)){immo.updateXmlHttpRequest("/prominentObjects.do?"+immo.generateRandomParameter(),"prominentObjects");}
memoRemote.incrementEtracker("merken/"+source,mandant);}
var url=memoRemote.action+"?action=removeObjectRemote&objectId="+objectId+"&"+immo.generateRandomParameter();immo.sendXmlHttpRequest(url,onRemoveRemoteSuccess);},incrementEtracker:function(subsystem,mandant){var path="/mein_immonet/merkzettel";var mandantIntern=mandant;if(!immo.isStringEmpty(subsystem)){path+="/"+subsystem;}
if(immo.isStringEmpty(mandantIntern)){mandantIntern="immonet";}
etracker.incrementEtrackerSimple(mandantIntern,path);}}
var catalogform={checkForm:function(form){var stateValid=true;for(var e=0;e<form.elements.length;e++){var element=form.elements[e];var labelElement=document.getElementById(element.name+"_label");var elementState=catalogform.stateNormal;var checkEmail=element.getAttributeNode("email");if(checkEmail){var re=new RegExp("^[_A-Za-z0-9&-]+(\\.[_A-Za-z0-9&-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[_A-Za-z0-9-]+)");if((element.value&&(element.value!=""))&&!re.test(element.value)){catalogform.setLabelError(labelElement);stateValid=false;continue;}
else{catalogform.setLabelNormal(labelElement);}}
var checkAlpha=element.getAttributeNode("alpha");if(checkAlpha){var re=new RegExp("[0-9]");if(re.test(element.value)){catalogform.setLabelError(labelElement);stateValid=false;continue;}
else{catalogform.setLabelNormal(labelElement);}}
var checkNumber=element.getAttributeNode("number");if(checkNumber){var re=new RegExp("^[0-9]*$");if(re.test(element.value)){catalogform.setLabelNormal(labelElement);}
else{catalogform.setLabelError(labelElement);stateValid=false;continue;}}
var checkPlz=element.getAttributeNode("plz");if(checkPlz){var re=new RegExp("^[0-9]{5}$");if(re.test(element.value)){catalogform.setLabelNormal(labelElement);}
else{catalogform.setLabelError(labelElement);stateValid=false;continue;}}
var checkRequired=element.getAttributeNode("required");if(checkRequired){if(!element||(element.value.length==0)){catalogform.setLabelError(labelElement);stateValid=false;continue;}
else{catalogform.setLabelObligatory(labelElement);}}}
if(stateValid){document.getElementById("error_label").style.visibility="hidden";document.getElementById("buttonTransmit").style.visibility="hidden";document.getElementById("divButtonTransmit").style.visibility="hidden";document.getElementById("divButtonTransmit").style.display="none";document.getElementById("imageTransmit").style.visibility="visible";form.elements["nifty"+"Element"].value="universe"+(2*16+8+2);form.submit();}
else{document.getElementById("error_label").style.visibility="visible";location.href="#anchorError";}},setLabelNormal:function(labelElement){if(labelElement){labelElement.className="caption";}},setLabelObligatory:function(labelElement){if(labelElement){labelElement.className="obligatorysmall";}},setLabelError:function(labelElement){if(labelElement){labelElement.className="contenthlerrorsmall";}}}
var imageSwitcher={hideElement:function(element){element.style.display="none";},showElement:function(element){element.style.display="block";},trackSwitching:function(mandant){etracker.incrementEtrackerSimple(mandant,"/expose/weitere-ansichten/bilderwechsel");},updateElement:function(element,innerHtml){element.innerHTML=innerHtml;},updateZoomCaption:function(urlLink,textTitle){imageSwitcher.updateElement($("changeboxCaption"),"<a class='ico_lupe_grau block' href='"+urlLink+"' rel='noindex,nofollow'>"+decodeURI(textTitle)+"&nbsp;vergr&ouml;&szlig;ern</a>");},updateVideoCaption:function(urlLink,textTitle){imageSwitcher.updateElement($("changeboxCaption"),"<a class='ico_lupe_grau block' href='"+urlLink+"' rel='noindex,nofollow'>"+decodeURI(textTitle)+"</a>");},switchImage:function(urlImage,textTitle,height,width,margin,urlLink,mandant,panorama){var objLink=$("changeboxLink");var objImage=$("changeboxImage");imageSwitcher.hideElement($("slideshow"));imageSwitcher.hideElement($("video"));imageSwitcher.hideElement($("panorama"));if(panorama){var html="<applet archive=\"/de/expose/panoapplet.jar\" code=\"panoapplet\" width=\""+width+"\" height=\""+height+"\" style=\"margin: "+margin+"px;\">"+"<param name=\"file\" value=\"/ShowPanorama?mediaName="+encodeURI(urlImage)+"\"/>"+"<param name=\"initialView\" value=\"0.000000, 180.000005, 50.000001\" />"+"<param name=\"autoSpin\" value=\"-50\" />"+"</applet>"
$("panorama").innerHTML=html;imageSwitcher.showElement($("panorama"));imageSwitcher.updateZoomCaption(urlLink,encodeURI(textTitle));}else{imgPreload=new Image();imgPreload.onload=function(){objImage.src=urlImage;}
imageSwitcher.updateZoomCaption(urlLink,textTitle);objImage.setAttribute("alt",decodeURI(textTitle));objImage.style.height=height+"px";objImage.style.width=width+"px";objImage.style.marginTop=margin+"px";objLink.href=urlLink;objImage.src=urlImage;imgPreload.src=objImage.src;imageSwitcher.showElement($("slideshow"));}
imageSwitcher.trackSwitching(mandant);},switchToVideo:function(baseUrl,videoPath,urlLink,textTitle,mandant,thumbUrl,configUrl,width,height){imageSwitcher.hideElement($("slideshow"));imageSwitcher.hideElement($("panorama"));videoHelper.renderFlashPlayer("immoflashcontent",baseUrl,videoPath,thumbUrl,configUrl,width,height);imageSwitcher.updateVideoCaption(urlLink,textTitle);imageSwitcher.showElement($("video"));imageSwitcher.trackSwitching(mandant);}}
var maxmedia={writeAd:function(adId,zoneId){document.phpAds_ct0='Insert_Clicktrack_URL_Here';var awrz_rnd=Math.floor(Math.random()*99999999999);var awrz_protocol=location.protocol.indexOf('https')>-1?'https:':'http:';if(!document.phpAds_used){document.phpAds_used=',';}
document.write("<"+"script language='JavaScript' type='text/javascript' src='");document.write(awrz_protocol+"//ad.boreus.de/MaxMediaManager/adjs.php?n="+adId);document.write("&zoneid="+zoneId+"&target=_self");document.write("&exclude="+document.phpAds_used);document.write("&loc="+escape(window.location));if(document.referrer){document.write("&referer="+escape(document.referrer));}
document.write('&r='+awrz_rnd);document.write("&ct0="+escape(document.phpAds_ct0));document.write("'><"+"/script>");},displayTags:function(){var maxmediatags=document.getElementById("immonetadserver");var ratgeberlinks=document.getElementById("ratgeberlinks");var maxmediaad1=document.getElementById("maxmedia1");var maxmediaad2=document.getElementById("maxmedia2");var maxmediaad3=document.getElementById("maxmedia3");if(maxmediatags){if(ratgeberlinks)
maxmediatags.appendChild(ratgeberlinks);if(maxmediaad1)
maxmediatags.appendChild(maxmediaad1);if(maxmediaad2)
maxmediatags.appendChild(maxmediaad2);if(maxmediaad3)
maxmediatags.appendChild(maxmediaad3);}else{if(ratgeberlinks)
ratgeberlinks.style.display="none";if(maxmediaad1)
maxmediaad1.style.display="none";if(maxmediaad2)
maxmediaad2.style.display="none";if(maxmediaad3)
maxmediaad3.style.display="none";}},adsdelay:function(){hpadtag1=document.getElementById("hpteaser1");if(hpadtag1){var hpadcontent1=document.getElementById("hpteaser1content");if(hpadcontent1){hpadcontent1.style.display="block";hpadtag1.appendChild(hpadcontent1);}}
hpadtag2=document.getElementById("hpteaser2");if(hpadtag2){var hpadcontent2=document.getElementById("hpteaser2content");if(hpadcontent2){hpadcontent2.style.display="block";hpadtag2.appendChild(hpadcontent2);}}
hpadtag3=document.getElementById("hpteaser3");if(hpadtag3){var hpadcontent3=document.getElementById("hpteaser3content");if(hpadcontent3){hpadcontent3.style.display="block";hpadtag3.appendChild(hpadcontent3);}}
hpadtag4=document.getElementById("hpteaser4");if(hpadtag4){var hpadcontent4=document.getElementById("hpteaser4content");if(hpadcontent4){hpadcontent4.style.display="block";hpadtag4.appendChild(hpadcontent4);}}
hpadtag5=document.getElementById("hpcontentteaser");if(hpadtag5){var hpadcontent5=document.getElementById("hpviertelteasercontent");if(hpadcontent5){hpadcontent5.style.display="block";hpadtag5.appendChild(hpadcontent5);}}
maxmediatags=document.getElementById("immonetadserver");var maxmediaad1=document.getElementById("maxmedia1");var maxmediaad2=document.getElementById("maxmedia2");var maxmediaad3=document.getElementById("maxmedia3");if(maxmediatags){if(maxmediaad1){maxmediaad1.style.display="block";maxmediatags.appendChild(maxmediaad1);}
if(maxmediaad2){maxmediaad2.style.display="block";maxmediatags.appendChild(maxmediaad2);}
if(maxmediaad3){maxmediaad3.style.display="block";maxmediatags.appendChild(maxmediaad3);}}
rightadspacer=document.getElementById("immonetadspaceright");var adontheright=document.getElementById("immonetadseite");if(rightadspacer){if(adontheright){adontheright.style.display="block";rightadspacer.appendChild(adontheright);}}
exposeadspacer=document.getElementById("exposepartnercontentwrapper");if(exposeadspacer){var partnerads=document.getElementById("exposepartnerbanner");if(partnerads){partnerads.style.display="block";exposeadspacer.appendChild(partnerads);}}
seladspacer=document.getElementById("seladspace");if(seladspacer){var selads=document.getElementById("selpartnerbanner");if(selads){selads.style.display="block";seladspacer.appendChild(selads);}}}}
var dart={writeRightAdspacer:function(){var rightadspacer=document.getElementById("immonetadspaceright");var adontheright=document.getElementById("immonetadseite");if(rightadspacer){if(adontheright)
rightadspacer.appendChild(adontheright);}else{if(adontheright)
rightadspacer.style.display="none";}},writeExposeAdspacer:function(){var exposeadspacer=document.getElementById("exposepartnercontentwrapper");if(exposeadspacer){var partnerads=document.getElementById("exposepartnerbanner");if(partnerads)
exposeadspacer.appendChild(partnerads);}},handleSkyscraper:function(){if(typeof(adtype)!='undefined'&&adtype=='wallpaper'){if(screen.width>1024){adbg=document.getElementById('immonetadwrapper');topad=document.getElementById('immonetadspacetop');rightad=document.getElementById('immonetadspaceright');skyad=document.getElementById('immonetbreitadtag');rightad.style.position="absolute";rightad.style.top="0";rightad.style.margin="0 0 0 0";if(typeof(bgcolor)!='undefined'&&bgcolor!=null){rightad.style.backgroundColor=bgcolor;topad.style.backgroundColor=bgcolor;adbg.style.backgroundColor=bgcolor;document.body.style.backgroundColor=bgcolor;if(typeof(adclick)!='undefined'&&adclick!=null){topad.onclick=this.showAdPop;rightad.onclick=this.showAdPop;topad.style.cursor="pointer";rightad.style.cursor="pointer";rightad.style.width=(screen.width-rightad.offsetLeft-25)+"px";rightad.style.height=(screen.height)+"px";}}}else{document.getElementById('immonetadspacetop').style.display="none";document.getElementById('immonetadspaceright').style.display="none";}}},showAdPop:function(){if(typeof(adclick)!='undefined'&&adclick!=null){var adwin=window.open(adclick,"adwin","");adwin.focus();return false;}},writeSkyscraper:function(gruppe,bereich){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;if(screen.width>1024){document.write('<div id="immonetbreitadtag">');document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';sz=160x600,120x600;tile=3;res='+screen.width+';wallp=ok;ord='+ord+'?" type="text/javascript"></scr'+'ipt>');document.write('</div>');}},writeSkyscraperSmallScreen:function(gruppe,bereich){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;if(screen.width<=1024){document.write('<div id="immonetschmaladtag">');document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';sz=160x600,120x600;tile=3;res='+screen.width+';ord='+ord+'?" type="text/javascript"></scr'+'ipt>');document.write('</div>');}},writeSkyscraperSeo:function(gruppe,bereich){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;document.write('<div id="immonetschmaladtag">');document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';sz=160x600,120x600;tile=3;res='+screen.width+';ord='+ord+'?" type="text/javascript"></scr'+'ipt>');document.write('</div>');},writeAreaSkyscraper:function(gruppe,bereich,state,federal,region,city,department,district){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;if(screen.width>1024){document.write('<div id="immonetbreitadtag">');var adtagState=this.replspecialchars(escape(state));var adtagFederal=this.replspecialchars(escape(federal));var adtagRegion=this.replspecialchars(escape(region));var adtagCity=this.replspecialchars(escape(city));var adtagDepartment=this.replspecialchars(escape(department));var adtagDistrict=this.replspecialchars(escape(district));if(adtagFederal=='Hamburg'||adtagFederal=='Berlin'||adtagFederal=='Bremen')
adtagCity=adtagFederal;document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';state='+adtagState+';fed='+adtagFederal+';regio='+adtagRegion+';city='+adtagCity+';deptm='+adtagDepartment+';dist='+adtagDistrict+';sz=160x600,120x600;tile=3;res='+screen.width+';wallp=ok;ord='+ord+'?" type="text/javascript"></scr'+'ipt>');document.write('</div>');}},writeAreaSkyscraperSmallScreen:function(gruppe,bereich,state,federal,region,city,department,district){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;if(screen.width<=1024){document.write('<div id="immonetschmaladtag">');var adtagState=this.replspecialchars(escape(state));var adtagFederal=this.replspecialchars(escape(federal));var adtagRegion=this.replspecialchars(escape(region));var adtagCity=this.replspecialchars(escape(city));var adtagDepartment=this.replspecialchars(escape(department));var adtagDistrict=this.replspecialchars(escape(district));if(adtagFederal=='Hamburg'||adtagFederal=='Berlin'||adtagFederal=='Bremen')
adtagCity=adtagFederal;document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';state='+adtagState+';fed='+adtagFederal+';regio='+adtagRegion+';city='+adtagCity+';deptm='+adtagDepartment+';dist='+adtagDistrict+';sz=160x600,120x600;tile=3;res='+screen.width+';ord='+ord+'?" type="text/javascript"></scr'+'ipt>');document.write('</div>');}},writeFullbanner:function(gruppe,bereich){var adHost=(("https:"==document.location.protocol)?"https://":"http://");ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;if(screen.width>1024){document.write('<scr'+'ipt language="JavaScript" src="'+adHost+'ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';sz=728x90,468x60;tile=1;res='+screen.width+';wallp=ok;ord='+ord+'?" type="text/javascript"></scr'+'ipt>');}else{document.write('<scr'+'ipt language="JavaScript" src="'+adHost+'ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';sz=728x90,468x60;tile=1;res='+screen.width+';ord='+ord+'?" type="text/javascript"></scr'+'ipt>');}},writeAreaFullbanner:function(gruppe,bereich,state,federal,region,city,department,district){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;var adtagState=this.replspecialchars(escape(state));var adtagFederal=this.replspecialchars(escape(federal));var adtagRegion=this.replspecialchars(escape(region));var adtagCity=this.replspecialchars(escape(city));var adtagDepartment=this.replspecialchars(escape(department));var adtagDistrict=this.replspecialchars(escape(district));if(adtagFederal=='Hamburg'||adtagFederal=='Berlin'||adtagFederal=='Bremen')
adtagCity=adtagFederal;if(screen.width>1024){document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';state='+adtagState+';fed='+adtagFederal+';regio='+adtagRegion+';city='+adtagCity+';deptm='+adtagDepartment+';dist='+adtagDistrict+';sz=728x90,468x60;tile=1;res='+screen.width+';wallp=ok;ord='+ord+'?" type="text/javascript"></scr'+'ipt>');}else{document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';state='+adtagState+';fed='+adtagFederal+';regio='+adtagRegion+';city='+adtagCity+';deptm='+adtagDepartment+';dist='+adtagDistrict+';sz=728x90,468x60;tile=1;res='+screen.width+';ord='+ord+'?" type="text/javascript"></scr'+'ipt>');}},writeContentAd:function(gruppe,bereich,state,federal,region,city,department,district,seite){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;var adtagState=this.replspecialchars(escape(state));var adtagFederal=this.replspecialchars(escape(federal));var adtagRegion=this.replspecialchars(escape(region));var adtagCity=this.replspecialchars(escape(city));var adtagDepartment=this.replspecialchars(escape(department));var adtagDistrict=this.replspecialchars(escape(district));if(adtagFederal=='Hamburg'||adtagFederal=='Berlin'||adtagFederal=='Bremen')
adtagCity=adtagFederal;document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';state='+adtagState+';fed='+adtagFederal+';regio='+adtagRegion+';city='+adtagCity+';deptm='+adtagDepartment+';dist='+adtagDistrict+';page='+seite+';sz=300x250,300x200,336x280,580x300;tile=2;ord='+ord+'?" type="text/javascript"></scr'+'ipt>');},writeLayerAd:function(gruppe,bereich){ord=(typeof(ord)!='undefined')?ord:Math.random()*10000000000000000;document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/'+gruppe+'/'+bereich+';tile=15;dcopt=ist;sz=1x1;ord='+ord+'?" type="text/javascript"><\/scr'+'ipt>');},replspecialchars:function(string){string=string.replace(/%20/g,'')
string=string.replace(/%2C/g,',');string=string.replace(/%C4/g,'Ae');string=string.replace(/%E4/g,'ae');string=string.replace(/%DC/g,'Ue');string=string.replace(/%FC/g,'ue');string=string.replace(/%D6/g,'Oe');string=string.replace(/%F6/g,'oe');string=string.replace(/%DF/g,'sz');return string;}}
var immoIdw={styleNum:0,writeIdw:function(bildNr,height,width){var heightBild=parseInt(height)+4;var widthBild=parseInt(width)+4;var heightPad=(80-parseInt(height)+8)/2;var widthPad=(107-parseInt(width)+8)/2;var heightHover=parseInt(height)+14;var widthHover=parseInt(width)+14;if(this.styleNum=document.styleSheets.length<=0){dynStyle=document.createElement('style');dynStyle.type="text/css";dynStyle.media="all";document.getElementsByTagName('head')[0].appendChild(dynStyle);this.styleNum=document.styleSheets.length;immoIdw.writeIdw(bildNr,height,width);}
styleSheets=document.styleSheets[document.styleSheets.length-1];if(styleSheets.addRule){styleSheets.addRule("#idw a img.bild"+bildNr,"width:"+widthBild+"px; height:"+heightBild+"px; padding:"+heightPad+"px "+widthPad+"px;");styleSheets.addRule("#idw a:hover img.bild"+bildNr,"width:"+widthHover+"px; height:"+heightHover+"px;");}else if(styleSheets.insertRule){styleSheets.insertRule("#idw a img.bild"+bildNr+" {width:"+widthBild+"px; height:"+heightBild+"px; padding:"+heightPad+"px "+widthPad+"px;}",(styleSheets.cssRules.length-1));styleSheets.insertRule("#idw a:hover img.bild"+bildNr+" {width:"+widthHover+"px; height:"+heightHover+"px;}",(styleSheets.cssRules.length-1));}}}