function showClosedMessage(){document.getElementById("indhold").style.visibility="visible";document.getElementById("skygge").style.visibility="visible";if(document.getElementById("c")){document.getElementById("c").style.visibility="hidden"}if(document.getElementById("R")){document.getElementById("R").style.visibility="hidden"}if(document.getElementById("PE")){document.getElementById("PE").style.visibility="hidden"}if(document.getElementById("Q51")){document.getElementById("Q51").style.visibility="hidden"}}function subwin(b,e,d,a){jQuery.fn.colorbox({href:b,innerWidth:d,innerHeight:a,iframe:true})}function SetIndex(b){var d;if(navigator.appName=="Netscape"){for(var a=0;a<document.getElementById("search").R.options.length;a++){if(b==document.getElementById("search").R.options[a].value){d=a}}document.getElementById("search").R.options[d].selected=true}else{document.getElementById("search").R.value=b}}function SetArea(b){var d;if(navigator.appName=="Netscape"){for(var a=0;a<document.getElementById("searchalpine").R.options.length;a++){if(b==document.getElementById("searchalpine").R.options[a].value){d=a}}document.getElementById("searchalpine").R.options[d].selected=true}else{document.getElementById("searchalpine").R.value=b}}function SetIndexRS(b){var d;if(navigator.appName=="Netscape"){for(var a=0;a<document.getElementById("search").RS.options.length;a++){if(b==document.getElementById("search").RS.options[a].value){d=a}}document.getElementById("search").RS.options[d].selected=true}else{document.getElementById("search").RS.value=b}}function getSelectedRadio(a){if(a[0]){for(var b=0;b<a.length;b++){if(a[b].checked){return b}}}else{if(a.checked){return 0}}return -1}var da=(document.all)?1:0;var pr=(window.print)?1:0;var mac=(navigator.userAgent.indexOf("Mac")!=-1);function printPage(){if(pr){window.print()}else{if(da&&!mac){vbPrintPage()}}}if(da&&!pr&&!mac){with(document){writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');writeln('<SCRIPT LANGUAGE="VBScript">');writeln("Sub window_onunload");writeln("  On Error Resume Next");writeln("  Set WB = nothing");writeln("End Sub");writeln("Sub vbPrintPage");writeln("  OLECMDID_PRINT = 6");writeln("  OLECMDEXECOPT_DONTPROMPTUSER = 2");writeln("  OLECMDEXECOPT_PROMPTUSER = 1");writeln("  On Error Resume Next");writeln("  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER");writeln("End Sub");writeln("</SCRIPT>")}}function redirectAgency(){pw=prompt("Zum Zugang der Reisebüroseiten, geben Sie bitte den CRS-Kode von NOVASOL ein:","");if((pw=="NOSO")||(pw=="noso")){document.location.href="http://buro.novasol.de"}}function searchhouse(d,l,e,b){var m=0;var f=1;var h=null;for(var a=m;a<d.elements.length-f;a++){if(d.elements[a].type=="hidden"){continue}if(d.elements[a].checked){h=d.elements[a].value;var k=a;break}else{h=null}}for(var a=k;a<d.elements.length-f;a++){if(d.elements[a+1].type=="checkbox"){if(!d.elements[a+1].checked){slutDatoStr=d.elements[a+1].value;break}}else{slutDatoStr=d.elements[a+1].value;break}}if(h==null){var g="/CUE/840.nsf/"+b+"/house?opendocument&H="+l+"&S="+d.season.value+"&PE="+d.people.value+"&A="+e;if(b=="x"){subwin(g,l,"750","440")}else{location.href=g}}else{house(l,"-1",h,slutDatoStr,d.people.value,d.season.value,e,b)}}function house(g,h,d,f,a,b,l,k){var e="http://www.cuendet.com/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+g+"&NA="+a+"&SD="+d+"&ED="+f+"&S="+b+"&A="+l;if(k=="x"){e=e+"&_xview";subwin(e,g,"760","440")}else{location.href=e}}function housealpine(g,h,b,f,d,a,l,k){var e="/CUE/840.nsf/"+k+"/housealpine?opendocument&H="+g+"&P="+h+"&PE="+d+"&SD="+b+"&ED="+f+"&S="+a+"&A="+l;if(k=="x"){subwin(e,g,"760","540")}else{location.href=e}}function danhouse(g,h,d,f,a,b,l,k){var e="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+g+"&NA="+a+"&SD="+d+"&ED="+f+"&S="+b+"&A="+l;if(k=="x"){e=e+"&_xview";subwin(e,g,"760","440")}else{location.href=e}}function checkEmail(e){var a="";if(e==""){a="You did not enter an email address"}var d=/^.+@.+..{2,3}$/;if(!(d.test(e))){a="Please enter a valid email address"}else{var b=/[()<>,;:\"[]]/;if(e.match(b)){a="The email address contains illegal characters"}}return a}function required(b){if(b.FN.value==""){alert("Please enter your name");b.FN.focus();return false}if(b.S.value==""){alert("Please enter your street name");b.S.focus();return false}if(b.STN.value==""){alert("Please enter your house number");b.STN.focus();return false}if(b.Z.value==""){alert("Please enter your post code");b.Z.focus();return false}if(b.ZC.value==""){alert("Please enter your city");b.ZC.focus();return false}if(b.PH.value==""){alert("Please enter your phone number");b.PH.focus();return false}var a=checkEmail(b.E.value);if(!(a=="")){alert(a);b.E.focus();return false}else{return true}}function reqfields(f,h,l,m,k,o,g,d,p,b,n){if(h==1){if(f.FN.value==""){alert("Please enter your name");f.FN.focus();return false}}if(l==1){if(f.SN.value==""){alert("Please enter your name");f.SN.focus();return false}}if(m==1){if(f.S.value==""){alert("Please enter your street name");f.S.focus();return false}}if(n==1){if(f.STN.value==""){alert("Please enter your house number");f.STN.focus();return false}}if(k==1){if(f.Z.value==""){alert("Please enter your post code");f.Z.focus();return false}}if(o==1){if(f.ZC.value==""){alert("Please enter your city");f.ZC.focus();return false}}if(g==1){if(f.CO[f.CO.selectedIndex].value==""){alert("Please select country");f.CO.focus();return false}else{if(f.CO[f.CO.selectedIndex].value=="000"&&f.OC.value==""){alert("Please enter country name or select country");f.OC.focus();return false}}if(d==1){if(f.PH.value==""){alert("Please enter your phone number");f.PH.focus();return false}}if(p==1){var a=checkEmail(f.E.value);if(!(a=="")){alert(a);f.E.focus();return false}else{return true}}}if(b==1){if(f.W[f.W.selectedIndex].value==""){alert("Please select where did you find us");f.W.focus();return false}}return true}function SelectCountry(a){window.location.href="/CUE/840.nsf/0/"+a+"searchalpine?OpenDocument"}function chgs(b,d){var a=location.href;oldValue="S="+b;newValue="S="+d;if(a.indexOf(oldValue)>0){a=a.replace(oldValue,newValue)}else{a=location.href+"&"+newValue}location.replace(a)}function fbs_click(a){u=a+"&WT.mc_id=FB";t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false}function check_gb_form(){var a="";if(document.getElementById("gb_form").gb_email.value==""){a+="Please enter valid email address"}if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("gb_form").gb_email.value)==false){a+="Please enter valid email address"}if(a!=""){alert(a);return false}return true}function openSitemapWindow(a){sitemapWin=window.open(a,"sitemap","width=815,height=600,directories=no,status=yes,scrollbars=yes,resizable=no,menubar=no,toolbar=no")}function VisHusPopup(a){url="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+a+"&_xview";window.open(url,"","width=775,height=700,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function openWindow(a){window.open(a,"","width=580,height=460,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function getArgs(){var e=new Object();var a=location.search.substring(1);var h=a.split("&");for(var f=0;f<h.length;f++){var b=h[f].indexOf("=");if(b==-1){continue}var d=h[f].substring(0,b);var g=h[f].substring(b+1);e[d]=unescape(g)}return e}function goLogin(a){window.location="/appserver/Redirect?action=safe&basehref="+location.hostname+"&destination="+a}function login(){$("#loginreply").html("<img src='/site/_img/ajax-loader.gif' alt='' />");$.post("/appserver/BureauWebsite/CheckSession",$("#loginform").serialize(),function(a){if(a=="true"){var b=document.referrer;if(b!=null&&b.indexOf("BureauWebsite")!=-1){window.location=document.referrer}else{window.location="/appserver/Redirect?action=safe&basehref=www.cuendet.com&destination=https://safe.novasol.com/login/agency.html?F=A&A="+loginform.account.value}}else{setReply("loginreply","Wrong password or agency number","red")}},"text");return false}function agencySendPassword(){$.post("/appserver/BureauWebsite/SendPassword",{email:$("#email").val(),COM:"CUE",L:"840",account:$("#account").val()},function(a){if(a=="true"){setReply("sendEmailReply","The e-mail was sent","green")}else{setReply("sendEmailReply","The e-mail was not sent. Please try again with a correct e-mail address.","red")}},"text");return false}function setReply(b,a,d){$("#"+b).html(a);$("#"+b).css("color",d);$("#"+b).fadeIn("slow");setTimeout('$("#'+b+'").fadeOut("slow");',"5000")}function setOption(a,b){if(a){for(var d=0;d<a.length;d++){if(a[d].value==b){a[d].selected=true}}}}function chkSelect(a){pe=a.NA.options[document.getElementById("search").NA.options.selectedIndex].value;if(a.C.type=="hidden"){c=a.C.value}else{c=a.C.options[document.getElementById("search").C.options.selectedIndex].value}if(!pe||!c){alert("Please select a destination and number of people");return false}}function doSubmit(a){if(cookielist.A){if(a.A){a.A.value=cookielist.A}}if(a.id=="search"){if(chkSelect(a)==false){return}a.action="/appserver/ConsumerWebsite/HouseList";a.submit()}else{if(a.id=="housesearch"){go2house(a.house.value,"CUE");return false}else{a.submit()}}}function doAdvSearch(){if(cookielist.A){if(document.getElementById("search").A){document.getElementById("search").A.value=cookielist.A}}document.getElementById("search").action="/search.nsf/0/840cueCON";document.getElementById("search").submit()}function validateStartDate(theform){var s1=theform.SD.value.indexOf("-");var s2=theform.SD.value.lastIndexOf("-");var e1=theform.ED.value.indexOf("-");var e2=theform.ED.value.lastIndexOf("-");var sy=Math.abs(theform.SD.value.substr(s2+1,s2+5));var sm=Math.abs(theform.SD.value.substring(s1+1,s2));var sd=Math.abs(theform.SD.value.substr(0,s1));var ey=Math.abs(theform.ED.value.substr(e2+1,e2+5));var em=Math.abs(theform.ED.value.substring(e1+1,e2));var ed=Math.abs(theform.ED.value.substr(0,e1));var temp=new Date(sy,sm-1,sd+7);var zY=temp.getYear()<1999?temp.getYear()+1900:temp.getYear();theform.ED.value=temp.getDate()+"-"+eval(temp.getMonth()+1)+"-"+zY}function subcal(a){addWindow=window.open(a,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0");addWindow.focus()}function makeLink(a,e,b){findValue=document.forms[a].elements[e].value.split("-");myMonth=findValue[1];myYear=findValue[2];var d=a;if(d.search(/alpine/)>-1){subcal("/search.nsf/0/calendaralpine840?opendocument&dateField="+e+"&m="+myMonth+"&y="+myYear+"&formname="+a+"&country="+b)}else{subcal("/search.nsf/0/840cuecalendar?opendocument&dateField="+e+"&m="+myMonth+"&y="+myYear+"&formname="+a+"&country="+b)}}function getCookie(l,h,n){var b=" "+document.cookie;var g=b.split(";");var m="";var d;for(var f=0;f<g.length;f++){d=l+"=";if(d==g[f].substring(1,l.length+2)){m=g[f].substring(l.length+2,g[f].length)}}if(h.length>1){if(m.length>1){m=m+"&"+h}else{m=h}}var k=m.split("&");for(var e=0;e<k.length;e++){if(k[e].indexOf("=")>0){var a=k[e].split("=");n[a[0]]=a[1]}}}function setCookie(g,a,m){var l="";var d=new Array();getCookie(g,a,d);for(key in validParametersArray){if(d[validParametersArray[key]]){l=l+validParametersArray[key]+"="+d[validParametersArray[key]]+"&"}}var f=new Date();var k="";f.setTime(f.getTime()+m*60*60*1000);var h=document.domain.split(".");if(h.length>1){k=h[h.length-2]+"."+h[h.length-1]}var b=g+"="+l+((f)?"; expires="+f.toGMTString():"")+"; path=/; domain="+k;document.cookie=b}function deleteCookie(a){var b=new Date();b.setTime(b.getTime()-1);document.cookie=a+"=;expires="+b.toGMTString()}function go2house(b,e){if((b.length==6&&e=="NOV")||(b.length>4&&b.length<7&&e=="DAN")){var d="/house.nsf/0/840"+e+"?opendocument&H="+b+"&S=2010";if(cookielist.A){d=d+"&A="+cookielist.A}location.href=d}else{if(b.length==6&&e=="CUE"){var d="/appserver/ConsumerWebsite/ShowHouse?L=840&THEME=CON&COM="+e+"&H="+b;if(cookielist.A){d=d+"&A="+cookielist.A}location.href=d}else{var a="Please enter the 6 digit NOVASOL Object number (e.g. EBL102)";alert(a)}}}function go2result(g){var b="";var f=document.getElementsByName("HQ");for(var e=0;e<f.length;e++){if(f[e].value){if(f[e].value.length==6){b=b+"^"+f[e].value}else{b="";break}}}if(b.length>6){b=b.substring(1,b.length)}if(!b){var d="Please enter the 6 digit NOVASOL Object number (e.g. EBL102)";alert(d)}else{var a="/appserver/ConsumerWebsite/HouseListlist840cue?opendocument";a=a+"&SD="+g.SD.value;a=a+"&ED="+g.ED.value;a=a+"&HQ="+b;a=a+"&RTYPE=HOUSELIST";if(cookielist.A){a=a+"&A="+cookielist.A}location.href=a}}function switchform(a){if(a=="multiple"){document.getElementById("housesearch").style.display="none";document.getElementById("housesearchmultiple").style.display="inline"}else{document.getElementById("housesearch").style.display="inline";document.getElementById("housesearchmultiple").style.display="none"}}function VisHusPopup(a){url="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+a+"&_xview";window.open(url,"","width=775,height=700,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function setAdvSearchValues(){for(element in advcookielist){changevalue=true;collection=document.getElementsByName(element);if(collection.length>0){for(counter in validParametersArray){if(validParametersArray[counter]==element){changevalue=false}}if(changevalue){if(collection[0].type=="checkbox"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=advcookielist[element]}else{if(collection[0].type=="select-one"){setOption(collection[0],advcookielist[element])}}}}}}}function setFieldValues(){var e=location.search;if(e.length>1){var f=new Array();var b=e.substring(1,e.length).split("&");for(var a=0;a<b.length;a++){if(b[a].indexOf("=")>0){var d=b[a].split("=");f[d[0]]=d[1]}}for(element in f){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&f[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(f[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(f[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(f[element]))}}}}}}}}function LatLng(b,a){this.lat=b;this.lng=a;this.toUTM=convertToUTM;this.toUTM32=convertToUTM32;this.toString=LatLngToString}function LatLngToString(){return"Lat, Long: ("+this.lat+", "+this.lng+")"}function UTMRef(b,a,d,e){this.easting=b;this.northing=a;this.southhemi=e;this.zone=d;this.toLatLng=convertFromUTM;this.toString=UTMRefToString}function UTMRefToString(){var a=this.lngZone+" "+this.easting+" "+this.northing;if(this.southhemi){a+=" southern hemisphere"}return a}var pi=3.14159265358979;var sm_a=6378137;var sm_b=6356752.314;var sm_EccSquared=0.00669437999013;var UTMScaleFactor=0.9996;function DegToRad(a){return(a/180*pi)}function RadToDeg(a){return(a/pi*180)}function ArcLengthOfMeridian(d){var f,e,b,k,h,g;var a;g=(sm_a-sm_b)/(sm_a+sm_b);f=((sm_a+sm_b)/2)*(1+(Math.pow(g,2)/4)+(Math.pow(g,4)/64));e=(-3*g/2)+(9*Math.pow(g,3)/16)+(-3*Math.pow(g,5)/32);b=(15*Math.pow(g,2)/16)+(-15*Math.pow(g,4)/32);k=(-35*Math.pow(g,3)/48)+(105*Math.pow(g,5)/256);h=(315*Math.pow(g,4)/512);a=f*(d+(e*Math.sin(2*d))+(b*Math.sin(4*d))+(k*Math.sin(6*d))+(h*Math.sin(8*d)));return a}function UTMCentralMeridian(a){var b;b=DegToRad(-183+(a*6));return b}function FootpointLatitude(l){var a,b,h,k,e,g,f;var d;f=(sm_a-sm_b)/(sm_a+sm_b);b=((sm_a+sm_b)/2)*(1+(Math.pow(f,2)/4)+(Math.pow(f,4)/64));a=l/b;h=(3*f/2)+(-27*Math.pow(f,3)/32)+(269*Math.pow(f,5)/512);k=(21*Math.pow(f,2)/16)+(-55*Math.pow(f,4)/32);e=(151*Math.pow(f,3)/96)+(-417*Math.pow(f,5)/128);g=(1097*Math.pow(f,4)/512);d=a+(h*Math.sin(2*a))+(k*Math.sin(4*a))+(e*Math.sin(6*a))+(g*Math.sin(8*a));return d}function MapLatLonToXY(g,n,b,w){var e,p,q,s,v,f;var m,r,k,h,d,o;var a;q=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);p=q*Math.pow(Math.cos(g),2);e=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+p));s=Math.tan(g);v=s*s;a=(v*v*v)-Math.pow(s,6);f=n-b;m=1-v+p;r=5-v+9*p+4*(p*p);k=5-18*v+(v*v)+14*p-58*v*p;h=61-58*v+(v*v)+270*p-330*v*p;d=61-479*v+179*(v*v)-(v*v*v);o=1385-3111*v+543*(v*v)-(v*v*v);w[0]=e*Math.cos(g)*f+(e/6*Math.pow(Math.cos(g),3)*m*Math.pow(f,3))+(e/120*Math.pow(Math.cos(g),5)*k*Math.pow(f,5))+(e/5040*Math.pow(Math.cos(g),7)*d*Math.pow(f,7));w[1]=ArcLengthOfMeridian(g)+(s/2*e*Math.pow(Math.cos(g),2)*Math.pow(f,2))+(s/24*e*Math.pow(Math.cos(g),4)*r*Math.pow(f,4))+(s/720*e*Math.pow(Math.cos(g),6)*h*Math.pow(f,6))+(s/40320*e*Math.pow(Math.cos(g),8)*o*Math.pow(f,8));return}function MapXYToLatLon(s,D,d,b){var e,C,k,F,o,B,m,A,a;var p,E,f,H,g,n,G,h;var q,w,r,z,v,l,I;e=FootpointLatitude(D);o=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);a=Math.cos(e);F=o*Math.pow(a,2);C=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+F));k=C;B=Math.tan(e);m=B*B;A=m*m;p=1/(k*a);k*=C;E=B/(2*k);k*=C;f=1/(6*k*a);k*=C;H=B/(24*k);k*=C;g=1/(120*k*a);k*=C;n=B/(720*k);k*=C;G=1/(5040*k*a);k*=C;h=B/(40320*k);q=-1-F;w=-1-2*m-F;r=5+3*m+6*F-6*m*F-3*(F*F)-9*m*(F*F);z=5+28*m+24*A+6*F+8*m*F;v=-61-90*m-45*A-107*F+162*m*F;l=-61-662*m-1320*A-720*(A*m);I=1385+3633*m+4095*A+1575*(A*m);b[0]=e+E*q*(s*s)+H*r*Math.pow(s,4)+n*v*Math.pow(s,6)+h*I*Math.pow(s,8);b[1]=d+p*s+f*w*Math.pow(s,3)+g*z*Math.pow(s,5)+G*l*Math.pow(s,7);return}function LatLonToUTMXY(a,b,d,e){MapLatLonToXY(a,b,UTMCentralMeridian(d),e);e[0]=e[0]*UTMScaleFactor+500000;e[1]=e[1]*UTMScaleFactor;if(e[1]<0){e[1]=e[1]+10000000}return d}function UTMXYToLatLon(f,e,g,d,b){var a;f-=500000;f/=UTMScaleFactor;if(d){e-=10000000}e/=UTMScaleFactor;a=UTMCentralMeridian(g);MapXYToLatLon(f,e,a,b);return}function convertToUTM(){var a=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}var b=parseFloat(this.lng);if((b<-180)||(180<=b)){alert("The longitude you entered is out of range.  Please enter a number in the range [-180, 180).");return false}if(isNaN(parseFloat(this.lat))){alert("Please enter a valid latitude in the lat field.");return false}var d=parseFloat(this.lat);if((d<-90)||(90<d)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=Math.floor((b+180)/6)+1;zone=LatLonToUTMXY(DegToRad(d),DegToRad(b),zone,a);return new UTMRef(a[0],a[1],zone,d<0)}function convertToUTM32(d,b){var a=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}lon=parseFloat(this.lng);if((lon<-180)||(180<=lon)){alert("The longitude you entered is out of range.  Please enter a number in the range [-180, 180).");return false}if(isNaN(parseFloat(this.lat))){alert("Please enter a valid latitude in the lat field.");return false}lat=parseFloat(this.lat);if((lat<-90)||(90<lat)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=32;zone=LatLonToUTMXY(DegToRad(lat),DegToRad(lon),zone,a);return new UTMRef(a[0],a[1],zone,lat<0)}function convertFromUTM(){latlon=new Array(2);if(isNaN(parseFloat(this.easting))){alert("Please enter a valid easting in the x field.");return false}if(isNaN(parseFloat(this.northing))){alert("Please enter a valid northing in the y field.");return false}if(isNaN(parseInt(this.zone))){alert("Please enter a valid UTM zone in the zone field.");return false}if((this.zone<1)||(60<this.zone)){alert("The UTM zone you entered is out of range.  Please enter a number in the range [1, 60].");return false}UTMXYToLatLon(this.easting,this.northing,this.zone,this.southhemi,latlon);return new LatLng(RadToDeg(latlon[0]),RadToDeg(latlon[1]))}function placeMapMarkers(l,b,a,e){if(l=="latlng"){var k=new LatLng(a,b);var d=k.toUTM32();b=d.easting;a=d.northing}var m=new Array(16);m.c208=new Array(430000,6055000,747000,6440000);m.c752=new Array(239444,6190000,1550556,7810000);m.c578=new Array(142380,6470000,1487619,8100000);m.c528=new Array(100000,5631904,387000,5988095);m.c056=new Array(41000,5448571,325000,5791429);m.c280=new Array(280000,5260000,930000,6150000);m.c040=new Array(540000,4984444,1120000,5695556);m.c348=new Array(1040000,4996667,1520000,5613333);m.c616=new Array(840000,5432414,1580000,6287586);m.c203=new Array(720000,5249746,1220000,5880254);m.c703=new Array(1070000,5211842,1480000,5738158);m.c380=new Array(300000,4080000,1340000,5320000);m.c250=new Array(-550000,4517647,580000,5882353);m.c191=new Array(850000,4706733,1300000,5253267);m.c300=new Array(1420000,3843636,2360000,5016364);m.c724=new Array(-1255859,3787594,95393,5298646);m.c756=new Array(265000,4920000,625000,5540000);var g=document.getElementById("houseMap_"+e);var f=document.getElementById("marker_"+e);geomap_coordinates=m[g.alt];geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]);geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]);geocodes_per_pixel_width=(geomap_width/g.width);geocodes_per_pixel_height=(geomap_height/g.height);if((b>855464&&b<897022)&&(a>6104899&&a<6152359)){leftmarker=((b-geomap_coordinates[0])/geocodes_per_pixel_width)-55+"px";topmarker=((geomap_coordinates[3]-a)/geocodes_per_pixel_height)-84+"px"}else{if((b<-1700000&&b>-2200000)&&(a>3100000&&a<3600000)){leftmarker=((b-geomap_coordinates[0])/geocodes_per_pixel_width)+67+"px";topmarker=((geomap_coordinates[3]-a)/geocodes_per_pixel_height)-47+"px"}else{leftmarker=((b-geomap_coordinates[0])/geocodes_per_pixel_width)-4+"px";topmarker=((geomap_coordinates[3]-a)/geocodes_per_pixel_height)-11+"px"}}f.style.left=leftmarker;f.style.top=topmarker;f.style.visibility="visible"}function isElementInArray(a,d){for(var b=0;b<a.length;b++){if(a[b]==d){return true}}return false}function convertDate_dd_mm_yyyyOryyyy_mm_dd(d,b){var a=d.split(b);if(a.length=3){return a[2]+"-"+a[1]+"-"+a[0]}else{return false}}function EOSsearchParameters(){var args=getArgs();var delimeterChar=",";var rsStr="";var parameterArrayDates=["SD","ED"];var parameterArrayValue=["C","R","SD","ED","PE","K","QE1","Q50","Q54","P","Q51","Q52","Q67","Q00"];var parameterArray=["C","R","SD","ED","PE","K","QE1","Q50","Q54","P","Q51","Q52","Q67","Q00","Q01","Q45","Q02","Q03","Q06","Q05","Q30","Q10","Q04","Q38","Q09","Q29","Q08","Q31","Q13","Q15","Q12","Q26","Q32"];for(var i=0;i<parameterArray.length;i++){var searchParameter=parameterArray[i];if(isElementInArray(parameterArrayValue,searchParameter)){if(eval("args."+parameterArray[i])){if(isElementInArray(parameterArrayDates,searchParameter)){rsStr=rsStr+convertDate_dd_mm_yyyyOryyyy_mm_dd(eval("args."+parameterArray[i]),"-")}else{rsStr=rsStr+eval("args."+parameterArray[i])}}else{rsStr=rsStr}rsStr=rsStr+delimeterChar}else{if(eval("args."+parameterArray[i])){rsStr=rsStr+"1"}else{rsStr=rsStr+"0"}rsStr=rsStr+delimeterChar}}return rsStr.substring(0,rsStr.lastIndexOf(delimeterChar))}function EOSParam(a){if(a){return a}return""}function EOSDateFormat(a){dateArray=a.split("-");if(dateArray.length<3){return a}return dateArray[2]+"-"+dateArray[1]+"-"+dateArray[0]}function EOSProfiling(g){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var b=EOSParam(g.shop_id);var s=EOSParam(g.newsletter_flag);var a=EOSParam(g.catalogorder_flag);var r=EOSParam(g.catalogorder_name);var l=EOSParam(g.product_recommendation);var e=EOSParam(g.user_searchkeywords);var p=EOSParam(g.order_article);var m=EOSParam(g.customer_zip);var h=EOSParam(g.product_onsale);var k=EOSParam(g.product_id);var o=EOSParam(g.wishlist_article);var q=EOSDateFormat(EOSParam(g.travel_start_date));var w=EOSDateFormat(EOSParam(g.travel_end_date));var n=EOSParam(g.travel_kids);var d=EOSParam(g.travel_adults);var v=EOSParam(g.travel_hotel_category);var f="https://ads.heias.com/x/heias.ret.px.fr/?PX=HT|"+HEIAS_T+"|n|5723|cus||pb|1|customer_zip|"+m+"|order_article|"+p+"|shop_id|"+b+"|newsletter_flag|"+s+"|catalogorder_flag|"+a+"|catalogorder_name|"+r+"|product_recommendation|"+l+"|user_searchkeywords|"+e+"|product_onsale|"+h+"|product_id|"+k+"|wishlist_article|"+o+"|travel_start_date|"+q+"|travel_end_date|"+w+"|travel_kids|"+n+"|travel_adults|"+d+"|travel_hotel_category|"+v+"";document.write('<div id="px_div_'+HEIAS_T+'" style="position: absolute; left:0; top:0; width:0px; height:0px;"><iframe id="px_fr_'+HEIAS_T+'" name="px_fr_'+HEIAS_T+'" src="'+f+'" allowtransparency="true" framespacing="0" frameborder="no" scrolling="no" width="1" height="1"></iframe></div>')}function EOSCheckOut(l){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var o=EOSParam(l.order_article);var m=EOSParam(l.order_id);var f=EOSParam(l.order_total);var n=EOSParam(l.order_payment_method);var k=EOSParam(l.customer_status);var g=EOSParam(l.customer_zip);var d=EOSDateFormat(EOSParam(l.travel_start_date));var h=EOSDateFormat(EOSParam(l.travel_end_date));var e=EOSParam(l.travel_kids);var a=EOSParam(l.travel_adults);var b=EOSParam(l.travel_hotel_category);document.write('<script language="JavaScript" type="text/javascript" src="https://ads.heias.com/x/heias.cpa/count.px.js/?PX=HT|'+HEIAS_T+"|cus||pb|1|order_article|"+o+"|order_payment_method|"+n+"|order_id|"+m+"|order_total|"+f+"|customer_status|"+k+"|customer_zip|"+g+"|travel_start_date|"+d+"|travel_end_date|"+h+"|travel_kids|"+e+"|travel_adults|"+a+"|travel_hotel_category|"+b+'"><\/script>')}function generateAreaOptions(a){var d=document.getElementById("search").R;d.options.length=1;var b=new Array();b["380"]="^BASILICATA|IBASI^- Ionian Coast|IBJ^- Tyrrhenian coast|IBT^EMILIA-ROMAGNA|IEMIL^- Emilia-Romagna countryside|IEC^- Emilia-Romagna Adriaticcoast|IEK^FRIULI|IFRIA^- Friuli countryside|IFC^- Friuli - coast of Adriatic Sea|IFK^CALABRIA|IKALA^- Calabria|IKK^CAMPANIA|IKAMP^- Amalfi coast|IKA^- Cilento/Salerno bay|IKC^- Gaeta and Baia Domizia|IKG^- Campania countryside|IKL^- Sorrento coast|IKS^LATIUM|ILATI^- Rome|IRO^- Environs of Latium|IRU^LIGURIA|ILIGU^- Liguria|ILL^MARCHES|IMARK^- Marches|IMM^NORTHERN LAKES|INORD^- Garda Lake|IVG^- Lake Maggiore|IVM^APULIA|IPUGL^- Apulia|ISA^SARDINIA|ISARD^- Sardinia|ISD^SICILY|ISIZI^- Sicily|ISS^TUSCANY|ITOSC^- Arezzo/Cortona and surroundings|ITA^- Florentine|ITB^- Chianti|ITC^- Florence and surroundings|ITF^- Grosseto and surroundings|ITG^- Lucca and surroundings|ITL^- San Gimignano and Volterra|ITN^- Pisa and surroundings|ITP^- Siena and surroundings|ITS^- Montecatini/Pistoia and surroundings|ITT^TUSCANY COAST|ITOSK^- Elba Island|ITE^- Etruscan Coast|ITK^- Argentario/Maremma|ITM^- Versilia|ITV^UMBRIA|IUMBR^- Perugia and surroundings|IUP^- Spoleto and surroundings|IUS^- Trasimeno Lake|IUT^VENICE|IVE^- Veneto countryside|IVC^- Veneto coast|IVK^- Venice|IVV";b["300"]="^Corfu|GCF^Chios|GCH^Cyprus|GCY^Crete|GKR^Lesbos|GLE^MAINLAND|GMAIN^- Athens|GAT^- Chalkidiki|GHA^- Peloponese|GPE^CYCLADES|KYKLA^- Kea|GKK^- Paros|GKP^- Syros|GKS^THESSALIEN|THESS^- Pelion|GPI^- Thessalien|GTH";b["250"]="^AQUITAINE|FAQUI^- Dordogne|FAD^- Gironde|FAG^- Landes|FAL^- Pyrénées Atlantiques|FAP^- Lot et Garonne|FAT^THE ATLANTIC OCEAN|FATLA^- Charente Maritime|FCH^- Vendée|FVE^BRITTANY|FBR^- Côte d´Amor|FBC^- Finistére|FBF^- Ille and Vilaine|FBI^- Loire Atlantique|FBL^- Morbihan|FBM^CENTRE-LOIRE|FCELO^- Centre|FEC^CÕTE D`AZUR|FCOTE^- Alpes Maritimes|FCA^- Var|FCV^CORSICA|FKORS^- Corsica|FKO^LANGUEDOC-ROUSSILLON|FLANG^- Aude|FLA^- Gard|FLG^- Hérault|FLH^- Lozère|FLL^- Pyrénées Orientales|FLP^NORMANDY|FNORM^- Calvados|FNC^- Manche|FNM^- Orne|FNO^- Seine Maritimes|FNS^PROVENCE-DRÔME-ARDÈCHE|FPROV^- Alpes de haute Provence|FPA^- Bouches du Rhône|FPB^- Drôme|FPD^- Vaucluse|FPV^- Ardèche|FRA^MIDI-PYRÉNÉES|FPYRE^- Lot|FML";b["191"]="^CENTRAL DALMATIA|DALMM^- Brac island|CDB^- Island Hvar|CDH^- Vis island|CDK^- Ciovo Island|CDM1^- Drvenik Veli Island|CDM2^- Drvenik Mali Island|CDM3^- Makarska|CDM4^- Omis|CDM5^- Split|CDM6^- Trogir|CDM7^- Solta island|CDO^NORTHERN DALMATIA|DALMN^- Biograd|CDN1^- Nin|CDN2^- Starigrad Paklenica|CDN3^- Vir Island|CDN4^- Zadar|CDN5^- Dugi Otok Island|CDU1^- Rivanj Island|CDU10^- Ist Island|CDU2^- Iz Island|CDU3^- Molat Island|CDU4^- Pasman Island|CDU5^- Rava Island|CDU6^- Ugljan Island|CDU8^- Drnis|CDV1^- Prvic Island|CDV10^- Zirje island|CDV11^- Kaprije Island|CDV2^- Krapanj Island|CDV3^- Murter Island|CDV4^- Primosten|CDV5^- Rogoznica|CDV6^- Sibenik|CDV7^- Vodice|CDV8^- Zlarin Island|CDV9^SOUTHERN DALMATIA|DALMS^- Dubrovnik Riviera|CDD^- Peljesac peninsula|CDP^- Neretva Delta|CDR^- Korcula island|CDS^ISTRIA|ISTRI^- Premantura|CIA^- Banjole|CIB^- Porec|CIE1^- Vrsar|CIE2^- Fazana|CIF1^- Barbariga|CIF2^- East coast|CIK^- Rabac|CIK1^- Labin|CIK2^- Krnica|CIK3^- Duga Uvala|CIK4^- Istria hinterland|CIL^- Barban|CIL1^- Ucka|CIL10^- Visnjan|CIL11^- Vodnjan|CIL12^- Zminj|CIL13^- Bale|CIL14^- Buje|CIL2^- Buzet|CIL3^- Kanfanar|CIL4^- Motovun|CIL5^- Pazin|CIL6^- Sv. Lovrec|CIL7^- Svetvincenat|CIL8^- Tinjan|CIL9^- Medulin|CIM^- Pula|CIP^- Umag & Novigrad|CIU^- Umag|CIU1^- Novigrad|CIU2^- Rovinj|CIV^- Liznjan|CIZ^KVARNER BAY|KVARN^- Gorski Kotar|CKB1^- Lika|CKB2^- Crikvenica|CKC^- KrK|CKK^- Cres island|CKL1^- Losinj island|CKL2^- Ilovik Island|CKL3^- Susak Island|CKL4^- Novi Vinodolski|CKN^- Opatija|CKO^- Pag|CKP^- Rab|CKR^- Senj and the coast down|CKV^- Karlobag|CKV1^- Senj|CKV2";b["724"]="^THE CANARY ISLANDS|CANAR^- Fuerteventura|EFU^- Gran Canary|EGR^- El Hierro|EHI^- Lanzarote|ELA^- La Palma|EPA^- Tenerife|ETE^Majorca|EML^MAINLAND|ESPAN^- Costa del Sol/Andalusia|EAN^- Costa Blanca|EBL^- Costa Brava|ECB^- Costa Calida|ECC^- Costa Dorada|EDO";optionlist=b[a].substring(1).split("^");for(i=0;i<optionlist.length;i++){valueset=optionlist[i].split("|");d.options[i+1]=new Option(valueset[0],valueset[1],true,false)}}function nmtrack(){function x(L,J,M){var I=new Array();if(J==null){J=document}if(M==null){M="*"}var H=J.getElementsByTagName(M);var e=H.length;var K=new RegExp("(^|\\s)"+L+"(\\s|$)");for(y=0,j=0;y<e;y++){if(K.test(H[y].className)){I[j]=H[y];j++}}return I}function a(e){if(!e){return""}var H="";for(var I=0;I<e.childNodes.length;I++){switch(e.childNodes.item(I).nodeType){case 1:H+=a(e.childNodes.item(I));break;case 3:H+=e.childNodes.item(I).nodeValue;break}}return H}function k(e){return e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var p="novasol";var f="";if(f==""){var q=[];var G=document.getElementById("navPathArea");var D=x("currentLocation");if(G!=null){var l=G.getElementsByTagName("a");for(var y=0;y<l.length;y++){q[q.length]=l[y].innerHTML}var o=G.getElementsByTagName("span");q[q.length]=o[o.length-1].innerHTML}else{if(D.length>0){q=a(q[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){q[q.length]="Home";q[q.length]="Booking";var B=x("BOKSTPsteptable");var s=B[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;q[q.length]="Step "+s}}}var z=[];for(var y=1;y<q.length;y++){z[z.length]=k(q[y])}f=z.join(" > ")}var E=new String(window.document.location);var g=E;try{var b=new String(top.document.location);g=b.indexOf("nm_extag")!=-1?b:g}catch(F){}if(f==""){f=document.title}var r="";var m=document.cookie;if(m.indexOf("nm_exref")!=-1){var w=m.split(";");for(y=0;y<m.length;y++){var A=new String(w[y]);var h=A.indexOf("nm_exref");if(h!=-1){r=new String(A.substr(h+9))}}document.cookie="nm_exref="}if(r==""){r=document.referrer;try{r=top.document.referrer}catch(F){}}var n=g.indexOf("nm_extag=");var d="";if(n!=-1){n+=9;var C=g.indexOf("&",n);d=C==-1?g.substr(n):g.substr(n,C-n);d=encodeURIComponent(d)}f=encodeURIComponent(f);E=encodeURIComponent(E);r=encodeURIComponent(r);d=encodeURIComponent(d);if(f.length>250){f=f.slice(0,246)+"..."}if(E.length>800){E=E.slice(0,796)+"..."}if(r.length>800){r=r.slice(0,796)+"..."}var v=document.createElement("SCRIPT");v.language="javascript";v.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+p+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+E+"&cid="+p+(r.length>0?("&ref="+r):"")+"&ti1="+f+"&ext="+d;document.getElementsByTagName("body")[0].appendChild(v)}catch(F){}}function googleAreaMapInitialize(e){var a=new Array();a["191"]=new Array(45.1667,15.5,5);a["250"]=new Array(46,2,5);a["300"]=new Array(39,22,5);a["380"]=new Array(42.8333,12.8333,5);a["724"]=new Array(40,-4,5);var d=a[e];if(d){var b=new GMap2(document.getElementById("map_canvas"));b.setCenter(new GLatLng(d[0],d[1]),d[2]);b.disableDragging()}}jQuery(document).ready(function(){jQuery(".inputtext").focusin(function(){if(jQuery(this).val()==jQuery(this).attr("title")){jQuery(this).val("")}});jQuery(".inputtext").focusout(function(){if(jQuery(this).val()==""||jQuery(this).val()==jQuery(this).attr("title")){jQuery(this).val(jQuery(this).attr("title"));jQuery(this).css("color","#999")}});jQuery(".inputtext").each(function(){jQuery(this).val(jQuery(this).attr("title"));jQuery(this).css("color","#999")});jQuery(".inputtext").keydown(function(){jQuery(this).attr("style","")})});function encodeStr(b){var a;if(encodeURIComponent){a=encodeURIComponent(b)}else{a=escape(b)}return a};
