function showClosedMessage(){document.getElementById("indhold").style.visibility="visible";document.getElementById("skygge").style.visibility="visible";if(document.getElementById("c")){document.getElementById("c").style.visibility="hidden"}if(document.getElementById("R")){document.getElementById("R").style.visibility="hidden"}if(document.getElementById("PE")){document.getElementById("PE").style.visibility="hidden"}if(document.getElementById("Q51")){document.getElementById("Q51").style.visibility="hidden"}}function subwin(f,h,k,g){jQuery.fn.colorbox({href:f,innerWidth:k,innerHeight:g,iframe:true})}function SetIndex(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(w,o,v,x){var n=0;var s=1;var q=null;for(var y=n;y<w.elements.length-s;y++){if(w.elements[y].type=="hidden"){continue}if(w.elements[y].checked){q=w.elements[y].value;var p=y;break}else{q=null}}for(var y=p;y<w.elements.length-s;y++){if(w.elements[y+1].type=="checkbox"){if(!w.elements[y+1].checked){slutDatoStr=w.elements[y+1].value;break}}else{slutDatoStr=w.elements[y+1].value;break}}if(q==null){var r="/CUE/280.nsf/"+x+"/house?opendocument&H="+o+"&S="+w.season.value+"&PE="+w.people.value+"&A="+v;if(x=="x"){subwin(r,o,"750","440")}else{location.href=r}}else{house(o,"-1",q,slutDatoStr,w.people.value,w.season.value,v,x)}}function house(s,r,m,v,o,n,p,q){var w="http://www.cuendet.de/appserver/ConsumerWebsite/ShowHouse?L=280&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/280.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=280&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(h){var g="";if(h==""){g="Sie haben keine E-Mail Adresse eingegeben"}var k=/^.+@.+..{2,3}$/;if(!(k.test(h))){g="Bitte eine gültige E-Mail Adresse eingeben"}else{var f=/[()<>,;:\"[]]/;if(h.match(f)){g="Die E-Mail Adresse beinhaltet ungültige Zeichen"}}return g}function required(d){if(d.FN.value==""){alert("Bitte Name eingeben");d.FN.focus();return false}if(d.S.value==""){alert("Bitte Adresse eingeben");d.S.focus();return false}if(d.STN.value==""){alert("Bitte Hausnummer eingeben");d.STN.focus();return false}if(d.Z.value==""){alert("Bitte Postleitzahl eingeben");d.Z.focus();return false}if(d.ZC.value==""){alert("Bitte Stadt eingeben");d.ZC.focus();return false}if(d.PH.value==""){alert("Bitte geben Sie Ihre Telefonnummer an");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(C,s,A,e,B,y,q,v,x,r,z){if(s==1){if(C.FN.value==""){alert("Bitte Name eingeben");C.FN.focus();return false}}if(A==1){if(C.SN.value==""){alert("Bitte Name eingeben");C.SN.focus();return false}}if(e==1){if(C.S.value==""){alert("Bitte Adresse eingeben");C.S.focus();return false}}if(z==1){if(C.STN.value==""){alert("Bitte Hausnummer eingeben");C.STN.focus();return false}}if(B==1){if(C.Z.value==""){alert("Bitte Postleitzahl eingeben");C.Z.focus();return false}}if(y==1){if(C.ZC.value==""){alert("Bitte Stadt eingeben");C.ZC.focus();return false}}if(q==1){if(C.CO[C.CO.selectedIndex].value==""){alert("Bitte wählen Sie Ihr Land aus");C.CO.focus();return false}else{if(C.CO[C.CO.selectedIndex].value=="000"&&C.OC.value==""){alert("Bitte geben Sie Ihr Land an");C.OC.focus();return false}}if(v==1){if(C.PH.value==""){alert("Bitte geben Sie Ihre Telefonnummer an");C.PH.focus();return false}}if(x==1){var w=checkEmail(C.E.value);if(!(w=="")){alert(w);C.E.focus();return false}else{return true}}}if(r==1){if(C.W[C.W.selectedIndex].value==""){alert("Bitte sagen Sie uns, wie Sie uns gefunden haben. Vielen Dank!");C.W.focus();return false}}return true}function SelectCountry(b){window.location.href="/CUE/280.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+="Bitte angeben eine korrekte E-mail Adresse"}if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("gb_form").gb_email.value)==false){b+="Bitte angeben eine korrekte E-mail Adresse"}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=280&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 k=new Object();var n=location.search.substring(1);var o=n.split("&");for(var q=0;q<o.length;q++){var m=o[q].indexOf("=");if(m==-1){continue}var l=o[q].substring(0,m);var p=o[q].substring(m+1);k[l]=unescape(p)}return k}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","Falsches Passwort oder Agenturnummer","red")}},"text");return false}function agencySendPassword(){$.post("/appserver/BureauWebsite/SendPassword",{email:$("#email").val(),COM:"CUE",L:"280",account:$("#account").val()},function(b){if(b=="true"){setReply("sendEmailReply","E-Mail wurde versendet","green")}else{setReply("sendEmailReply","Fehler! E-Mail Adresse und Agenturnummer stimmen nicht überein. Das Passwort wird nur an die bei uns registrierte E-mail Adresse geschickt. Sie sind bei uns schon als Agentur registriert und haben Ihre Agenturnummer oder Ihr Passwort vergessen? Dann kontaktieren Sie bitte unsere Agenturbetreuung oder schreiben eine E-Mail an novasol@novasol.de","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("Bitte wählen Sie ein Reiseziel und Anzahl Personen.");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/280cueCON";document.getElementById("search").submit()}function validateStartDate(theform){var s1=theform.SD.value.indexOf("-");var s2=theform.SD.value.lastIndexOf("-");var e1=theform.ED.value.indexOf("-");var e2=theform.ED.value.lastIndexOf("-");var sy=Math.abs(theform.SD.value.substr(s2+1,s2+5));var sm=Math.abs(theform.SD.value.substring(s1+1,s2));var sd=Math.abs(theform.SD.value.substr(0,s1));var ey=Math.abs(theform.ED.value.substr(e2+1,e2+5));var em=Math.abs(theform.ED.value.substring(e1+1,e2));var ed=Math.abs(theform.ED.value.substr(0,e1));var temp=new Date(sy,sm-1,sd+7);var zY=temp.getYear()<1999?temp.getYear()+1900:temp.getYear();theform.ED.value=temp.getDate()+"-"+eval(temp.getMonth()+1)+"-"+zY}function subcal(b){addWindow=window.open(b,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0");addWindow.focus()}function makeLink(g,h,f){findValue=document.forms[g].elements[h].value.split("-");myMonth=findValue[1];myYear=findValue[2];var k=g;if(k.search(/alpine/)>-1){subcal("/search.nsf/0/calendaralpine280?opendocument&dateField="+h+"&m="+myMonth+"&y="+myYear+"&formname="+g+"&country="+f)}else{subcal("/search.nsf/0/280cuecalendar?opendocument&dateField="+h+"&m="+myMonth+"&y="+myYear+"&formname="+g+"&country="+f)}}function getCookie(o,p,y){var w=" "+document.cookie;var q=w.split(";");var z="";var v;for(var s=0;s<q.length;s++){v=o+"=";if(v==q[s].substring(1,o.length+2)){z=q[s].substring(o.length+2,q[s].length)}}if(p.length>1){if(z.length>1){z=z+"&"+p}else{z=p}}var A=z.split("&");for(var r=0;r<A.length;r++){if(A[r].indexOf("=")>0){var x=A[r].split("=");y[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(f,h){if((f.length==6&&h=="NOV")||(f.length>4&&f.length<7&&h=="DAN")){var k="/house.nsf/0/280"+h+"?opendocument&H="+f+"&S=2010";if(cookielist.A){k=k+"&A="+cookielist.A}location.href=k}else{if(f.length==6&&h=="CUE"){var k="/appserver/ConsumerWebsite/ShowHouse?L=280&THEME=CON&COM="+h+"&H="+f;if(cookielist.A){k=k+"&A="+cookielist.A}location.href=k}else{var g="Bitte geben Sie eine 6-stellige Referenznummer ein (z.B. EBL102)";alert(g)}}}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="Bitte geben Sie eine 6-stellige Referenznummer ein (z.B. EBL102)";alert(m)}else{var o="/appserver/ConsumerWebsite/HouseListlist280cue?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=280&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 m=location.search;if(m.length>1){var l=new Array();var h=m.substring(1,m.length).split("&");for(var k=0;k<h.length;k++){if(h[k].indexOf("=")>0){var g=h[k].split("=");l[g[0]]=g[1]}}for(element in l){collection=document.getElementsByName(element);if(collection.length>0){if(collection[0].type=="checkbox"&&l[element]=="Y"){collection[0].checked=true}else{if(collection[0].type=="text"){collection[0].value=unescape(unescape(l[element]))}else{if(collection[0].type=="textarea"){collection[0].value=unescape(unescape(l[element]))}else{if(collection[0].type=="select-one"){setOption(collection[0],unescape(l[element]))}}}}}}}}function LatLng(d,e){this.lat=d;this.lng=e;this.toUTM=convertToUTM;this.toUTM32=convertToUTM32;this.toString=LatLngToString}function LatLngToString(){return"Lat, Long: ("+this.lat+", "+this.lng+")"}function UTMRef(f,g,k,h){this.easting=f;this.northing=g;this.southhemi=h;this.zone=k;this.toLatLng=convertFromUTM;this.toString=UTMRefToString}function UTMRefToString(){var b=this.lngZone+" "+this.easting+" "+this.northing;if(this.southhemi){b+=" southern hemisphere"}return b}var pi=3.14159265358979;var sm_a=6378137;var sm_b=6356752.314;var sm_EccSquared=0.00669437999013;var UTMScaleFactor=0.9996;function DegToRad(b){return(b/180*pi)}function RadToDeg(b){return(b/pi*180)}function ArcLengthOfMeridian(s){var q,r,l,n,o,p;var m;p=(sm_a-sm_b)/(sm_a+sm_b);q=((sm_a+sm_b)/2)*(1+(Math.pow(p,2)/4)+(Math.pow(p,4)/64));r=(-3*p/2)+(9*Math.pow(p,3)/16)+(-3*Math.pow(p,5)/32);l=(15*Math.pow(p,2)/16)+(-15*Math.pow(p,4)/32);n=(-35*Math.pow(p,3)/48)+(105*Math.pow(p,5)/256);o=(315*Math.pow(p,4)/512);m=q*(s+(r*Math.sin(2*s))+(l*Math.sin(4*s))+(n*Math.sin(6*s))+(o*Math.sin(8*s)));return m}function UTMCentralMeridian(e){var d;d=DegToRad(-183+(e*6));return d}function FootpointLatitude(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(G,E,L,M){var K,I,C,A,l,H;var x,B,F,J,y,D;var z;C=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);I=C*Math.pow(Math.cos(G),2);K=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+I));A=Math.tan(G);l=A*A;z=(l*l*l)-Math.pow(A,6);H=E-L;x=1-l+I;B=5-l+9*I+4*(I*I);F=5-18*l+(l*l)+14*I-58*l*I;J=61-58*l+(l*l)+270*I-330*l*I;y=61-479*l+179*(l*l)-(l*l*l);D=1385-3111*l+543*(l*l)-(l*l*l);M[0]=K*Math.cos(G)*H+(K/6*Math.pow(Math.cos(G),3)*x*Math.pow(H,3))+(K/120*Math.pow(Math.cos(G),5)*F*Math.pow(H,5))+(K/5040*Math.pow(Math.cos(G),7)*y*Math.pow(H,7));M[1]=ArcLengthOfMeridian(G)+(A/2*K*Math.pow(Math.cos(G),2)*Math.pow(H,2))+(A/24*K*Math.pow(Math.cos(G),4)*B*Math.pow(H,4))+(A/720*K*Math.pow(Math.cos(G),6)*J*Math.pow(H,6))+(A/40320*K*Math.pow(Math.cos(G),8)*D*Math.pow(H,8));return}function MapXYToLatLon(ab,W,O,P){var N,X,ag,U,ae,Y,af,Z,Q;var ad,V,ai,S,ah,K,T,M;var ac,J,y,x,aa,L,R;N=FootpointLatitude(W);ae=(Math.pow(sm_a,2)-Math.pow(sm_b,2))/Math.pow(sm_b,2);Q=Math.cos(N);U=ae*Math.pow(Q,2);X=Math.pow(sm_a,2)/(sm_b*Math.sqrt(1+U));ag=X;Y=Math.tan(N);af=Y*Y;Z=af*af;ad=1/(ag*Q);ag*=X;V=Y/(2*ag);ag*=X;ai=1/(6*ag*Q);ag*=X;S=Y/(24*ag);ag*=X;ah=1/(120*ag*Q);ag*=X;K=Y/(720*ag);ag*=X;T=1/(5040*ag*Q);ag*=X;M=Y/(40320*ag);ac=-1-U;J=-1-2*af-U;y=5+3*af+6*U-6*af*U-3*(U*U)-9*af*(U*U);x=5+28*af+24*Z+6*U+8*af*U;aa=-61-90*af-45*Z-107*U+162*af*U;L=-61-662*af-1320*Z-720*(Z*af);R=1385+3633*af+4095*Z+1575*(Z*af);P[0]=N+V*ac*(ab*ab)+S*y*Math.pow(ab,4)+K*aa*Math.pow(ab,6)+M*R*Math.pow(ab,8);P[1]=O+ad*ab+ai*J*Math.pow(ab,3)+ah*x*Math.pow(ab,5)+T*L*Math.pow(ab,7);return}function LatLonToUTMXY(g,f,k,h){MapLatLonToXY(g,f,UTMCentralMeridian(k),h);h[0]=h[0]*UTMScaleFactor+500000;h[1]=h[1]*UTMScaleFactor;if(h[1]<0){h[1]=h[1]+10000000}return k}function UTMXYToLatLon(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(C){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var N=EOSParam(C.shop_id);var F=EOSParam(C.newsletter_flag);var O=EOSParam(C.catalogorder_flag);var G=EOSParam(C.catalogorder_name);var J=EOSParam(C.product_recommendation);var L=EOSParam(C.user_searchkeywords);var x=EOSParam(C.order_article);var A=EOSParam(C.customer_zip);var z=EOSParam(C.product_onsale);var B=EOSParam(C.product_id);var I=EOSParam(C.wishlist_article);var H=EOSDateFormat(EOSParam(C.travel_start_date));var D=EOSDateFormat(EOSParam(C.travel_end_date));var y=EOSParam(C.travel_kids);var M=EOSParam(C.travel_adults);var E=EOSParam(C.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|"+A+"|order_article|"+x+"|shop_id|"+N+"|newsletter_flag|"+F+"|catalogorder_flag|"+O+"|catalogorder_name|"+G+"|product_recommendation|"+J+"|user_searchkeywords|"+L+"|product_onsale|"+z+"|product_id|"+B+"|wishlist_article|"+I+"|travel_start_date|"+H+"|travel_end_date|"+D+"|travel_kids|"+y+"|travel_adults|"+M+"|travel_hotel_category|"+E+"";document.write('<div id="px_div_'+HEIAS_T+'" style="position: absolute; left:0; top:0; width:0px; height:0px;"><iframe id="px_fr_'+HEIAS_T+'" name="px_fr_'+HEIAS_T+'" src="'+K+'" allowtransparency="true" framespacing="0" frameborder="no" scrolling="no" width="1" height="1"></iframe></div>')}function EOSCheckOut(A){HEIAS_T=Math.random();HEIAS_T=HEIAS_T*10000000000000000000;var x=EOSParam(A.order_article);var z=EOSParam(A.order_id);var s=EOSParam(A.order_total);var y=EOSParam(A.order_payment_method);var p=EOSParam(A.customer_status);var q=EOSParam(A.customer_zip);var v=EOSDateFormat(EOSParam(A.travel_start_date));var B=EOSDateFormat(EOSParam(A.travel_end_date));var C=EOSParam(A.travel_kids);var w=EOSParam(A.travel_adults);var r=EOSParam(A.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|"+x+"|order_payment_method|"+y+"|order_id|"+z+"|order_total|"+s+"|customer_status|"+p+"|customer_zip|"+q+"|travel_start_date|"+v+"|travel_end_date|"+B+"|travel_kids|"+C+"|travel_adults|"+w+"|travel_hotel_category|"+r+'"><\/script>')}function generateAreaOptions(e){var f=document.getElementById("search").R;f.options.length=1;var g=new Array();g["380"]="^BASILIKATA|IBASI^- Ionische Küste|IBJ^- Tyrrhenische Küste|IBT^EMILIA-ROMAGNA|IEMIL^- Emilia-Romagna Hinterland|IEC^- Emilia-Romagna Adriaküste|IEK^FRIAUL|IFRIA^- Friaul Landschaft|IFC^- Friaul - Adria Küste|IFK^KALABRIEN|IKALA^- Kalabrien|IKK^KAMPANIEN|IKAMP^- Amalfi Küste|IKA^- Cilento/Salerno Bucht|IKC^- Gaeta und Baia Domizia|IKG^- Kampanien Land|IKL^- Sorrento Küste|IKS^LATIUM|ILATI^- Rom|IRO^- Latium Land und Seen|IRU^LIGURIEN|ILIGU^- Ligurien|ILL^MARKEN|IMARK^- Marken|IMM^NORDITALIENISCHEN SEEN|INORD^- Gardasee|IVG^- Maggiore See|IVM^APULIEN|IPUGL^- Apulien|ISA^SARDINIEN|ISARD^- Sardinien|ISD^SIZILIEN|ISIZI^- Sizilien|ISS^TOSKANA|ITOSC^- Arezzo/Cortona und Umgebung|ITA^- Florenz|ITB^- Chianti|ITC^- Florentiner Hügel|ITF^- Grosseto und Umgebung|ITG^- Lucca und Umgebung|ITL^- San Gimignano und Volterra|ITN^- Pisa und Umgebung|ITP^- Siena und Umgebung|ITS^- Montecatini/Pistoia und Umgebung|ITT^TOSKANA KÜSTE|ITOSK^- Elba insel|ITE^- Etruskerküste|ITK^- Argentario/Maremma|ITM^- Versilia|ITV^UMBRIEN|IUMBR^- Perugia und Umgebung|IUP^- Spoleto und Umgebung|IUS^- Trasimeno See|IUT^VENETIEN|IVE^- Hinterland Venetiens|IVC^- Venetien Adriaküste|IVK^- Venedig|IVV";g["300"]="^Korfu|GCF^Chios|GCH^Zypern|GCY^Kreta|GKR^Lesbos|GLE^FESTLAND|GMAIN^- Athen|GAT^- Chalkidiki|GHA^- Peloponnes|GPE^KYKLADEN|KYKLA^- |GKK^- Paros|GKP^- Syros|GKS^THESSALIEN|THESS^- Pilion|GPI^- Thessalien|GTH";g["250"]="^AQUITAINE|FAQUI^- Dordogne|FAD^- Gironde|FAG^- Landes|FAL^- Pyrénées Atlantiques|FAP^- Lot et Garonne|FAT^ATLANTIQUE|FATLA^- Charente Maritime|FCH^- Vendée|FVE^BRETAGNE|FBR^- Côte d´Amor|FBC^- Finistére|FBF^- Ille et Vilaine|FBI^- Loire Atlantique|FBL^- Morbihan|FBM^CENTRE-LOIRE|FCELO^- Centre|FEC^CÕTE D`AZUR|FCOTE^- Alpes Maritimes|FCA^- Var|FCV^KORSIKA|FKORS^- Korsika|FKO^LANGUEDOC-ROUSSILLON|FLANG^- Aude|FLA^- Gard|FLG^- Hérault|FLH^- Lozère|FLL^- Pyrénées Orientales|FLP^NORMANDIE|FNORM^- Calvados|FNC^- Manche|FNM^- Orne|FNO^- Seine Maritimes|FNS^PROVENCE-DRÔME-ARDÈCHE|FPROV^- Alpes de haute Provence|FPA^- Bouches du Rhône|FPB^- Drôme|FPD^- Vaucluse|FPV^- Ardèche|FRA^MIDI-PYRÉNÉES|FPYRE^- Lot|FML";g["191"]="^MITTE DALMATIEN|DALMM^- Insel Brac|CDB^- Insel Hvar|CDH^- Insel Vis|CDK^- Insel Ciovo|CDM1^- Insel Drvenik Veli|CDM2^- Insel Drvenik Mali|CDM3^- Makarska|CDM4^- Omis|CDM5^- Split|CDM6^- Trogir|CDM7^- Insel Solta|CDO^NORD DALMATIEN|DALMN^- Biograd|CDN1^- Nin|CDN2^- Starigrad Paklenica|CDN3^- Insel Vir|CDN4^- Zadar|CDN5^- Insel Dugi Otok|CDU1^- Insel Rivanj|CDU10^- Insel Ist|CDU2^- Insel Iz|CDU3^- Insel Molat|CDU4^- Insel Pasman|CDU5^- Insel Rava|CDU6^- Insel Ugljan|CDU8^- Drnis|CDV1^- Insel Prvic|CDV10^- Insel Zirje|CDV11^- Insel Kaprije|CDV2^- Insel Krapanj|CDV3^- Insel Murter|CDV4^- Primosten|CDV5^- Rogoznica|CDV6^- Sibenik|CDV7^- Vodice|CDV8^- Insel Zlarin|CDV9^SÜD DALMATIEN|DALMS^- Dubrovnik Riviera|CDD^- Halbinsel Peljesac|CDP^- Neretva Delta|CDR^- Insel Korcula|CDS^ISTRIEN|ISTRI^- Premantura|CIA^- Banjole|CIB^- Porec|CIE1^- Vrsar|CIE2^- Fazana|CIF1^- Barbariga|CIF2^- Ostküste|CIK^- Rabac|CIK1^- Labin|CIK2^- Krnica|CIK3^- Duga Uvala|CIK4^- Istrien hinterland|CIL^- Barban|CIL1^- Ucka|CIL10^- Visnjan|CIL11^- Vodnjan|CIL12^- Zminj|CIL13^- Bale|CIL14^- Buje|CIL2^- Buzet|CIL3^- Kanfanar|CIL4^- Motovun|CIL5^- Pazin|CIL6^- Sv. Lovrec|CIL7^- Svetvincenat|CIL8^- Tinjan|CIL9^- Medulin|CIM^- Pula|CIP^- Umag & Novigrad|CIU^- Umag|CIU1^- Novigrad|CIU2^- Rovinj|CIV^- Liznjan|CIZ^KVARNER BUCHT|KVARN^- Gorski Kotar|CKB1^- Lika|CKB2^- Crikvenica|CKC^- Krk|CKK^- Insel Cres|CKL1^- Insel Losinj|CKL2^- Insel Ilovik|CKL3^- Insel Susak|CKL4^- Novi Vinodolski|CKN^- Opatija|CKO^- Pag|CKP^- Rab|CKR^- Senj und Küste abwärts|CKV^- Karlobag|CKV1^- Senj|CKV2";g["724"]="^KANARISCHEN INSELN|CANAR^- Fuerteventura|EFU^- Gran Canaria|EGR^- El Hierro|EHI^- Lanzarote|ELA^- La Palma|EPA^- Teneriffa|ETE^Mallorca|EML^FESTLAND|ESPAN^- Costa del sol/Andalusien|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(k,b,h){var d=new Array();if(b==null){b=document}if(h==null){h="*"}var f=b.getElementsByTagName(h);var g=f.length;var a=new RegExp("(^|\\s)"+k+"(\\s|$)");for(H=0,j=0;H<g;H++){if(a.test(f[H].className)){d[j]=f[H];j++}}return d}function S(a){if(!a){return""}var d="";for(var b=0;b<a.childNodes.length;b++){switch(a.childNodes.item(b).nodeType){case 1:d+=S(a.childNodes.item(b));break;case 3:d+=a.childNodes.item(b).nodeValue;break}}return d}function N(a){return a.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}try{var L="novasol";var P="";if(P==""){var ac=[];var T=document.getElementById("navPathArea");var W=I("currentLocation");if(T!=null){var e=T.getElementsByTagName("a");for(var H=0;H<e.length;H++){ac[ac.length]=e[H].innerHTML}var ad=T.getElementsByTagName("span");ac[ac.length]=ad[ad.length-1].innerHTML}else{if(W.length>0){ac=S(ac[0]).split(" > ")}else{if(new String(document.location).indexOf("/booking")!=-1){ac[ac.length]="Home";ac[ac.length]="Booking";var ag=I("BOKSTPsteptable");var aa=ag[0].getElementsByTagName("b")[0].parentNode.parentNode.getElementsByTagName("img")[0].alt;ac[ac.length]="Step "+aa}}}var Z=[];for(var H=1;H<ac.length;H++){Z[Z.length]=N(ac[H])}P=Z.join(" > ")}var V=new String(window.document.location);var O=V;try{var R=new String(top.document.location);O=R.indexOf("nm_extag")!=-1?R:O}catch(U){}if(P==""){P=document.title}var ab="";var M=document.cookie;if(M.indexOf("nm_exref")!=-1){var J=M.split(";");for(H=0;H<M.length;H++){var Y=new String(J[H]);var af=Y.indexOf("nm_exref");if(af!=-1){ab=new String(Y.substr(af+9))}}document.cookie="nm_exref="}if(ab==""){ab=document.referrer;try{ab=top.document.referrer}catch(U){}}var ae=O.indexOf("nm_extag=");var Q="";if(ae!=-1){ae+=9;var X=O.indexOf("&",ae);Q=X==-1?O.substr(ae):O.substr(ae,X-ae);Q=encodeURIComponent(Q)}P=encodeURIComponent(P);V=encodeURIComponent(V);ab=encodeURIComponent(ab);Q=encodeURIComponent(Q);if(P.length>250){P=P.slice(0,246)+"..."}if(V.length>800){V=V.slice(0,796)+"..."}if(ab.length>800){ab=ab.slice(0,796)+"..."}var K=document.createElement("SCRIPT");K.language="javascript";K.src="http"+(document.location.protocol=="https:"?"s":"")+"://"+L+".netminers.dk/tracker/dispatch.aspx?action=log&n="+Math.random()+"&nav="+V+"&cid="+L+(ab.length>0?("&ref="+ab):"")+"&ti1="+P+"&ext="+Q;document.getElementsByTagName("body")[0].appendChild(K)}catch(U){}}function googleAreaMapInitialize(h){var g=new Array();g["191"]=new Array(45.1667,15.5,5);g["250"]=new Array(46,2,5);g["300"]=new Array(39,22,5);g["380"]=new Array(42.8333,12.8333,5);g["724"]=new Array(40,-4,5);var k=g[h];if(k){var f=new GMap2(document.getElementById("map_canvas"));f.setCenter(new GLatLng(k[0],k[1]),k[2]);f.disableDragging()}}jQuery(document).ready(function(){jQuery(".inputtext").focusin(function(){if(jQuery(this).val()==jQuery(this).attr("title")){jQuery(this).val("")}});jQuery(".inputtext").focusout(function(){if(jQuery(this).val()==""||jQuery(this).val()==jQuery(this).attr("title")){jQuery(this).val(jQuery(this).attr("title"));jQuery(this).css("color","#999")}});jQuery(".inputtext").each(function(){jQuery(this).val(jQuery(this).attr("title"));jQuery(this).css("color","#999")});jQuery(".inputtext").keydown(function(){jQuery(this).attr("style","")})});function encodeStr(d){var e;if(encodeURIComponent){e=encodeURIComponent(d)}else{e=escape(d)}return e};
