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(e,b,a,d){jQuery.fn.colorbox({href:e,innerWidth:a,innerHeight:d,iframe:true})}function SetIndex(a){var b;if(navigator.appName=="Netscape"){for(var d=0;d<document.getElementById("search").R.options.length;d++){if(a==document.getElementById("search").R.options[d].value){b=d}}document.getElementById("search").R.options[b].selected=true}else{document.getElementById("search").R.value=a}}function SetArea(a){var b;if(navigator.appName=="Netscape"){for(var d=0;d<document.getElementById("searchalpine").R.options.length;d++){if(a==document.getElementById("searchalpine").R.options[d].value){b=d}}document.getElementById("searchalpine").R.options[b].selected=true}else{document.getElementById("searchalpine").R.value=a}}function SetIndexRS(a){var b;if(navigator.appName=="Netscape"){for(var d=0;d<document.getElementById("search").RS.options.length;d++){if(a==document.getElementById("search").RS.options[d].value){b=d}}document.getElementById("search").RS.options[b].selected=true}else{document.getElementById("search").RS.value=a}}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(k,e,l,h){var f=0;var m=1;var b=null;for(var g=f;g<k.elements.length-m;g++){if(k.elements[g].type=="hidden"){continue}if(k.elements[g].checked){b=k.elements[g].value;var d=g;break}else{b=null}}for(var g=d;g<k.elements.length-m;g++){if(k.elements[g+1].type=="checkbox"){if(!k.elements[g+1].checked){slutDatoStr=k.elements[g+1].value;break}}else{slutDatoStr=k.elements[g+1].value;break}}if(b==null){var a="/CUE/380.nsf/"+h+"/house?opendocument&H="+e+"&S="+k.season.value+"&PE="+k.people.value+"&A="+l;if(h=="x"){subwin(a,e,"750","440")}else{location.href=a}}else{house(e,"-1",b,slutDatoStr,k.people.value,k.season.value,l,h)}}function house(l,a,g,k,e,f,d,b){var h="http://www.cuendet.it/appserver/ConsumerWebsite/ShowHouse?L=380&COM=CUE&H="+l+"&NA="+e+"&SD="+g+"&ED="+k+"&S="+f+"&A="+d;if(b=="x"){h=h+"&_xview";subwin(h,l,"760","440")}else{location.href=h}}function housealpine(l,a,f,k,g,e,d,b){var h="/CUE/380.nsf/"+b+"/housealpine?opendocument&H="+l+"&P="+a+"&PE="+g+"&SD="+f+"&ED="+k+"&S="+e+"&A="+d;if(b=="x"){subwin(h,l,"760","540")}else{location.href=h}}function danhouse(l,a,g,k,e,f,d,b){var h="/appserver/ConsumerWebsite/ShowHouse?L=380&COM=CUE&H="+l+"&NA="+e+"&SD="+g+"&ED="+k+"&S="+f+"&A="+d;if(b=="x"){h=h+"&_xview";subwin(h,l,"760","440")}else{location.href=h}}function checkEmail(b){var d="";if(b==""){d="Non hai inserito l'indirizzo e-mail"}var a=/^.+@.+..{2,3}$/;if(!(a.test(b))){d="Si prega di inserire un valido indirizzo e-mail per entrare"}else{var e=/[()<>,;:\"[]]/;if(b.match(e)){d="L'indirizzo di posta elettronica contiene caratteri non validi"}}return d}function required(b){if(b.FN.value==""){alert("Si prega di inserire un nome");b.FN.focus();return false}if(b.S.value==""){alert("Si prega di inserire l'indirizzo");b.S.focus();return false}if(b.STN.value==""){alert("Si prega di inserire un numero civico");b.STN.focus();return false}if(b.Z.value==""){alert("Si prega di inserire un numero di lotto");b.Z.focus();return false}if(b.ZC.value==""){alert("Si prega di inserire la città");b.ZC.focus();return false}if(b.PH.value==""){alert("Inserisci il tuo numero di telefono");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(b,p,g,h,f,l,d,o,m,a,k){if(p==1){if(b.FN.value==""){alert("Si prega di inserire un nome");b.FN.focus();return false}}if(g==1){if(b.SN.value==""){alert("Si prega di inserire un nome");b.SN.focus();return false}}if(h==1){if(b.S.value==""){alert("Si prega di inserire l'indirizzo");b.S.focus();return false}}if(k==1){if(b.STN.value==""){alert("Si prega di inserire un numero civico");b.STN.focus();return false}}if(f==1){if(b.Z.value==""){alert("Si prega di inserire un numero di lotto");b.Z.focus();return false}}if(l==1){if(b.ZC.value==""){alert("Si prega di inserire la città");b.ZC.focus();return false}}if(d==1){if(b.CO[b.CO.selectedIndex].value==""){alert("Si prega di selezionare il vostro paese");b.CO.focus();return false}else{if(b.CO[b.CO.selectedIndex].value=="000"&&b.OC.value==""){alert("Inserisci il tuo paese");b.OC.focus();return false}}if(o==1){if(b.PH.value==""){alert("Inserisci il tuo numero di telefono");b.PH.focus();return false}}if(m==1){var n=checkEmail(b.E.value);if(!(n=="")){alert(n);b.E.focus();return false}else{return true}}}if(a==1){if(b.W[b.W.selectedIndex].value==""){alert("Seleziona come ci hai conosciuto");b.W.focus();return false}}return true}function SelectCountry(a){window.location.href="/CUE/380.nsf/0/"+a+"searchalpine?OpenDocument"}function chgs(a,b){var d=location.href;oldValue="S="+a;newValue="S="+b;if(d.indexOf(oldValue)>0){d=d.replace(oldValue,newValue)}else{d=location.href+"&"+newValue}location.replace(d)}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+="Inserisci il tuo corretto indirizzo e-mail"}if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("gb_form").gb_email.value)==false){a+="Inserisci il tuo corretto indirizzo e-mail"}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=380&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 d=new Object();var h=location.search.substring(1);var g=h.split("&");for(var e=0;e<g.length;e++){var a=g[e].indexOf("=");if(a==-1){continue}var b=g[e].substring(0,a);var f=g[e].substring(a+1);d[b]=unescape(f)}return d}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=&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(a){if(a=="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(a,d,b){$("#"+a).html(d);$("#"+a).css("color",b);$("#"+a).fadeIn("slow");setTimeout('$("#'+a+'").fadeOut("slow");',"5000")}function setOption(d,a){if(d){for(var b=0;b<d.length;b++){if(d[b].value==a){d[b].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("Seleziona la destinazione e il numero di persone.");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/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(a){addWindow=window.open(a,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0");addWindow.focus()}function makeLink(d,b,e){findValue=document.forms[d].elements[b].value.split("-");myMonth=findValue[1];myYear=findValue[2];var a=d;if(a.search(/alpine/)>-1){subcal("/search.nsf/0/calendaralpine380?opendocument&dateField="+b+"&m="+myMonth+"&y="+myYear+"&formname="+d+"&country="+e)}else{subcal("/search.nsf/0/380cuecalendar?opendocument&dateField="+b+"&m="+myMonth+"&y="+myYear+"&formname="+d+"&country="+e)}}function getCookie(f,d,h){var l=" "+document.cookie;var b=l.split(";");var g="";var m;for(var n=0;n<b.length;n++){m=f+"=";if(m==b[n].substring(1,f.length+2)){g=b[n].substring(f.length+2,b[n].length)}}if(d.length>1){if(g.length>1){g=g+"&"+d}else{g=d}}var e=g.split("&");for(var a=0;a<e.length;a++){if(e[a].indexOf("=")>0){var k=e[a].split("=");h[k[0]]=k[1]}}}function setCookie(l,f,d){var b="";var h=new Array();getCookie(l,f,h);for(key in validParametersArray){if(h[validParametersArray[key]]){b=b+validParametersArray[key]+"="+h[validParametersArray[key]]+"&"}}var k=new Date();var a="";k.setTime(k.getTime()+d*60*60*1000);var m=document.domain.split(".");if(m.length>1){a=m[m.length-2]+"."+m[m.length-1]}var g=l+"="+b+((k)?"; expires="+k.toGMTString():"")+"; path=/; domain="+a;document.cookie=g}function deleteCookie(a){var b=new Date();b.setTime(b.getTime()-1);document.cookie=a+"=;expires="+b.toGMTString()}function go2house(e,b){if((e.length==6&&b=="NOV")||(e.length>4&&e.length<7&&b=="DAN")){var a="/house.nsf/0/380"+b+"?opendocument&H="+e+"&S=2010";if(cookielist.A){a=a+"&A="+cookielist.A}location.href=a}else{if(e.length==6&&b=="CUE"){var a="/appserver/ConsumerWebsite/ShowHouse?L=380&THEME=CON&COM="+b+"&H="+e;if(cookielist.A){a=a+"&A="+cookielist.A}location.href=a}else{var d="Inserisci il codice alloggio NOVASOL di 6 caratteri (es. EBL102)";alert(d)}}}function go2result(e){var g="";var d=document.getElementsByName("HQ");for(var b=0;b<d.length;b++){if(d[b].value){if(d[b].value.length==6){g=g+"^"+d[b].value}else{g="";break}}}if(g.length>6){g=g.substring(1,g.length)}if(!g){var a="Inserisci il codice alloggio NOVASOL di 6 caratteri (es. EBL102)";alert(a)}else{var f="/appserver/ConsumerWebsite/HouseListlist380cue?opendocument";f=f+"&SD="+e.SD.value;f=f+"&ED="+e.ED.value;f=f+"&HQ="+g;f=f+"&RTYPE=HOUSELIST";if(cookielist.A){f=f+"&A="+cookielist.A}location.href=f}}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=380&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 a=location.search;if(a.length>1){var b=new Array();var e=a.substring(1,a.length).split("&");for(var d=0;d<e.length;d++){if(e[d].indexOf("=")>0){var f=e[d].split("=");b[f[0]]=f[1]}}for(element in b){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&b[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(b[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(b[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(b[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(e,d,a,b){this.easting=e;this.northing=d;this.southhemi=b;this.zone=a;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(d){var e,f,a,b,h,l,k;var g;k=(sm_a-sm_b)/(sm_a+sm_b);f=((sm_a+sm_b)/2)*(1+(Math.pow(k,2)/4)+(Math.pow(k,4)/64));e=d/f;a=(3*k/2)+(-27*Math.pow(k,3)/32)+(269*Math.pow(k,5)/512);b=(21*Math.pow(k,2)/16)+(-55*Math.pow(k,4)/32);h=(151*Math.pow(k,3)/96)+(-417*Math.pow(k,5)/128);l=(1097*Math.pow(k,4)/512);g=e+(a*Math.sin(2*e))+(b*Math.sin(4*e))+(h*Math.sin(6*e))+(l*Math.sin(8*e));return g}function MapLatLonToXY(s,w,k,g){var n,q,b,e,f,r;var p,d,v,o,m,a;var h;b=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);q=b*Math.pow(Math.cos(s),2);n=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+q));e=Math.tan(s);f=e*e;h=(f*f*f)-Math.pow(e,6);r=w-k;p=1-f+q;d=5-f+9*q+4*(q*q);v=5-18*f+(f*f)+14*q-58*f*q;o=61-58*f+(f*f)+270*q-330*f*q;m=61-479*f+179*(f*f)-(f*f*f);a=1385-3111*f+543*(f*f)-(f*f*f);g[0]=n*Math.cos(s)*r+(n/6*Math.pow(Math.cos(s),3)*p*Math.pow(r,3))+(n/120*Math.pow(Math.cos(s),5)*v*Math.pow(r,5))+(n/5040*Math.pow(Math.cos(s),7)*m*Math.pow(r,7));g[1]=ArcLengthOfMeridian(s)+(e/2*n*Math.pow(Math.cos(s),2)*Math.pow(r,2))+(e/24*n*Math.pow(Math.cos(s),4)*d*Math.pow(r,4))+(e/720*n*Math.pow(Math.cos(s),6)*o*Math.pow(r,6))+(e/40320*n*Math.pow(Math.cos(s),8)*a*Math.pow(r,8));return}function MapXYToLatLon(H,e,o,n){var p,d,C,g,E,b,D,a,m;var F,f,A,k,B,s,h,q;var G,w,v,z,I,r,l;p=FootpointLatitude(e);E=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);m=Math.cos(p);g=E*Math.pow(m,2);d=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+g));C=d;b=Math.tan(p);D=b*b;a=D*D;F=1/(C*m);C*=d;f=b/(2*C);C*=d;A=1/(6*C*m);C*=d;k=b/(24*C);C*=d;B=1/(120*C*m);C*=d;s=b/(720*C);C*=d;h=1/(5040*C*m);C*=d;q=b/(40320*C);G=-1-g;w=-1-2*D-g;v=5+3*D+6*g-6*D*g-3*(g*g)-9*D*(g*g);z=5+28*D+24*a+6*g+8*D*g;I=-61-90*D-45*a-107*g+162*D*g;r=-61-662*D-1320*a-720*(a*D);l=1385+3633*D+4095*a+1575*(a*D);n[0]=p+f*G*(H*H)+k*v*Math.pow(H,4)+s*I*Math.pow(H,6)+q*l*Math.pow(H,8);n[1]=o+F*H+A*w*Math.pow(H,3)+B*z*Math.pow(H,5)+h*r*Math.pow(H,7);return}function LatLonToUTMXY(d,e,a,b){MapLatLonToXY(d,e,UTMCentralMeridian(a),b);b[0]=b[0]*UTMScaleFactor+500000;b[1]=b[1]*UTMScaleFactor;if(b[1]<0){b[1]=b[1]+10000000}return a}function UTMXYToLatLon(d,b,e,a,g){var f;d-=500000;d/=UTMScaleFactor;if(a){b-=10000000}b/=UTMScaleFactor;f=UTMCentralMeridian(e);MapXYToLatLon(d,b,f,g);return}function convertToUTM(){var d=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}var a=parseFloat(this.lng);if((a<-180)||(180<=a)){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 b=parseFloat(this.lat);if((b<-90)||(90<b)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=Math.floor((a+180)/6)+1;zone=LatLonToUTMXY(DegToRad(b),DegToRad(a),zone,d);return new UTMRef(d[0],d[1],zone,b<0)}function convertToUTM32(b,a){var d=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,d);return new UTMRef(d[0],d[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(b,f,e,k){if(b=="latlng"){var a=new LatLng(e,f);var g=a.toUTM32();f=g.easting;e=g.northing}var d=new Array(16);d.c208=new Array(430000,6055000,747000,6440000);d.c752=new Array(239444,6190000,1550556,7810000);d.c578=new Array(142380,6470000,1487619,8100000);d.c528=new Array(100000,5631904,387000,5988095);d.c056=new Array(41000,5448571,325000,5791429);d.c280=new Array(280000,5260000,930000,6150000);d.c040=new Array(540000,4984444,1120000,5695556);d.c348=new Array(1040000,4996667,1520000,5613333);d.c616=new Array(840000,5432414,1580000,6287586);d.c203=new Array(720000,5249746,1220000,5880254);d.c703=new Array(1070000,5211842,1480000,5738158);d.c380=new Array(300000,4080000,1340000,5320000);d.c250=new Array(-550000,4517647,580000,5882353);d.c191=new Array(850000,4706733,1300000,5253267);d.c300=new Array(1420000,3843636,2360000,5016364);d.c724=new Array(-1255859,3787594,95393,5298646);d.c756=new Array(265000,4920000,625000,5540000);var m=document.getElementById("houseMap_"+k);var l=document.getElementById("marker_"+k);geomap_coordinates=d[m.alt];geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]);geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]);geocodes_per_pixel_width=(geomap_width/m.width);geocodes_per_pixel_height=(geomap_height/m.height);if((f>855464&&f<897022)&&(e>6104899&&e<6152359)){leftmarker=((f-geomap_coordinates[0])/geocodes_per_pixel_width)-55+"px";topmarker=((geomap_coordinates[3]-e)/geocodes_per_pixel_height)-84+"px"}else{if((f<-1700000&&f>-2200000)&&(e>3100000&&e<3600000)){leftmarker=((f-geomap_coordinates[0])/geocodes_per_pixel_width)+67+"px";topmarker=((geomap_coordinates[3]-e)/geocodes_per_pixel_height)-47+"px"}else{leftmarker=((f-geomap_coordinates[0])/geocodes_per_pixel_width)-4+"px";topmarker=((geomap_coordinates[3]-e)/geocodes_per_pixel_height)-11+"px"}}l.style.left=leftmarker;l.style.top=topmarker;l.style.visibility="visible"}function isElementInArray(d,b){for(var a=0;a<d.length;a++){if(d[a]==b){return true}}return false}function convertDate_dd_mm_yyyyOryyyy_mm_dd(b,a){var d=b.split(a);if(d.length=3){return d[2]+"-"+d[1]+"-"+d[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(s){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var b=EOSParam(s.shop_id);var p=EOSParam(s.newsletter_flag);var a=EOSParam(s.catalogorder_flag);var o=EOSParam(s.catalogorder_name);var h=EOSParam(s.product_recommendation);var e=EOSParam(s.user_searchkeywords);var m=EOSParam(s.order_article);var w=EOSParam(s.customer_zip);var g=EOSParam(s.product_onsale);var v=EOSParam(s.product_id);var l=EOSParam(s.wishlist_article);var n=EOSDateFormat(EOSParam(s.travel_start_date));var r=EOSDateFormat(EOSParam(s.travel_end_date));var k=EOSParam(s.travel_kids);var d=EOSParam(s.travel_adults);var q=EOSParam(s.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|"+w+"|order_article|"+m+"|shop_id|"+b+"|newsletter_flag|"+p+"|catalogorder_flag|"+a+"|catalogorder_name|"+o+"|product_recommendation|"+h+"|user_searchkeywords|"+e+"|product_onsale|"+g+"|product_id|"+v+"|wishlist_article|"+l+"|travel_start_date|"+n+"|travel_end_date|"+r+"|travel_kids|"+k+"|travel_adults|"+d+"|travel_hotel_category|"+q+"";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(g){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var l=EOSParam(g.order_article);var h=EOSParam(g.order_id);var o=EOSParam(g.order_total);var k=EOSParam(g.order_payment_method);var f=EOSParam(g.customer_status);var d=EOSParam(g.customer_zip);var n=EOSDateFormat(EOSParam(g.travel_start_date));var e=EOSDateFormat(EOSParam(g.travel_end_date));var b=EOSParam(g.travel_kids);var m=EOSParam(g.travel_adults);var a=EOSParam(g.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|"+l+"|order_payment_method|"+k+"|order_id|"+h+"|order_total|"+o+"|customer_status|"+f+"|customer_zip|"+d+"|travel_start_date|"+n+"|travel_end_date|"+e+"|travel_kids|"+b+"|travel_adults|"+m+"|travel_hotel_category|"+a+'"><\/script>')}function generateAreaOptions(d){var b=document.getElementById("search").R;b.options.length=1;var a=new Array();a["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";a["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";a["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";a["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";a["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=a[d].substring(1).split("^");for(i=0;i<optionlist.length;i++){valueset=optionlist[i].split("|");b.options[i+1]=new Option(valueset[0],valueset[1],true,false)}}function nmtrack(){function x(I,e,J){var M=new Array();if(e==null){e=document}if(J==null){J="*"}var L=e.getElementsByTagName(J);var K=L.length;var H=new RegExp("(^|\\s)"+I+"(\\s|$)");for(y=0,j=0;y<K;y++){if(H.test(L[y].className)){M[j]=L[y];j++}}return M}function l(H){if(!H){return""}var I="";for(var e=0;e<H.childNodes.length;e++){switch(H.childNodes.item(e).nodeType){case 1:I+=l(H.childNodes.item(e));break;case 3:I+=H.childNodes.item(e).nodeValue;break}}return I}function q(e){return e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var s="novasol";var o="";if(o==""){var E=[];var k=document.getElementById("navPathArea");var f=x("currentLocation");if(k!=null){var B=k.getElementsByTagName("a");for(var y=0;y<B.length;y++){E[E.length]=B[y].innerHTML}var D=k.getElementsByTagName("span");E[E.length]=D[D.length-1].innerHTML}else{if(f.length>0){E=l(E[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){E[E.length]="Home";E[E.length]="Booking";var z=x("BOKSTPsteptable");var G=z[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;E[E.length]="Step "+G}}}var a=[];for(var y=1;y<E.length;y++){a[a.length]=q(E[y])}o=a.join(" > ")}var g=new String(window.document.location);var p=g;try{var m=new String(top.document.location);p=m.indexOf("nm_extag")!=-1?m:p}catch(h){}if(o==""){o=document.title}var F="";var r=document.cookie;if(r.indexOf("nm_exref")!=-1){var w=r.split(";");for(y=0;y<r.length;y++){var b=new String(w[y]);var A=b.indexOf("nm_exref");if(A!=-1){F=new String(b.substr(A+9))}}document.cookie="nm_exref="}if(F==""){F=document.referrer;try{F=top.document.referrer}catch(h){}}var C=p.indexOf("nm_extag=");var n="";if(C!=-1){C+=9;var d=p.indexOf("&",C);n=d==-1?p.substr(C):p.substr(C,d-C);n=encodeURIComponent(n)}o=encodeURIComponent(o);g=encodeURIComponent(g);F=encodeURIComponent(F);n=encodeURIComponent(n);if(o.length>250){o=o.slice(0,246)+"..."}if(g.length>800){g=g.slice(0,796)+"..."}if(F.length>800){F=F.slice(0,796)+"..."}var v=document.createElement("SCRIPT");v.language="javascript";v.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+s+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+g+"&cid="+s+(F.length>0?("&ref="+F):"")+"&ti1="+o+"&ext="+n;document.getElementsByTagName("body")[0].appendChild(v)}catch(h){}}function googleAreaMapInitialize(b){var d=new Array();d["191"]=new Array(45.1667,15.5,5);d["250"]=new Array(46,2,5);d["300"]=new Array(39,22,5);d["380"]=new Array(42.8333,12.8333,5);d["724"]=new Array(40,-4,5);var a=d[b];if(a){var e=new GMap2(document.getElementById("map_canvas"));e.setCenter(new GLatLng(a[0],a[1]),a[2]);e.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};
