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(d){var a;if(navigator.appName=="Netscape"){for(var b=0;b<document.getElementById("search").R.options.length;b++){if(d==document.getElementById("search").R.options[b].value){a=b}}document.getElementById("search").R.options[a].selected=true}else{document.getElementById("search").R.value=d}}function SetArea(d){var a;if(navigator.appName=="Netscape"){for(var b=0;b<document.getElementById("searchalpine").R.options.length;b++){if(d==document.getElementById("searchalpine").R.options[b].value){a=b}}document.getElementById("searchalpine").R.options[a].selected=true}else{document.getElementById("searchalpine").R.value=d}}function SetIndexRS(d){var a;if(navigator.appName=="Netscape"){for(var b=0;b<document.getElementById("search").RS.options.length;b++){if(d==document.getElementById("search").RS.options[b].value){a=b}}document.getElementById("search").RS.options[a].selected=true}else{document.getElementById("search").RS.value=d}}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}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(d,e,l,b,h,k,g,f){var a="http://www.cuendet.it/p/"+d+"?NA="+h+"&SD="+l+"&ED="+b+"&S="+k+"&A="+g;if(f=="x"){a=a+"&_xview";subwin(a,d,"760","440")}else{location.href=a}}function housealpine(d,e,k,b,l,h,g,f){var a="/CUE/380.nsf/"+f+"/housealpine?opendocument&H="+d+"&P="+e+"&PE="+l+"&SD="+k+"&ED="+b+"&S="+h+"&A="+g;if(f=="x"){subwin(a,d,"760","540")}else{location.href=a}}function danhouse(d,e,l,b,h,k,g,f){var a="/p/"+d+"?NA="+h+"&SD="+l+"&ED="+b+"&S="+k+"&A="+g;if(f=="x"){a=a+"&_xview";subwin(a,d,"760","440")}else{location.href=a}}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(f,m,b,p,k,d,l,g,h,a,n){if(m==1){if(f.FN.value==""){alert("Si prega di inserire un nome");f.FN.focus();return false}}if(b==1){if(f.SN.value==""){alert("Si prega di inserire un nome");f.SN.focus();return false}}if(p==1){if(f.S.value==""){alert("Si prega di inserire l'indirizzo");f.S.focus();return false}}if(n==1){if(f.STN.value==""){alert("Si prega di inserire un numero civico");f.STN.focus();return false}}if(k==1){if(f.Z.value==""){alert("Si prega di inserire un numero di lotto");f.Z.focus();return false}}if(d==1){if(f.ZC.value==""){alert("Si prega di inserire la città");f.ZC.focus();return false}}if(l==1){if(f.CO[f.CO.selectedIndex].value==""){alert("Si prega di selezionare il vostro paese");f.CO.focus();return false}else{if(f.CO[f.CO.selectedIndex].value=="000"&&f.OC.value==""){alert("Inserisci il tuo paese");f.OC.focus();return false}}if(g==1){if(f.PH.value==""){alert("Inserisci il tuo numero di telefono");f.PH.focus();return false}}if(h==1){var o=checkEmail(f.E.value);if(!(o=="")){alert(o);f.E.focus();return false}else{return true}}}if(a==1){if(f.W[f.W.selectedIndex].value==""){alert("Seleziona come ci hai conosciuto");f.W.focus();return false}}return true}function SelectCountry(a){window.location.href="/CUE/380.nsf/0/"+a+"searchalpine?OpenDocument"}function chgs(d,a){var b=location.href;oldValue="S="+d;newValue="S="+a;if(b.indexOf(oldValue)>0){b=b.replace(oldValue,newValue)}else{b=location.href+"&"+newValue}location.replace(b)}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="/p/"+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 b=new Object();var g=location.search.substring(1);var f=g.split("&");for(var d=0;d<f.length;d++){var h=f[d].indexOf("=");if(h==-1){continue}var a=f[d].substring(0,h);var e=f[d].substring(h+1);b[a]=unescape(e)}return b}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="+document.getElementById("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(d,b,a){$("#"+d).html(b);$("#"+d).css("color",a);$("#"+d).fadeIn("slow");setTimeout('$("#'+d+'").fadeOut("slow");',"5000")}function setOption(b,d){if(b){for(var a=0;a<b.length;a++){if(b[a].value==d){b[a].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}if(a.C.type=="select-one"){a.action="/r/"+a.C.options[a.C.options.selectedIndex].value}else{a.action="/r/"+a.C.value}a.submit()}else{if(a.id=="housesearch"){go2house(a.house.value,"CUE");return false}else{a.submit()}}}function doAdvSearch(){var a=document.getElementById("search");if(cookielist.A){if(a.A){a.A.value=cookielist.A}}if(cookielist.F){if(a.F){a.F.value=cookielist.F}}if(a.C.type=="select-one"){a.action="/s/"+a.C.options[a.C.options.selectedIndex].value+"?"}else{a.action="/s/"+a.C.value+"?"}a.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("/scalendaralpine380?opendocument&dateField="+b+"&m="+myMonth+"&y="+myYear+"&formname="+d+"&country="+e)}else{subcal("/s380cuecalendar?opendocument&dateField="+b+"&m="+myMonth+"&y="+myYear+"&formname="+d+"&country="+e)}}function getCookie(k,h,n){var a=" "+document.cookie;var g=a.split(";");var m="";var b;for(var d=0;d<g.length;d++){b=k+"=";if(b==g[d].substring(1,k.length+2)){m=g[d].substring(k.length+2,g[d].length)}}if(h.length>1){if(m.length>1){m=m+"&"+h}else{m=h}}var l=m.split("&");for(var f=0;f<l.length;f++){if(l[f].indexOf("=")>0){var e=l[f].split("=");n[e[0]]=e[1]}}}function setCookie(b,k,h){var g="";var m=new Array();getCookie(b,k,m);for(key in validParametersArray){if(m[validParametersArray[key]]){g=g+validParametersArray[key]+"="+m[validParametersArray[key]]+"&"}}var a=new Date();var f="";a.setTime(a.getTime()+h*60*60*1000);var d=document.domain.split(".");if(d.length>1){f=d[d.length-2]+"."+d[d.length-1]}var l=b+"="+g+((a)?"; expires="+a.toGMTString():"")+"; path=/; domain="+f;document.cookie=l}function setBasicCookie(k,g,h){var a=new Date();var f="";a.setTime(a.getTime()+h*60*60*1000);var d=document.domain.split(".");if(d.length>1){f=d[d.length-2]+"."+d[d.length-1]}var b=k+"="+g+((a)?"; expires="+a.toGMTString():"")+"; path=/; domain="+f;document.cookie=b}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="/p/"+e+"?S=2010";if(cookielist.A){a=a+"&A="+cookielist.A}location.href=a}else{if(e.length==6&&b=="CUE"){var a="/p/"+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(b){var e="";var a=document.getElementsByName("house");for(var g=0;g<a.length;g++){if(a[g].value){if(a[g].value.length==6){e=e+"^"+a[g].value}else{e="";break}}}if(e.length>6){e=e.substring(1,e.length)}if(!e){var f="Inserisci il codice alloggio NOVASOL di 6 caratteri (es. EBL102)";alert(f)}else{var d="/r/";d=d+"&SD="+b.SD.value;d=d+"&ED="+b.ED.value;d=d+"&HQ="+e;d=d+"&RTYPE=HOUSELIST";location.href=d}}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="/p/"+a+"?_xview";window.open(url,"","width=775,height=700,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no")}function setAdvSearchValues(){for(element in advcookielist){changevalue=true;collection=document.getElementsByName(element);if(collection.length>0){for(counter in validParametersArray){if(validParametersArray[counter]==element){changevalue=false}}if(changevalue){if(collection[0].type=="checkbox"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=advcookielist[element]}else{if(collection[0].type=="select-one"){setOption(collection[0],advcookielist[element])}}}}}}}function setFieldValues(){var e=location.search;if(e.length>1){var f=new Array();var b=e.substring(1,e.length).split("&");for(var a=0;a<b.length;a++){if(b[a].indexOf("=")>0){var d=b[a].split("=");f[d[0]]=d[1]}}for(element in f){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&f[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(f[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(f[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(f[element]))}}}}}}}}function setPSC(b,d){var a="";var e=d.split("&");for(input in e){valueset=e[input].split("=");if(valueset.length>1){a+="<input type='hidden' name='"+valueset[0]+"' value='"+valueset[1]+"' />"}else{if(valueset[0]){a+="<input type='hidden' name='"+e[input][0]+"' value='' />"}}}$("#"+b).html(a)}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(g){var h,k,e,f,a,d,b;var l;b=(sm_a-sm_b)/(sm_a+sm_b);k=((sm_a+sm_b)/2)*(1+(Math.pow(b,2)/4)+(Math.pow(b,4)/64));h=g/k;e=(3*b/2)+(-27*Math.pow(b,3)/32)+(269*Math.pow(b,5)/512);f=(21*Math.pow(b,2)/16)+(-55*Math.pow(b,4)/32);a=(151*Math.pow(b,3)/96)+(-417*Math.pow(b,5)/128);d=(1097*Math.pow(b,4)/512);l=h+(e*Math.sin(2*h))+(f*Math.sin(4*h))+(a*Math.sin(6*h))+(d*Math.sin(8*h));return l}function MapLatLonToXY(q,o,d,w){var p,a,r,s,n,g;var m,h,f,e,b,v;var k;r=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);a=r*Math.pow(Math.cos(q),2);p=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+a));s=Math.tan(q);n=s*s;k=(n*n*n)-Math.pow(s,6);g=o-d;m=1-n+a;h=5-n+9*a+4*(a*a);f=5-18*n+(n*n)+14*a-58*n*a;e=61-58*n+(n*n)+270*a-330*n*a;b=61-479*n+179*(n*n)-(n*n*n);v=1385-3111*n+543*(n*n)-(n*n*n);w[0]=p*Math.cos(q)*g+(p/6*Math.pow(Math.cos(q),3)*m*Math.pow(g,3))+(p/120*Math.pow(Math.cos(q),5)*f*Math.pow(g,5))+(p/5040*Math.pow(Math.cos(q),7)*b*Math.pow(g,7));w[1]=ArcLengthOfMeridian(q)+(s/2*p*Math.pow(Math.cos(q),2)*Math.pow(g,2))+(s/24*p*Math.pow(Math.cos(q),4)*h*Math.pow(g,4))+(s/720*p*Math.pow(Math.cos(q),6)*e*Math.pow(g,6))+(s/40320*p*Math.pow(Math.cos(q),8)*v*Math.pow(g,8));return}function MapXYToLatLon(n,m,b,q){var D,k,r,A,H,g,E,C,s;var e,B,l,a,w,f,F,o;var G,p,d,z,h,I,v;D=FootpointLatitude(m);H=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);s=Math.cos(D);A=H*Math.pow(s,2);k=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+A));r=k;g=Math.tan(D);E=g*g;C=E*E;e=1/(r*s);r*=k;B=g/(2*r);r*=k;l=1/(6*r*s);r*=k;a=g/(24*r);r*=k;w=1/(120*r*s);r*=k;f=g/(720*r);r*=k;F=1/(5040*r*s);r*=k;o=g/(40320*r);G=-1-A;p=-1-2*E-A;d=5+3*E+6*A-6*E*A-3*(A*A)-9*E*(A*A);z=5+28*E+24*C+6*A+8*E*A;h=-61-90*E-45*C-107*A+162*E*A;I=-61-662*E-1320*C-720*(C*E);v=1385+3633*E+4095*C+1575*(C*E);q[0]=D+B*G*(n*n)+a*d*Math.pow(n,4)+f*h*Math.pow(n,6)+o*v*Math.pow(n,8);q[1]=b+e*n+l*p*Math.pow(n,3)+w*z*Math.pow(n,5)+F*I*Math.pow(n,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(a,g,b,f,e){var d;a-=500000;a/=UTMScaleFactor;if(f){g-=10000000}g/=UTMScaleFactor;d=UTMCentralMeridian(b);MapXYToLatLon(a,g,d,e);return}function convertToUTM(){var b=new Array(2);if(isNaN(parseFloat(this.lng))){alert("Please enter a valid longitude in the lon field.");return false}var d=parseFloat(this.lng);if((d<-180)||(180<=d)){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 a=parseFloat(this.lat);if((a<-90)||(90<a)){alert("The latitude you entered is out of range.  Please enter a number in the range [-90, 90].");return false}zone=Math.floor((d+180)/6)+1;zone=LatLonToUTMXY(DegToRad(a),DegToRad(d),zone,b);return new UTMRef(b[0],b[1],zone,a<0)}function convertToUTM32(a,d){var b=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,b);return new UTMRef(b[0],b[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(k,m,l,a){var b=document.getElementById("houseMap_"+a);var d=document.getElementById("marker_"+a);if(b){if(k=="latlng"){var e=new LatLng(l,m);var n=e.toUTM32();m=n.easting;l=n.northing}var g=new Array(16);g.c208=new Array(430000,6055000,747000,6440000);g.c752=new Array(239444,6190000,1550556,7810000);g.c578=new Array(142380,6470000,1487619,8100000);g.c528=new Array(100000,5631904,387000,5988095);g.c056=new Array(41000,5448571,325000,5791429);g.c280=new Array(280000,5260000,930000,6150000);g.c040=new Array(540000,4984444,1120000,5695556);g.c348=new Array(1040000,4996667,1520000,5613333);g.c616=new Array(840000,5432414,1580000,6287586);g.c203=new Array(720000,5249746,1220000,5880254);g.c703=new Array(1070000,5211842,1480000,5738158);g.c380=new Array(300000,4080000,1340000,5320000);g.c250=new Array(-550000,4517647,580000,5882353);g.c191=new Array(850000,4706733,1300000,5253267);g.c300=new Array(1420000,3843636,2360000,5016364);g.c724=new Array(-1255859,3787594,95393,5298646);g.c756=new Array(265000,4920000,625000,5540000);g.c100=new Array(1874000,4707000,2065000,5169000);g.c792=new Array(2004166,3980205,3900575,4799000);var f=g[b.alt];geomap_width=(f[2]-f[0]);geomap_height=(f[3]-f[1]);geocodes_per_pixel_width=(geomap_width/b.width);geocodes_per_pixel_height=(geomap_height/b.height);if((m>855464&&m<897022)&&(l>6104899&&l<6152359)){leftmarker=((m-f[0])/geocodes_per_pixel_width)-55+"px";topmarker=((f[3]-l)/geocodes_per_pixel_height)-84+"px"}else{if((m<-1700000&&m>-2200000)&&(l>3100000&&l<3600000)){leftmarker=((m-f[0])/geocodes_per_pixel_width)+67+"px";topmarker=((f[3]-l)/geocodes_per_pixel_height)-47+"px"}else{leftmarker=((m-f[0])/geocodes_per_pixel_width)-4+"px";topmarker=((f[3]-l)/geocodes_per_pixel_height)-11+"px"}}d.style.left=leftmarker;d.style.top=topmarker;d.style.visibility="visible"}}function isElementInArray(b,a){for(var d=0;d<b.length;d++){if(b[d]==a){return true}}return false}function convertDate_dd_mm_yyyyOryyyy_mm_dd(a,d){var b=a.split(d);if(b.length==3){return b[2]+"-"+b[1]+"-"+b[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"];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])){if(eval("args."+parameterArray[i])=="N"){rsStr=rsStr+"0"}else{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(r){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var b=EOSParam(r.shop_id);var o=EOSParam(r.newsletter_flag);var a=EOSParam(r.catalogorder_flag);var f=EOSParam(r.catalogorder_name);var m=EOSParam(r.product_recommendation);var e=EOSParam(r.user_searchkeywords);var l=EOSParam(r.order_article);var h=EOSParam(r.customer_zip);var w=EOSParam(r.product_onsale);var n=EOSParam(r.product_id);var p=EOSParam(r.wishlist_article);var v=EOSDateFormat(EOSParam(r.travel_start_date));var g=EOSDateFormat(EOSParam(r.travel_end_date));var q=EOSParam(r.travel_kids);var d=EOSParam(r.travel_adults);var k=EOSParam(r.travel_hotel_category);var s="https://ads.heias.com/x/heias.ret.px.fr/?PX=HT|"+HEIAS_T+"|n|5723|cus||pb|1|customer_zip|"+h+"|order_article|"+l+"|shop_id|"+b+"|newsletter_flag|"+o+"|catalogorder_flag|"+a+"|catalogorder_name|"+f+"|product_recommendation|"+m+"|user_searchkeywords|"+e+"|product_onsale|"+w+"|product_id|"+n+"|wishlist_article|"+p+"|travel_start_date|"+v+"|travel_end_date|"+g+"|travel_kids|"+q+"|travel_adults|"+d+"|travel_hotel_category|"+k+"";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="'+s+'" allowtransparency="true" framespacing="0" frameborder="no" scrolling="no" width="1" height="1"></iframe></div>')}function EOSCheckOut(h){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var g=EOSParam(h.order_article);var m=EOSParam(h.order_id);var l=EOSParam(h.order_total);var f=EOSParam(h.order_payment_method);var e=EOSParam(h.customer_status);var a=EOSParam(h.customer_zip);var k=EOSDateFormat(EOSParam(h.travel_start_date));var d=EOSDateFormat(EOSParam(h.travel_end_date));var o=EOSParam(h.travel_kids);var n=EOSParam(h.travel_adults);var b=EOSParam(h.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|"+g+"|order_payment_method|"+f+"|order_id|"+m+"|order_total|"+l+"|customer_status|"+e+"|customer_zip|"+a+"|travel_start_date|"+k+"|travel_end_date|"+d+"|travel_kids|"+o+"|travel_adults|"+n+"|travel_hotel_category|"+b+'"><\/script>')}function generateAreaOptions(b){var a=document.getElementById("search").R;a.options.length=1;var d=new Array();d["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^LAGHI DEL NORD|INORD^- Lago di Garda|IVG^- Lago di Como|IVL^- Lago Maggiore|IVM^- Lago d'Orta|IVO^PIEMONTE|IPIEM^- Piemonte|IPL^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";d["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";d["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";d["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";d["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=d[b].substring(1).split("^");for(i=0;i<optionlist.length;i++){valueset=optionlist[i].split("|");a.options[i+1]=new Option(valueset[0],valueset[1],true,false)}}function nmtrack(){function x(M,K,e){var J=new Array();if(K==null){K=document}if(e==null){e="*"}var I=K.getElementsByTagName(e);var H=I.length;var L=new RegExp("(^|\\s)"+M+"(\\s|$)");for(y=0,j=0;y<H;y++){if(L.test(I[y].className)){J[j]=I[y];j++}}return J}function r(I){if(!I){return""}var e="";for(var H=0;H<I.childNodes.length;H++){switch(I.childNodes.item(H).nodeType){case 1:e+=r(I.childNodes.item(H));break;case 3:e+=I.childNodes.item(H).nodeValue;break}}return e}function z(e){return e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var n="novasol";var q="";if(q==""){var g=[];var d=document.getElementById("navPathArea");var o=x("currentLocation");if(d!=null){var a=d.getElementsByTagName("a");for(var y=0;y<a.length;y++){g[g.length]=a[y].innerHTML}var v=d.getElementsByTagName("span");g[g.length]=v[v.length-1].innerHTML}else{if(o.length>0){g=r(g[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){g[g.length]="Home";g[g.length]="Booking";var l=x("BOKSTPsteptable");var k=l[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;g[g.length]="Step "+k}}}var B=[];for(var y=1;y<g.length;y++){B[B.length]=z(g[y])}q=B.join(" > ")}var p=new String(window.document.location);var b=p;try{var C=new String(top.document.location);b=C.indexOf("nm_extag")!=-1?C:b}catch(A){}if(q==""){q=document.title}var h="";var F=document.cookie;if(F.indexOf("nm_exref")!=-1){var w=F.split(";");for(y=0;y<F.length;y++){var E=new String(w[y]);var s=E.indexOf("nm_exref");if(s!=-1){h=new String(E.substr(s+9))}}document.cookie="nm_exref="}if(h==""){h=document.referrer;try{h=top.document.referrer}catch(A){}}var D=b.indexOf("nm_extag=");var f="";if(D!=-1){D+=9;var m=b.indexOf("&",D);f=m==-1?b.substr(D):b.substr(D,m-D);f=encodeURIComponent(f)}q=encodeURIComponent(q);p=encodeURIComponent(p);h=encodeURIComponent(h);f=encodeURIComponent(f);if(q.length>250){q=q.slice(0,246)+"..."}if(p.length>800){p=p.slice(0,796)+"..."}if(h.length>800){h=h.slice(0,796)+"..."}var G=document.createElement("SCRIPT");G.language="javascript";G.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+n+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+p+"&cid="+n+(h.length>0?("&ref="+h):"")+"&ti1="+q+"&ext="+f;document.getElementsByTagName("body")[0].appendChild(G)}catch(A){}}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};