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(f,h,k,g){jQuery.fn.colorbox({href:f,innerWidth:k,innerHeight:g,iframe:true})}function SetIndex(f){var e;if(navigator.appName=="Netscape"){for(var g=0;g<document.getElementById("search").R.options.length;g++){if(f==document.getElementById("search").R.options[g].value){e=g}}document.getElementById("search").R.options[e].selected=true}else{document.getElementById("search").R.value=f}}function SetArea(f){var e;if(navigator.appName=="Netscape"){for(var g=0;g<document.getElementById("searchalpine").R.options.length;g++){if(f==document.getElementById("searchalpine").R.options[g].value){e=g}}document.getElementById("searchalpine").R.options[e].selected=true}else{document.getElementById("searchalpine").R.value=f}}function SetIndexRS(f){var e;if(navigator.appName=="Netscape"){for(var g=0;g<document.getElementById("search").RS.options.length;g++){if(f==document.getElementById("search").RS.options[g].value){e=g}}document.getElementById("search").RS.options[e].selected=true}else{document.getElementById("search").RS.value=f}}function getSelectedRadio(e){if(e[0]){for(var d=0;d<e.length;d++){if(e[d].checked){return d}}}else{if(e.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(w,o,v,x){var n=0;var s=1;var q=null;for(var y=n;y<w.elements.length-s;y++){if(w.elements[y].type=="hidden"){continue}if(w.elements[y].checked){q=w.elements[y].value;var p=y;break}else{q=null}}for(var y=p;y<w.elements.length-s;y++){if(w.elements[y+1].type=="checkbox"){if(!w.elements[y+1].checked){slutDatoStr=w.elements[y+1].value;break}}else{slutDatoStr=w.elements[y+1].value;break}}if(q==null){var r="/CUE/840.nsf/"+x+"/house?opendocument&H="+o+"&S="+w.season.value+"&PE="+w.people.value+"&A="+v;if(x=="x"){subwin(r,o,"750","440")}else{location.href=r}}else{house(o,"-1",q,slutDatoStr,w.people.value,w.season.value,v,x)}}function house(m,w,p,n,r,q,s,v){var o="http://www.cuendet.com/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+m+"&NA="+r+"&SD="+p+"&ED="+n+"&S="+q+"&A="+s;if(v=="x"){o=o+"&_xview";subwin(o,m,"760","440")}else{location.href=o}}function housealpine(m,w,q,n,p,r,s,v){var o="/CUE/840.nsf/"+v+"/housealpine?opendocument&H="+m+"&P="+w+"&PE="+p+"&SD="+q+"&ED="+n+"&S="+r+"&A="+s;if(v=="x"){subwin(o,m,"760","540")}else{location.href=o}}function danhouse(m,w,p,n,r,q,s,v){var o="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+m+"&NA="+r+"&SD="+p+"&ED="+n+"&S="+q+"&A="+s;if(v=="x"){o=o+"&_xview";subwin(o,m,"760","440")}else{location.href=o}}function checkEmail(h){var g="";if(h==""){g="You did not enter an email address"}var k=/^.+@.+..{2,3}$/;if(!(k.test(h))){g="Please enter a valid email address"}else{var f=/[()<>,;:\"[]]/;if(h.match(f)){g="The email address contains illegal characters"}}return g}function required(d){if(d.FN.value==""){alert("Please enter your name");d.FN.focus();return false}if(d.S.value==""){alert("Please enter your street name");d.S.focus();return false}if(d.STN.value==""){alert("Please enter your house number");d.STN.focus();return false}if(d.Z.value==""){alert("Please enter your post code");d.Z.focus();return false}if(d.ZC.value==""){alert("Please enter your city");d.ZC.focus();return false}if(d.PH.value==""){alert("Please enter your phone number");d.PH.focus();return false}var e=checkEmail(d.E.value);if(!(e=="")){alert(e);d.E.focus();return false}else{return true}}function reqfields(r,e,A,x,C,y,q,v,s,w,B){if(e==1){if(r.FN.value==""){alert("Please enter your name");r.FN.focus();return false}}if(A==1){if(r.SN.value==""){alert("Please enter your name");r.SN.focus();return false}}if(x==1){if(r.S.value==""){alert("Please enter your street name");r.S.focus();return false}}if(B==1){if(r.STN.value==""){alert("Please enter your house number");r.STN.focus();return false}}if(C==1){if(r.Z.value==""){alert("Please enter your post code");r.Z.focus();return false}}if(y==1){if(r.ZC.value==""){alert("Please enter your city");r.ZC.focus();return false}}if(q==1){if(r.CO[r.CO.selectedIndex].value==""){alert("Please select country");r.CO.focus();return false}else{if(r.CO[r.CO.selectedIndex].value=="000"&&r.OC.value==""){alert("Please enter country name or select country");r.OC.focus();return false}}if(v==1){if(r.PH.value==""){alert("Please enter your phone number");r.PH.focus();return false}}if(s==1){var z=checkEmail(r.E.value);if(!(z=="")){alert(z);r.E.focus();return false}else{return true}}}if(w==1){if(r.W[r.W.selectedIndex].value==""){alert("Please select where did you find us");r.W.focus();return false}}return true}function SelectCountry(b){window.location.href="/CUE/840.nsf/0/"+b+"searchalpine?OpenDocument"}function chgs(f,e){var g=location.href;oldValue="S="+f;newValue="S="+e;if(g.indexOf(oldValue)>0){g=g.replace(oldValue,newValue)}else{g=location.href+"&"+newValue}location.replace(g)}function fbs_click(b){u=b+"&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 b="";if(document.getElementById("gb_form").gb_email.value==""){b+="Please enter valid email address"}if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("gb_form").gb_email.value)==false){b+="Please enter valid email address"}if(b!=""){alert(b);return false}return true}function openSitemapWindow(b){sitemapWin=window.open(b,"sitemap","width=815,height=600,directories=no,status=yes,scrollbars=yes,resizable=no,menubar=no,toolbar=no")}function VisHusPopup(b){url="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+b+"&_xview";window.open(url,"","width=775,height=700,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function openWindow(b){window.open(b,"","width=580,height=460,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function getArgs(){var p=new Object();var l=location.search.substring(1);var m=l.split("&");for(var o=0;o<m.length;o++){var k=m[o].indexOf("=");if(k==-1){continue}var q=m[o].substring(0,k);var n=m[o].substring(k+1);p[q]=unescape(n)}return p}function goLogin(b){window.location="/appserver/Redirect?action=safe&basehref="+location.hostname+"&destination="+b}function login(){$("#loginreply").html("<img src='/site/_img/ajax-loader.gif' alt='' />");$.post("/appserver/BureauWebsite/CheckSession",$("#loginform").serialize(),function(e){if(e=="true"){var d=document.referrer;if(d!=null&&d.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(b){if(b=="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(f,g,e){$("#"+f).html(g);$("#"+f).css("color",e);$("#"+f).fadeIn("slow");setTimeout('$("#'+f+'").fadeOut("slow");',"5000")}function setOption(g,f){if(g){for(var e=0;e<g.length;e++){if(g[e].value==f){g[e].selected=true}}}}function chkSelect(b){pe=b.NA.options[document.getElementById("search").NA.options.selectedIndex].value;if(b.C.type=="hidden"){c=b.C.value}else{c=b.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(b){if(cookielist.A){if(b.A){b.A.value=cookielist.A}}if(b.id=="search"){if(chkSelect(b)==false){return}b.action="/appserver/ConsumerWebsite/HouseList";b.submit()}else{if(b.id=="housesearch"){go2house(b.house.value,"CUE");return false}else{b.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(b){addWindow=window.open(b,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0");addWindow.focus()}function makeLink(g,h,f){findValue=document.forms[g].elements[h].value.split("-");myMonth=findValue[1];myYear=findValue[2];var k=g;if(k.search(/alpine/)>-1){subcal("/search.nsf/0/calendaralpine840?opendocument&dateField="+h+"&m="+myMonth+"&y="+myYear+"&formname="+g+"&country="+f)}else{subcal("/search.nsf/0/840cuecalendar?opendocument&dateField="+h+"&m="+myMonth+"&y="+myYear+"&formname="+g+"&country="+f)}}function getCookie(v,w,q){var p=" "+document.cookie;var y=p.split(";");var s="";var o;for(var z=0;z<y.length;z++){o=v+"=";if(o==y[z].substring(1,v.length+2)){s=y[z].substring(v.length+2,y[z].length)}}if(w.length>1){if(s.length>1){s=s+"&"+w}else{s=w}}var x=s.split("&");for(var A=0;A<x.length;A++){if(x[A].indexOf("=")>0){var r=x[A].split("=");q[r[0]]=r[1]}}}function setCookie(n,r,s){var v="";var p=new Array();getCookie(n,r,p);for(key in validParametersArray){if(p[validParametersArray[key]]){v=v+validParametersArray[key]+"="+p[validParametersArray[key]]+"&"}}var o=new Date();var w="";o.setTime(o.getTime()+s*60*60*1000);var e=document.domain.split(".");if(e.length>1){w=e[e.length-2]+"."+e[e.length-1]}var q=n+"="+v+((o)?"; expires="+o.toGMTString():"")+"; path=/; domain="+w;document.cookie=q}function deleteCookie(e){var d=new Date();d.setTime(d.getTime()-1);document.cookie=e+"=;expires="+d.toGMTString()}function go2house(f,h){if((f.length==6&&h=="NOV")||(f.length>4&&f.length<7&&h=="DAN")){var k="/house.nsf/0/840"+h+"?opendocument&H="+f+"&S=2010";if(cookielist.A){k=k+"&A="+cookielist.A}location.href=k}else{if(f.length==6&&h=="CUE"){var k="/appserver/ConsumerWebsite/ShowHouse?L=840&THEME=CON&COM="+h+"&H="+f;if(cookielist.A){k=k+"&A="+cookielist.A}location.href=k}else{var g="Please enter the 6 digit NOVASOL Object number (e.g. EBL102)";alert(g)}}}function go2result(n){var l="";var o=document.getElementsByName("HQ");for(var h=0;h<o.length;h++){if(o[h].value){if(o[h].value.length==6){l=l+"^"+o[h].value}else{l="";break}}}if(l.length>6){l=l.substring(1,l.length)}if(!l){var k="Please enter the 6 digit NOVASOL Object number (e.g. EBL102)";alert(k)}else{var m="/appserver/ConsumerWebsite/HouseListlist840cue?opendocument";m=m+"&SD="+n.SD.value;m=m+"&ED="+n.ED.value;m=m+"&HQ="+l;m=m+"&RTYPE=HOUSELIST";if(cookielist.A){m=m+"&A="+cookielist.A}location.href=m}}function switchform(b){if(b=="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(b){url="/appserver/ConsumerWebsite/ShowHouse?L=840&COM=CUE&H="+b+"&_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 k=location.search;if(k.length>1){var h=new Array();var m=k.substring(1,k.length).split("&");for(var g=0;g<m.length;g++){if(m[g].indexOf("=")>0){var l=m[g].split("=");h[l[0]]=l[1]}}for(element in h){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&h[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(h[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(h[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(h[element]))}}}}}}}}function LatLng(d,e){this.lat=d;this.lng=e;this.toUTM=convertToUTM;this.toUTM32=convertToUTM32;this.toString=LatLngToString}function LatLngToString(){return"Lat, Long: ("+this.lat+", "+this.lng+")"}function UTMRef(f,g,k,h){this.easting=f;this.northing=g;this.southhemi=h;this.zone=k;this.toLatLng=convertFromUTM;this.toString=UTMRefToString}function UTMRefToString(){var b=this.lngZone+" "+this.easting+" "+this.northing;if(this.southhemi){b+=" southern hemisphere"}return b}var pi=3.14159265358979;var sm_a=6378137;var sm_b=6356752.314;var sm_EccSquared=0.00669437999013;var UTMScaleFactor=0.9996;function DegToRad(b){return(b/180*pi)}function RadToDeg(b){return(b/pi*180)}function ArcLengthOfMeridian(s){var q,r,l,n,o,p;var m;p=(sm_a-sm_b)/(sm_a+sm_b);q=((sm_a+sm_b)/2)*(1+(Math.pow(p,2)/4)+(Math.pow(p,4)/64));r=(-3*p/2)+(9*Math.pow(p,3)/16)+(-3*Math.pow(p,5)/32);l=(15*Math.pow(p,2)/16)+(-15*Math.pow(p,4)/32);n=(-35*Math.pow(p,3)/48)+(105*Math.pow(p,5)/256);o=(315*Math.pow(p,4)/512);m=q*(s+(r*Math.sin(2*s))+(l*Math.sin(4*s))+(n*Math.sin(6*s))+(o*Math.sin(8*s)));return m}function UTMCentralMeridian(e){var d;d=DegToRad(-183+(e*6));return d}function FootpointLatitude(s){var r,q,w,v,o,m,n;var p;n=(sm_a-sm_b)/(sm_a+sm_b);q=((sm_a+sm_b)/2)*(1+(Math.pow(n,2)/4)+(Math.pow(n,4)/64));r=s/q;w=(3*n/2)+(-27*Math.pow(n,3)/32)+(269*Math.pow(n,5)/512);v=(21*Math.pow(n,2)/16)+(-55*Math.pow(n,4)/32);o=(151*Math.pow(n,3)/96)+(-417*Math.pow(n,5)/128);m=(1097*Math.pow(n,4)/512);p=r+(w*Math.sin(2*r))+(v*Math.sin(4*r))+(o*Math.sin(6*r))+(m*Math.sin(8*r));return p}function MapLatLonToXY(A,M,l,G){var E,L,F,K,B,y;var C,x,H,z,I,J;var D;F=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);L=F*Math.pow(Math.cos(A),2);E=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+L));K=Math.tan(A);B=K*K;D=(B*B*B)-Math.pow(K,6);y=M-l;C=1-B+L;x=5-B+9*L+4*(L*L);H=5-18*B+(B*B)+14*L-58*B*L;z=61-58*B+(B*B)+270*L-330*B*L;I=61-479*B+179*(B*B)-(B*B*B);J=1385-3111*B+543*(B*B)-(B*B*B);G[0]=E*Math.cos(A)*y+(E/6*Math.pow(Math.cos(A),3)*C*Math.pow(y,3))+(E/120*Math.pow(Math.cos(A),5)*H*Math.pow(y,5))+(E/5040*Math.pow(Math.cos(A),7)*I*Math.pow(y,7));G[1]=ArcLengthOfMeridian(A)+(K/2*E*Math.pow(Math.cos(A),2)*Math.pow(y,2))+(K/24*E*Math.pow(Math.cos(A),4)*x*Math.pow(y,4))+(K/720*E*Math.pow(Math.cos(A),6)*z*Math.pow(y,6))+(K/40320*E*Math.pow(Math.cos(A),8)*J*Math.pow(y,8));return}function MapXYToLatLon(P,Q,ag,ah){var af,S,ab,N,X,U,Z,V,ai;var W,O,ae,K,ad,Y,ac,T;var M,J,y,x,aa,L,R;af=FootpointLatitude(Q);X=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);ai=Math.cos(af);N=X*Math.pow(ai,2);S=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+N));ab=S;U=Math.tan(af);Z=U*U;V=Z*Z;W=1/(ab*ai);ab*=S;O=U/(2*ab);ab*=S;ae=1/(6*ab*ai);ab*=S;K=U/(24*ab);ab*=S;ad=1/(120*ab*ai);ab*=S;Y=U/(720*ab);ab*=S;ac=1/(5040*ab*ai);ab*=S;T=U/(40320*ab);M=-1-N;J=-1-2*Z-N;y=5+3*Z+6*N-6*Z*N-3*(N*N)-9*Z*(N*N);x=5+28*Z+24*V+6*N+8*Z*N;aa=-61-90*Z-45*V-107*N+162*Z*N;L=-61-662*Z-1320*V-720*(V*Z);R=1385+3633*Z+4095*V+1575*(V*Z);ah[0]=af+O*M*(P*P)+K*y*Math.pow(P,4)+Y*aa*Math.pow(P,6)+T*R*Math.pow(P,8);ah[1]=ag+W*P+ae*J*Math.pow(P,3)+ad*x*Math.pow(P,5)+ac*L*Math.pow(P,7);return}function LatLonToUTMXY(g,f,k,h){MapLatLonToXY(g,f,UTMCentralMeridian(k),h);h[0]=h[0]*UTMScaleFactor+500000;h[1]=h[1]*UTMScaleFactor;if(h[1]<0){h[1]=h[1]+10000000}return k}function UTMXYToLatLon(o,h,n,k,l){var m;o-=500000;o/=UTMScaleFactor;if(k){h-=10000000}h/=UTMScaleFactor;m=UTMCentralMeridian(n);MapXYToLatLon(o,h,m,l);return}function convertToUTM(){var g=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}var f=parseFloat(this.lng);if((f<-180)||(180<=f)){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 e=parseFloat(this.lat);if((e<-90)||(90<e)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=Math.floor((f+180)/6)+1;zone=LatLonToUTMXY(DegToRad(e),DegToRad(f),zone,g);return new UTMRef(g[0],g[1],zone,e<0)}function convertToUTM32(e,f){var g=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,g);return new UTMRef(g[0],g[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(v,q,r,o){if(v=="latlng"){var w=new LatLng(r,q);var p=w.toUTM32();q=p.easting;r=p.northing}var s=new Array(16);s.c208=new Array(430000,6055000,747000,6440000);s.c752=new Array(239444,6190000,1550556,7810000);s.c578=new Array(142380,6470000,1487619,8100000);s.c528=new Array(100000,5631904,387000,5988095);s.c056=new Array(41000,5448571,325000,5791429);s.c280=new Array(280000,5260000,930000,6150000);s.c040=new Array(540000,4984444,1120000,5695556);s.c348=new Array(1040000,4996667,1520000,5613333);s.c616=new Array(840000,5432414,1580000,6287586);s.c203=new Array(720000,5249746,1220000,5880254);s.c703=new Array(1070000,5211842,1480000,5738158);s.c380=new Array(300000,4080000,1340000,5320000);s.c250=new Array(-550000,4517647,580000,5882353);s.c191=new Array(850000,4706733,1300000,5253267);s.c300=new Array(1420000,3843636,2360000,5016364);s.c724=new Array(-1255859,3787594,95393,5298646);s.c756=new Array(265000,4920000,625000,5540000);var h=document.getElementById("houseMap_"+o);var n=document.getElementById("marker_"+o);geomap_coordinates=s[h.alt];geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]);geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]);geocodes_per_pixel_width=(geomap_width/h.width);geocodes_per_pixel_height=(geomap_height/h.height);if((q>855464&&q<897022)&&(r>6104899&&r<6152359)){leftmarker=((q-geomap_coordinates[0])/geocodes_per_pixel_width)-55+"px";topmarker=((geomap_coordinates[3]-r)/geocodes_per_pixel_height)-84+"px"}else{if((q<-1700000&&q>-2200000)&&(r>3100000&&r<3600000)){leftmarker=((q-geomap_coordinates[0])/geocodes_per_pixel_width)+67+"px";topmarker=((geomap_coordinates[3]-r)/geocodes_per_pixel_height)-47+"px"}else{leftmarker=((q-geomap_coordinates[0])/geocodes_per_pixel_width)-4+"px";topmarker=((geomap_coordinates[3]-r)/geocodes_per_pixel_height)-11+"px"}}n.style.left=leftmarker;n.style.top=topmarker;n.style.visibility="visible"}function isElementInArray(g,e){for(var f=0;f<g.length;f++){if(g[f]==e){return true}}return false}function convertDate_dd_mm_yyyyOryyyy_mm_dd(e,f){var g=e.split(f);if(g.length=3){return g[2]+"-"+g[1]+"-"+g[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(b){if(b){return b}return""}function EOSDateFormat(b){dateArray=b.split("-");if(dateArray.length<3){return b}return dateArray[2]+"-"+dateArray[1]+"-"+dateArray[0]}function EOSProfiling(x){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var N=EOSParam(x.shop_id);var A=EOSParam(x.newsletter_flag);var O=EOSParam(x.catalogorder_flag);var J=EOSParam(x.catalogorder_name);var C=EOSParam(x.product_recommendation);var L=EOSParam(x.user_searchkeywords);var D=EOSParam(x.order_article);var G=EOSParam(x.customer_zip);var F=EOSParam(x.product_onsale);var B=EOSParam(x.product_id);var z=EOSParam(x.wishlist_article);var H=EOSDateFormat(EOSParam(x.travel_start_date));var I=EOSDateFormat(EOSParam(x.travel_end_date));var y=EOSParam(x.travel_kids);var M=EOSParam(x.travel_adults);var E=EOSParam(x.travel_hotel_category);var K="https://ads.heias.com/x/heias.ret.px.fr/?PX=HT|"+HEIAS_T+"|n|5723|cus||pb|1|customer_zip|"+G+"|order_article|"+D+"|shop_id|"+N+"|newsletter_flag|"+A+"|catalogorder_flag|"+O+"|catalogorder_name|"+J+"|product_recommendation|"+C+"|user_searchkeywords|"+L+"|product_onsale|"+F+"|product_id|"+B+"|wishlist_article|"+z+"|travel_start_date|"+H+"|travel_end_date|"+I+"|travel_kids|"+y+"|travel_adults|"+M+"|travel_hotel_category|"+E+"";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="'+K+'" allowtransparency="true" framespacing="0" frameborder="no" scrolling="no" width="1" height="1"></iframe></div>')}function EOSCheckOut(s){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var p=EOSParam(s.order_article);var B=EOSParam(s.order_id);var y=EOSParam(s.order_total);var q=EOSParam(s.order_payment_method);var v=EOSParam(s.customer_status);var x=EOSParam(s.customer_zip);var A=EOSDateFormat(EOSParam(s.travel_start_date));var C=EOSDateFormat(EOSParam(s.travel_end_date));var r=EOSParam(s.travel_kids);var z=EOSParam(s.travel_adults);var w=EOSParam(s.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|"+p+"|order_payment_method|"+q+"|order_id|"+B+"|order_total|"+y+"|customer_status|"+v+"|customer_zip|"+x+"|travel_start_date|"+A+"|travel_end_date|"+C+"|travel_kids|"+r+"|travel_adults|"+z+"|travel_hotel_category|"+w+'"><\/script>')}function generateAreaOptions(g){var e=document.getElementById("search").R;e.options.length=1;var f=new Array();f["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";f["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";f["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";f["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";f["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=f[g].substring(1).split("^");for(i=0;i<optionlist.length;i++){valueset=optionlist[i].split("|");e.options[i+1]=new Option(valueset[0],valueset[1],true,false)}}function nmtrack(){function I(a,d,k){var f=new Array();if(d==null){d=document}if(k==null){k="*"}var g=d.getElementsByTagName(k);var h=g.length;var b=new RegExp("(^|\\s)"+a+"(\\s|$)");for(H=0,j=0;H<h;H++){if(b.test(g[H].className)){f[j]=g[H];j++}}return f}function S(b){if(!b){return""}var a="";for(var d=0;d<b.childNodes.length;d++){switch(b.childNodes.item(d).nodeType){case 1:a+=S(b.childNodes.item(d));break;case 3:a+=b.childNodes.item(d).nodeValue;break}}return a}function aa(a){return a.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var V="novasol";var W="";if(W==""){var T=[];var L=document.getElementById("navPathArea");var ad=I("currentLocation");if(L!=null){var e=L.getElementsByTagName("a");for(var H=0;H<e.length;H++){T[T.length]=e[H].innerHTML}var P=L.getElementsByTagName("span");T[T.length]=P[P.length-1].innerHTML}else{if(ad.length>0){T=S(T[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){T[T.length]="Home";T[T.length]="Booking";var ag=I("BOKSTPsteptable");var O=ag[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;T[T.length]="Step "+O}}}var Z=[];for(var H=1;H<T.length;H++){Z[Z.length]=aa(T[H])}W=Z.join(" > ")}var N=new String(window.document.location);var ac=N;try{var ab=new String(top.document.location);ac=ab.indexOf("nm_extag")!=-1?ab:ac}catch(Y){}if(W==""){W=document.title}var af="";var U=document.cookie;if(U.indexOf("nm_exref")!=-1){var J=U.split(";");for(H=0;H<U.length;H++){var M=new String(J[H]);var R=M.indexOf("nm_exref");if(R!=-1){af=new String(M.substr(R+9))}}document.cookie="nm_exref="}if(af==""){af=document.referrer;try{af=top.document.referrer}catch(Y){}}var Q=ac.indexOf("nm_extag=");var X="";if(Q!=-1){Q+=9;var ae=ac.indexOf("&",Q);X=ae==-1?ac.substr(Q):ac.substr(Q,ae-Q);X=encodeURIComponent(X)}W=encodeURIComponent(W);N=encodeURIComponent(N);af=encodeURIComponent(af);X=encodeURIComponent(X);if(W.length>250){W=W.slice(0,246)+"..."}if(N.length>800){N=N.slice(0,796)+"..."}if(af.length>800){af=af.slice(0,796)+"..."}var K=document.createElement("SCRIPT");K.language="javascript";K.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+V+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+N+"&cid="+V+(af.length>0?("&ref="+af):"")+"&ti1="+W+"&ext="+X;document.getElementsByTagName("body")[0].appendChild(K)}catch(Y){}}function googleAreaMapInitialize(h){var g=new Array();g["191"]=new Array(45.1667,15.5,5);g["250"]=new Array(46,2,5);g["300"]=new Array(39,22,5);g["380"]=new Array(42.8333,12.8333,5);g["724"]=new Array(40,-4,5);var k=g[h];if(k){var f=new GMap2(document.getElementById("map_canvas"));f.setCenter(new GLatLng(k[0],k[1]),k[2]);f.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(d){var e;if(encodeURIComponent){e=encodeURIComponent(d)}else{e=escape(d)}return e};