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(h,f,g,k){jQuery.fn.colorbox({href:h,innerWidth:g,innerHeight:k,iframe:true})}function SetIndex(g){var f;if(navigator.appName=="Netscape"){for(var e=0;e<document.getElementById("search").R.options.length;e++){if(g==document.getElementById("search").R.options[e].value){f=e}}document.getElementById("search").R.options[f].selected=true}else{document.getElementById("search").R.value=g}}function SetArea(g){var f;if(navigator.appName=="Netscape"){for(var e=0;e<document.getElementById("searchalpine").R.options.length;e++){if(g==document.getElementById("searchalpine").R.options[e].value){f=e}}document.getElementById("searchalpine").R.options[f].selected=true}else{document.getElementById("searchalpine").R.value=g}}function SetIndexRS(g){var f;if(navigator.appName=="Netscape"){for(var e=0;e<document.getElementById("search").RS.options.length;e++){if(g==document.getElementById("search").RS.options[e].value){f=e}}document.getElementById("search").RS.options[f].selected=true}else{document.getElementById("search").RS.value=g}}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(p,v,o,q){var s=0;var n=1;var x=null;for(var r=s;r<p.elements.length-n;r++){if(p.elements[r].type=="hidden"){continue}if(p.elements[r].checked){x=p.elements[r].value;var w=r;break}else{x=null}}for(var r=w;r<p.elements.length-n;r++){if(p.elements[r+1].type=="checkbox"){if(!p.elements[r+1].checked){slutDatoStr=p.elements[r+1].value;break}}else{slutDatoStr=p.elements[r+1].value;break}}if(x==null){var y="/CUE/380.nsf/"+q+"/house?opendocument&H="+v+"&S="+p.season.value+"&PE="+p.people.value+"&A="+o;if(q=="x"){subwin(y,v,"750","440")}else{location.href=y}}else{house(v,"-1",x,slutDatoStr,p.people.value,p.season.value,o,q)}}function house(s,r,m,v,o,n,p,q){var w="http://www.cuendet.it/appserver/ConsumerWebsite/ShowHouse?L=380&COM=CUE&H="+s+"&NA="+o+"&SD="+m+"&ED="+v+"&S="+n+"&A="+p;if(q=="x"){w=w+"&_xview";subwin(w,s,"760","440")}else{location.href=w}}function housealpine(s,r,n,v,m,o,p,q){var w="/CUE/380.nsf/"+q+"/housealpine?opendocument&H="+s+"&P="+r+"&PE="+m+"&SD="+n+"&ED="+v+"&S="+o+"&A="+p;if(q=="x"){subwin(w,s,"760","540")}else{location.href=w}}function danhouse(s,r,m,v,o,n,p,q){var w="/appserver/ConsumerWebsite/ShowHouse?L=380&COM=CUE&H="+s+"&NA="+o+"&SD="+m+"&ED="+v+"&S="+n+"&A="+p;if(q=="x"){w=w+"&_xview";subwin(w,s,"760","440")}else{location.href=w}}function checkEmail(f){var k="";if(f==""){k="Non hai inserito l'indirizzo e-mail"}var g=/^.+@.+..{2,3}$/;if(!(g.test(f))){k="Si prega di inserire un valido indirizzo e-mail per entrare"}else{var h=/[()<>,;:\"[]]/;if(f.match(h)){k="L'indirizzo di posta elettronica contiene caratteri non validi"}}return k}function required(d){if(d.FN.value==""){alert("Si prega di inserire un nome");d.FN.focus();return false}if(d.S.value==""){alert("Si prega di inserire l'indirizzo");d.S.focus();return false}if(d.STN.value==""){alert("Si prega di inserire un numero civico");d.STN.focus();return false}if(d.Z.value==""){alert("Si prega di inserire un numero di lotto");d.Z.focus();return false}if(d.ZC.value==""){alert("Si prega di inserire la città");d.ZC.focus();return false}if(d.PH.value==""){alert("Inserisci il tuo numero di telefono");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(w,s,q,e,r,A,v,y,x,z,C){if(s==1){if(w.FN.value==""){alert("Si prega di inserire un nome");w.FN.focus();return false}}if(q==1){if(w.SN.value==""){alert("Si prega di inserire un nome");w.SN.focus();return false}}if(e==1){if(w.S.value==""){alert("Si prega di inserire l'indirizzo");w.S.focus();return false}}if(C==1){if(w.STN.value==""){alert("Si prega di inserire un numero civico");w.STN.focus();return false}}if(r==1){if(w.Z.value==""){alert("Si prega di inserire un numero di lotto");w.Z.focus();return false}}if(A==1){if(w.ZC.value==""){alert("Si prega di inserire la città");w.ZC.focus();return false}}if(v==1){if(w.CO[w.CO.selectedIndex].value==""){alert("Si prega di selezionare il vostro paese");w.CO.focus();return false}else{if(w.CO[w.CO.selectedIndex].value=="000"&&w.OC.value==""){alert("Inserisci il tuo paese");w.OC.focus();return false}}if(y==1){if(w.PH.value==""){alert("Inserisci il tuo numero di telefono");w.PH.focus();return false}}if(x==1){var B=checkEmail(w.E.value);if(!(B=="")){alert(B);w.E.focus();return false}else{return true}}}if(z==1){if(w.W[w.W.selectedIndex].value==""){alert("Seleziona come ci hai conosciuto");w.W.focus();return false}}return true}function SelectCountry(b){window.location.href="/CUE/380.nsf/0/"+b+"searchalpine?OpenDocument"}function chgs(g,f){var e=location.href;oldValue="S="+g;newValue="S="+f;if(e.indexOf(oldValue)>0){e=e.replace(oldValue,newValue)}else{e=location.href+"&"+newValue}location.replace(e)}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+="Inserisci il tuo corretto indirizzo e-mail"}if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("gb_form").gb_email.value)==false){b+="Inserisci il tuo corretto indirizzo e-mail"}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=380&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 q=new Object();var m=location.search.substring(1);var n=m.split("&");for(var p=0;p<n.length;p++){var l=n[p].indexOf("=");if(l==-1){continue}var k=n[p].substring(0,l);var o=n[p].substring(l+1);q[k]=unescape(o)}return q}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=&destination=https://safe.novasol.com/login/agency.html?F=A&A="+loginform.account.value}}else{setReply("loginreply","Password o numero agenzia errati","red")}},"text");return false}function agencySendPassword(){$.post("/appserver/BureauWebsite/SendPassword",{email:$("#email").val(),COM:"CUE",L:"380",account:$("#account").val()},function(b){if(b=="true"){setReply("sendEmailReply","L'e-mail è stata spedita.","green")}else{setReply("sendEmailReply","L'e-mail non è stata spedita. Prova ancora inserendo l' indirizzo e-mail corretto.","red")}},"text");return false}function setReply(g,e,f){$("#"+g).html(e);$("#"+g).css("color",f);$("#"+g).fadeIn("slow");setTimeout('$("#'+g+'").fadeOut("slow");',"5000")}function setOption(e,g){if(e){for(var f=0;f<e.length;f++){if(e[f].value==g){e[f].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("Seleziona la destinazione e il numero di persone.");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/380cueCON";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(k,f,h){findValue=document.forms[k].elements[f].value.split("-");myMonth=findValue[1];myYear=findValue[2];var g=k;if(g.search(/alpine/)>-1){subcal("/search.nsf/0/calendaralpine380?opendocument&dateField="+f+"&m="+myMonth+"&y="+myYear+"&formname="+k+"&country="+h)}else{subcal("/search.nsf/0/380cuecalendar?opendocument&dateField="+f+"&m="+myMonth+"&y="+myYear+"&formname="+k+"&country="+h)}}function getCookie(z,o,w){var v=" "+document.cookie;var p=v.split(";");var y="";var s;for(var q=0;q<p.length;q++){s=z+"=";if(s==p[q].substring(1,z.length+2)){y=p[q].substring(z.length+2,p[q].length)}}if(o.length>1){if(y.length>1){y=y+"&"+o}else{y=o}}var A=y.split("&");for(var r=0;r<A.length;r++){if(A[r].indexOf("=")>0){var x=A[r].split("=");w[x[0]]=x[1]}}}function setCookie(v,o,p){var q="";var e=new Array();getCookie(v,o,e);for(key in validParametersArray){if(e[validParametersArray[key]]){q=q+validParametersArray[key]+"="+e[validParametersArray[key]]+"&"}}var w=new Date();var r="";w.setTime(w.getTime()+p*60*60*1000);var s=document.domain.split(".");if(s.length>1){r=s[s.length-2]+"."+s[s.length-1]}var n=v+"="+q+((w)?"; expires="+w.toGMTString():"")+"; path=/; domain="+r;document.cookie=n}function deleteCookie(e){var d=new Date();d.setTime(d.getTime()-1);document.cookie=e+"=;expires="+d.toGMTString()}function go2house(h,f){if((h.length==6&&f=="NOV")||(h.length>4&&h.length<7&&f=="DAN")){var g="/house.nsf/0/380"+f+"?opendocument&H="+h+"&S=2010";if(cookielist.A){g=g+"&A="+cookielist.A}location.href=g}else{if(h.length==6&&f=="CUE"){var g="/appserver/ConsumerWebsite/ShowHouse?L=380&THEME=CON&COM="+f+"&H="+h;if(cookielist.A){g=g+"&A="+cookielist.A}location.href=g}else{var k="Inserisci il codice alloggio NOVASOL di 6 caratteri (es. EBL102)";alert(k)}}}function go2result(h){var n="";var k=document.getElementsByName("HQ");for(var l=0;l<k.length;l++){if(k[l].value){if(k[l].value.length==6){n=n+"^"+k[l].value}else{n="";break}}}if(n.length>6){n=n.substring(1,n.length)}if(!n){var m="Inserisci il codice alloggio NOVASOL di 6 caratteri (es. EBL102)";alert(m)}else{var o="/appserver/ConsumerWebsite/HouseListlist380cue?opendocument";o=o+"&SD="+h.SD.value;o=o+"&ED="+h.ED.value;o=o+"&HQ="+n;o=o+"&RTYPE=HOUSELIST";if(cookielist.A){o=o+"&A="+cookielist.A}location.href=o}}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=380&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 g=location.search;if(g.length>1){var m=new Array();var k=g.substring(1,g.length).split("&");for(var l=0;l<k.length;l++){if(k[l].indexOf("=")>0){var h=k[l].split("=");m[h[0]]=h[1]}}for(element in m){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&m[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(m[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(m[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(m[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(h,k,g,f){this.easting=h;this.northing=k;this.southhemi=f;this.zone=g;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(p){var o,n,r,q,w,s,v;var m;v=(sm_a-sm_b)/(sm_a+sm_b);n=((sm_a+sm_b)/2)*(1+(Math.pow(v,2)/4)+(Math.pow(v,4)/64));o=p/n;r=(3*v/2)+(-27*Math.pow(v,3)/32)+(269*Math.pow(v,5)/512);q=(21*Math.pow(v,2)/16)+(-55*Math.pow(v,4)/32);w=(151*Math.pow(v,3)/96)+(-417*Math.pow(v,5)/128);s=(1097*Math.pow(v,4)/512);m=o+(r*Math.sin(2*o))+(q*Math.sin(4*o))+(w*Math.sin(6*o))+(s*Math.sin(8*o));return m}function MapLatLonToXY(K,G,H,A){var M,F,l,E,y,x;var L,I,B,J,C,D;var z;l=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);F=l*Math.pow(Math.cos(K),2);M=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+F));E=Math.tan(K);y=E*E;z=(y*y*y)-Math.pow(E,6);x=G-H;L=1-y+F;I=5-y+9*F+4*(F*F);B=5-18*y+(y*y)+14*F-58*y*F;J=61-58*y+(y*y)+270*F-330*y*F;C=61-479*y+179*(y*y)-(y*y*y);D=1385-3111*y+543*(y*y)-(y*y*y);A[0]=M*Math.cos(K)*x+(M/6*Math.pow(Math.cos(K),3)*L*Math.pow(x,3))+(M/120*Math.pow(Math.cos(K),5)*B*Math.pow(x,5))+(M/5040*Math.pow(Math.cos(K),7)*C*Math.pow(x,7));A[1]=ArcLengthOfMeridian(K)+(E/2*M*Math.pow(Math.cos(K),2)*Math.pow(x,2))+(E/24*M*Math.pow(Math.cos(K),4)*I*Math.pow(x,4))+(E/720*M*Math.pow(Math.cos(K),6)*J*Math.pow(x,6))+(E/40320*M*Math.pow(Math.cos(K),8)*D*Math.pow(x,8));return}function MapXYToLatLon(K,af,X,Y){var W,ag,S,ad,O,ah,Q,ai,Z;var N,ae,V,ab,U,P,T,M;var ac,J,aa,x,R,y,L;W=FootpointLatitude(af);O=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);Z=Math.cos(W);ad=O*Math.pow(Z,2);ag=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+ad));S=ag;ah=Math.tan(W);Q=ah*ah;ai=Q*Q;N=1/(S*Z);S*=ag;ae=ah/(2*S);S*=ag;V=1/(6*S*Z);S*=ag;ab=ah/(24*S);S*=ag;U=1/(120*S*Z);S*=ag;P=ah/(720*S);S*=ag;T=1/(5040*S*Z);S*=ag;M=ah/(40320*S);ac=-1-ad;J=-1-2*Q-ad;aa=5+3*Q+6*ad-6*Q*ad-3*(ad*ad)-9*Q*(ad*ad);x=5+28*Q+24*ai+6*ad+8*Q*ad;R=-61-90*Q-45*ai-107*ad+162*Q*ad;y=-61-662*Q-1320*ai-720*(ai*Q);L=1385+3633*Q+4095*ai+1575*(ai*Q);Y[0]=W+ae*ac*(K*K)+ab*aa*Math.pow(K,4)+P*R*Math.pow(K,6)+M*L*Math.pow(K,8);Y[1]=X+N*K+V*J*Math.pow(K,3)+U*x*Math.pow(K,5)+T*y*Math.pow(K,7);return}function LatLonToUTMXY(k,h,g,f){MapLatLonToXY(k,h,UTMCentralMeridian(g),f);f[0]=f[0]*UTMScaleFactor+500000;f[1]=f[1]*UTMScaleFactor;if(f[1]<0){f[1]=f[1]+10000000}return g}function UTMXYToLatLon(k,l,h,m,n){var o;k-=500000;k/=UTMScaleFactor;if(m){l-=10000000}l/=UTMScaleFactor;o=UTMCentralMeridian(h);MapXYToLatLon(k,l,o,n);return}function convertToUTM(){var e=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}var g=parseFloat(this.lng);if((g<-180)||(180<=g)){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 f=parseFloat(this.lat);if((f<-90)||(90<f)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=Math.floor((g+180)/6)+1;zone=LatLonToUTMXY(DegToRad(f),DegToRad(g),zone,e);return new UTMRef(e[0],e[1],zone,f<0)}function convertToUTM32(f,g){var e=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,e);return new UTMRef(e[0],e[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(q,n,o,w){if(q=="latlng"){var r=new LatLng(o,n);var h=r.toUTM32();n=h.easting;o=h.northing}var p=new Array(16);p.c208=new Array(430000,6055000,747000,6440000);p.c752=new Array(239444,6190000,1550556,7810000);p.c578=new Array(142380,6470000,1487619,8100000);p.c528=new Array(100000,5631904,387000,5988095);p.c056=new Array(41000,5448571,325000,5791429);p.c280=new Array(280000,5260000,930000,6150000);p.c040=new Array(540000,4984444,1120000,5695556);p.c348=new Array(1040000,4996667,1520000,5613333);p.c616=new Array(840000,5432414,1580000,6287586);p.c203=new Array(720000,5249746,1220000,5880254);p.c703=new Array(1070000,5211842,1480000,5738158);p.c380=new Array(300000,4080000,1340000,5320000);p.c250=new Array(-550000,4517647,580000,5882353);p.c191=new Array(850000,4706733,1300000,5253267);p.c300=new Array(1420000,3843636,2360000,5016364);p.c724=new Array(-1255859,3787594,95393,5298646);p.c756=new Array(265000,4920000,625000,5540000);var s=document.getElementById("houseMap_"+w);var v=document.getElementById("marker_"+w);geomap_coordinates=p[s.alt];geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]);geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]);geocodes_per_pixel_width=(geomap_width/s.width);geocodes_per_pixel_height=(geomap_height/s.height);if((n>855464&&n<897022)&&(o>6104899&&o<6152359)){leftmarker=((n-geomap_coordinates[0])/geocodes_per_pixel_width)-55+"px";topmarker=((geomap_coordinates[3]-o)/geocodes_per_pixel_height)-84+"px"}else{if((n<-1700000&&n>-2200000)&&(o>3100000&&o<3600000)){leftmarker=((n-geomap_coordinates[0])/geocodes_per_pixel_width)+67+"px";topmarker=((geomap_coordinates[3]-o)/geocodes_per_pixel_height)-47+"px"}else{leftmarker=((n-geomap_coordinates[0])/geocodes_per_pixel_width)-4+"px";topmarker=((geomap_coordinates[3]-o)/geocodes_per_pixel_height)-11+"px"}}v.style.left=leftmarker;v.style.top=topmarker;v.style.visibility="visible"}function isElementInArray(e,f){for(var g=0;g<e.length;g++){if(e[g]==f){return true}}return false}function convertDate_dd_mm_yyyyOryyyy_mm_dd(f,g){var e=f.split(g);if(e.length=3){return e[2]+"-"+e[1]+"-"+e[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(A){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var N=EOSParam(A.shop_id);var D=EOSParam(A.newsletter_flag);var O=EOSParam(A.catalogorder_flag);var z=EOSParam(A.catalogorder_name);var F=EOSParam(A.product_recommendation);var L=EOSParam(A.user_searchkeywords);var G=EOSParam(A.order_article);var I=EOSParam(A.customer_zip);var x=EOSParam(A.product_onsale);var E=EOSParam(A.product_id);var C=EOSParam(A.wishlist_article);var y=EOSDateFormat(EOSParam(A.travel_start_date));var J=EOSDateFormat(EOSParam(A.travel_end_date));var B=EOSParam(A.travel_kids);var M=EOSParam(A.travel_adults);var H=EOSParam(A.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|"+I+"|order_article|"+G+"|shop_id|"+N+"|newsletter_flag|"+D+"|catalogorder_flag|"+O+"|catalogorder_name|"+z+"|product_recommendation|"+F+"|user_searchkeywords|"+L+"|product_onsale|"+x+"|product_id|"+E+"|wishlist_article|"+C+"|travel_start_date|"+y+"|travel_end_date|"+J+"|travel_kids|"+B+"|travel_adults|"+M+"|travel_hotel_category|"+H+"";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(x){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var s=EOSParam(x.order_article);var C=EOSParam(x.order_id);var p=EOSParam(x.order_total);var v=EOSParam(x.order_payment_method);var y=EOSParam(x.customer_status);var A=EOSParam(x.customer_zip);var q=EOSDateFormat(EOSParam(x.travel_start_date));var r=EOSDateFormat(EOSParam(x.travel_end_date));var w=EOSParam(x.travel_kids);var B=EOSParam(x.travel_adults);var z=EOSParam(x.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|"+s+"|order_payment_method|"+v+"|order_id|"+C+"|order_total|"+p+"|customer_status|"+y+"|customer_zip|"+A+"|travel_start_date|"+q+"|travel_end_date|"+r+"|travel_kids|"+w+"|travel_adults|"+B+"|travel_hotel_category|"+z+'"><\/script>')}function generateAreaOptions(e){var f=document.getElementById("search").R;f.options.length=1;var g=new Array();g["380"]="^BASILICATA|IBASI^- Costa Ionica|IBJ^- Costa Tirrenica|IBT^COSTA ROMAGNOLA|IEMIL^- Emilia-Romagna campagna|IEC^- Costa Romagnola|IEK^FRIULI|IFRIA^- Friaul - countryside|IFC^- Friaul - Adria Küste|IFK^CALABRIA|IKALA^- Calabria|IKK^CAMPANIA|IKAMP^- Costiera Amalfitana|IKA^- Golfo del Cilento/Salerno|IKC^- Golfo di Gaeta e Baia Domizia|IKG^- Campania entroterra|IKL^- Penisola Sorrentina|IKS^LAZIO|ILATI^- Roma|IRO^- Latium landschaft|IRU^LIGURIA|ILIGU^- Liguria|ILL^MARCHE|IMARK^- Marche|IMM^NORDITALIENSKE SØER|INORD^- Lago di Garda|IVG^- Lago Maggiore|IVM^PUGLIA|IPUGL^- Puglia|ISA^SARDEGNA|ISARD^- Sardegna|ISD^SICILIA|ISIZI^- Sicilia|ISS^TOSCANA|ITOSC^- Arezzo/Cortona e dintorni|ITA^- Firenze|ITB^- Chianti|ITC^- Firenze e dintorni|ITF^- Grosseto e dintorni|ITG^- Lucca e dintorni|ITL^- San Gimignano e Volterra|ITN^- Pisa e dintorni|ITP^- Siena e dintorni|ITS^- Montecatini/Pistoia e dintorni|ITT^COSTA TOSCANA|ITOSK^- Isola d'Elba|ITE^- Riviera degli Etruschi|ITK^- Argentario/Maremma|ITM^- Versilia|ITV^UMBRIA|IUMBR^- Perugia e dintorni|IUP^- Spoleto e dintorni|IUS^- Lago Trasimeno|IUT^VENETO|IVE^- Campagna Veneta|IVC^- Costa Veneta|IVK^- Venezia|IVV";g["300"]="^Corfù|GCF^Chios|GCH^Cipro|GCY^Creta|GKR^Lesbos|GLE^GRECIA CONTINENTALE|GMAIN^- Atene|GAT^- Penisola Calcidica|GHA^- Peloponneso|GPE^CICLADI|KYKLA^- Kea|GKK^- Paros|GKP^- Syros|GKS^TESSAGLIA|THESS^- Pilion|GPI^- Tessaglia|GTH";g["250"]="^AQUITANIA|FAQUI^- Dordogna|FAD^- Gironda|FAG^- Landes|FAL^- Pirenei atlantici|FAP^- Lot e Garonna|FAT^ATLANTICO|FATLA^- Charente Maritime|FCH^- Vandea|FVE^BRETAGNA|FBR^- costa d'Armor|FBC^- Finistère|FBF^- Ille e Vilaine|FBI^- Loira Atlantica|FBL^- Morbihan|FBM^LOIRA CENTRALE|FCELO^- Centro|FEC^COSTA AZZURRA|FCOTE^- Alpi marittime|FCA^- Var|FCV^CORSICA|FKORS^- Corsica|FKO^LINGUADOCA|FLANG^- Aude|FLA^- Gard|FLG^- Hérault|FLH^- Lozère|FLL^- Pirenei orientali|FLP^NORMANDIA|FNORM^- Calvados|FNC^- Manica|FNM^- Orne|FNO^- Senna marittima|FNS^PROVENZA-DRÔME-ARDÈCHE|FPROV^- Alpi dell'alta Provenza|FPA^- Bocche del Rodano|FPB^- Drôme|FPD^- Vaucluse|FPV^- Ardèche|FRA^MIDI-PIRENEI|FPYRE^- Lot|FML";g["191"]="^DALMAZIA CENTRALE|DALMM^- Isola di Brac|CDB^- Islanda Hvar|CDH^- Isola di Vis|CDK^- Isola Ciovo|CDM1^- Isola Drvenik Veli|CDM2^- Isola Drvenik Mali|CDM3^- Makarska|CDM4^- Omis|CDM5^- Split|CDM6^- Trogir|CDM7^- Isola di Solta|CDO^DALMAZIA SETTENTRIONALE|DALMN^- Biograd|CDN1^- Nin|CDN2^- Starigrad Paklenica|CDN3^- Vir|CDN4^- Zara|CDN5^- Isola Dugi Otok|CDU1^- Isola Rivanj|CDU10^- Isola Ist|CDU2^- Isola Iz|CDU3^- Isola Molat|CDU4^- Isola Pasman|CDU5^- Isola Rava|CDU6^- Isola Ugljan|CDU8^- Drnis|CDV1^- Prvic|CDV10^- Isola di Zirje|CDV11^- Isola Kaprije|CDV2^- Isola Krapanj|CDV3^- Isola Murter|CDV4^- Primosten|CDV5^- Rogoznica|CDV6^- Sibenik|CDV7^- Vodice|CDV8^- Isola Zlarin|CDV9^DALMAZIA MERIDIONALE|DALMS^- Riviera di Dubrovnik|CDD^- Penisola di Peljesac|CDP^- Delta della Neretva|CDR^- Isola di Korcula|CDS^ISTRIA|ISTRI^- Premantura|CIA^- Banjole|CIB^- Porec|CIE1^- Vrsar|CIE2^- Fazana|CIF1^- Barbariga|CIF2^- Costa orientale|CIK^- Rabac|CIK1^- Labin|CIK2^- Krnica|CIK3^- Duga Uvala|CIK4^- Entroterra dell'Istria|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^GOLFO DEL QUARNARO|KVARN^- Gorski Kotar|CKB1^- Lika|CKB2^- Crikvenica|CKC^- Krk|CKK^- Isole di Cres|CKL1^- Isole di Losinj|CKL2^- Isola di Ilovik|CKL3^- Isola di Susak|CKL4^- Novi Vinodolski|CKN^- Opatija|CKO^- Pag|CKP^- Rab|CKR^- Senj e la costa|CKV^- Karlobag|CKV1^- Senj|CKV2";g["724"]="^ISOLE CANARIE|CANAR^- Fuerteventura|EFU^- Gran Canaria|EGR^- El Hierro|EHI^- Lanzarote|ELA^- La Palma|EPA^- Tenerife|ETE^Mallorca|EML^SPAGNA CONTINENTALE|ESPAN^- Costa del Sol/Andalusia|EAN^- Costa Blanca|EBL^- Costa Brava|ECB^- Costa Calida|ECC^- Costa Dorada|EDO";optionlist=g[e].substring(1).split("^");for(i=0;i<optionlist.length;i++){valueset=optionlist[i].split("|");f.options[i+1]=new Option(valueset[0],valueset[1],true,false)}}function nmtrack(){function I(f,h,d){var k=new Array();if(h==null){h=document}if(d==null){d="*"}var a=h.getElementsByTagName(d);var b=a.length;var g=new RegExp("(^|\\s)"+f+"(\\s|$)");for(H=0,j=0;H<b;H++){if(g.test(a[H].className)){k[j]=a[H];j++}}return k}function e(a){if(!a){return""}var d="";for(var b=0;b<a.childNodes.length;b++){switch(a.childNodes.item(b).nodeType){case 1:d+=e(a.childNodes.item(b));break;case 3:d+=a.childNodes.item(b).nodeValue;break}}return d}function T(a){return a.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var O="novasol";var P="";if(P==""){var N=[];var aa=document.getElementById("navPathArea");var W=I("currentLocation");if(aa!=null){var ag=aa.getElementsByTagName("a");for(var H=0;H<ag.length;H++){N[N.length]=ag[H].innerHTML}var ad=aa.getElementsByTagName("span");N[N.length]=ad[ad.length-1].innerHTML}else{if(W.length>0){N=e(N[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){N[N.length]="Home";N[N.length]="Booking";var Z=I("BOKSTPsteptable");var L=Z[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;N[N.length]="Step "+L}}}var S=[];for(var H=1;H<N.length;H++){S[S.length]=T(N[H])}P=S.join(" > ")}var ac=new String(window.document.location);var V=ac;try{var U=new String(top.document.location);V=U.indexOf("nm_extag")!=-1?U:V}catch(R){}if(P==""){P=document.title}var Y="";var af=document.cookie;if(af.indexOf("nm_exref")!=-1){var J=af.split(";");for(H=0;H<af.length;H++){var ab=new String(J[H]);var M=ab.indexOf("nm_exref");if(M!=-1){Y=new String(ab.substr(M+9))}}document.cookie="nm_exref="}if(Y==""){Y=document.referrer;try{Y=top.document.referrer}catch(R){}}var ae=V.indexOf("nm_extag=");var Q="";if(ae!=-1){ae+=9;var X=V.indexOf("&",ae);Q=X==-1?V.substr(ae):V.substr(ae,X-ae);Q=encodeURIComponent(Q)}P=encodeURIComponent(P);ac=encodeURIComponent(ac);Y=encodeURIComponent(Y);Q=encodeURIComponent(Q);if(P.length>250){P=P.slice(0,246)+"..."}if(ac.length>800){ac=ac.slice(0,796)+"..."}if(Y.length>800){Y=Y.slice(0,796)+"..."}var K=document.createElement("SCRIPT");K.language="javascript";K.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+O+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+ac+"&cid="+O+(Y.length>0?("&ref="+Y):"")+"&ti1="+P+"&ext="+Q;document.getElementsByTagName("body")[0].appendChild(K)}catch(R){}}function googleAreaMapInitialize(f){var k=new Array();k["191"]=new Array(45.1667,15.5,5);k["250"]=new Array(46,2,5);k["300"]=new Array(39,22,5);k["380"]=new Array(42.8333,12.8333,5);k["724"]=new Array(40,-4,5);var g=k[f];if(g){var h=new GMap2(document.getElementById("map_canvas"));h.setCenter(new GLatLng(g[0],g[1]),g[2]);h.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};