function bk(F){var eC=false;var g=new Object();var x=0,y=0;var ae=false,aE=false,Y=false;if(document.getElementById){ae=true;}else if(document.all){aE=true;}else if(document.layers){Y=true;}if(ae&&document.all){x=J(document.all[F]);y=O(document.all[F]);}else if(ae){var o=document.getElementById(F);x=J(o);y=O(o);}else if(aE){x=J(document.all[F]);y=O(document.all[F]);}else if(Y){var ed=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==F){ed=1;break;}}if(ed==0){g.x=0;g.y=0;return g;}x=document.anchors[i].x;y=document.anchors[i].y;}else{g.x=0;g.y=0;return g;}g.x=x;g.y=y;return g;};function bE(F){var g=bk(F);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=g.x-document.body.scrollLeft+window.screenLeft;y=g.y-document.body.scrollTop+window.screenTop;}else{x=g.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=g.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else if(document.all){x=g.x-document.body.scrollLeft+window.screenLeft;y=g.y-document.body.scrollTop+window.screenTop;}else if(document.layers){x=g.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=g.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}g.x=x;g.y=y;return g;};function J(el){var ol=el.offsetLeft;while((el=el.offsetParent)!=null){ol+=el.offsetLeft;}return ol;};function cw(el){return J(el)-document.body.scrollLeft;};function O(el){var eH=el.offsetTop;while((el=el.offsetParent)!=null){eH+=el.offsetTop;}return eH;};function cC(el){return O(el)-document.body.scrollTop;};var U=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var bG=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');function cy(x){return(x<0||x>9?"":"0")+x};function eG(ak,V){var af=T(ak,V);if(af==0){return false;}return true;};function ep(eA,dF,eB,dG){var dk=T(eA,dF);var ev=T(eB,dG);if(dk==0||ev==0){return-1;}else if(dk>ev){return 1;}return 0;};function dK(af,V){V=V+"";var result="";var ag=0;var c="";var r="";var y=af.getYear()+"";var M=af.getMonth()+1;var d=af.getDate();var E=af.getDay();var H=af.getHours();var m=af.getMinutes();var s=af.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,dr,HH,H,KK,K,kk,k;var value=new Object();if(y.length<4){y=""+(y-0+1900);}value["y"]=""+y;value["yyyy"]=y;value["yy"]=y.substring(2,4);value["M"]=M;value["MM"]=cy(M);value["MMM"]=U[M-1];value["NNN"]=U[M+11];value["d"]=d;value["dd"]=cy(d);value["E"]=bG[E+7];value["EE"]=bG[E];value["H"]=H;value["HH"]=cy(H);if(H==0){value["h"]=12;}else if(H>12){value["h"]=H-12;}else{value["h"]=H;}value["hh"]=cy(value["h"]);if(H>11){value["K"]=H-12;}else{value["K"]=H;}value["k"]=H+1;value["KK"]=cy(value["K"]);value["kk"]=cy(value["k"]);if(H>11){value["a"]="PM";}else{value["a"]="AM";}value["m"]=m;value["mm"]=cy(m);value["s"]=s;value["ss"]=cy(s);while(ag<V.length){c=V.charAt(ag);r="";while((V.charAt(ag)==c)&&(ag<V.length)){r+=V.charAt(ag++);}if(value[r]!=null){result=result+value[r];}else{result=result+r;}}return result;};function dL(ak){var eq="1234567890";for(var i=0;i<ak.length;i++){if(eq.indexOf(ak.charAt(i))== -1){return false;}}return true;};function aF(dn,i,df,dT){for(var x=dT;x>=df;x--){var r=dn.substring(i,i+x);if(r.length<df){return null;}if(dL(r)){return r;}}return null;};function T(ak,V){ak=ak+"";V=V+"";var D=0;var ag=0;var c="";var r="";var eJ="";var x,y;var bl=new Date();var w=bl.getYear();var B=bl.getMonth()+1;var af=1;var hh=bl.getHours();var mm=bl.getMinutes();var ss=bl.getSeconds();var dr="";while(ag<V.length){c=V.charAt(ag);r="";while((V.charAt(ag)==c)&&(ag<V.length)){r+=V.charAt(ag++);}if(r=="yyyy"||r=="yy"||r=="y"){if(r=="yyyy"){x=4;y=4;}if(r=="yy"){x=2;y=2;}if(r=="y"){x=2;y=4;}w=aF(ak,D,x,y);if(w==null){return 0;}D+=w.length;if(w.length==2){if(w>70){w=1900+(w-0);}else{w=2000+(w-0);}}}else if(r=="MMM"||r=="NNN"){B=0;for(var i=0;i<U.length;i++){var bW=U[i];if(ak.substring(D,D+bW.length).toLowerCase()==bW.toLowerCase()){if(r=="MMM"||(r=="NNN"&&i>11)){B=i+1;if(B>12){B-=12;}D+=bW.length;break;}}}if((B<1)||(B>12)){return 0;}}else if(r=="EE"||r=="E"){for(var i=0;i<bG.length;i++){var cE=bG[i];if(ak.substring(D,D+cE.length).toLowerCase()==cE.toLowerCase()){D+=cE.length;break;}}}else if(r=="MM"||r=="M"){B=aF(ak,D,r.length,2);if(B==null||(B<1)||(B>12)){return 0;}D+=B.length;}else if(r=="dd"||r=="d"){af=aF(ak,D,r.length,2);if(af==null||(af<1)||(af>31)){return 0;}D+=af.length;}else if(r=="hh"||r=="h"){hh=aF(ak,D,r.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}D+=hh.length;}else if(r=="HH"||r=="H"){hh=aF(ak,D,r.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}D+=hh.length;}else if(r=="KK"||r=="K"){hh=aF(ak,D,r.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}D+=hh.length;}else if(r=="kk"||r=="k"){hh=aF(ak,D,r.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}D+=hh.length;hh--;}else if(r=="mm"||r=="m"){mm=aF(ak,D,r.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}D+=mm.length;}else if(r=="ss"||r=="s"){ss=aF(ak,D,r.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}D+=ss.length;}else if(r=="a"){if(ak.substring(D,D+2).toLowerCase()=="am"){dr="AM";}else if(ak.substring(D,D+2).toLowerCase()=="pm"){dr="PM";}else{return 0;}D+=2;}else{if(ak.substring(D,D+r.length)!=r){return 0;}else{D+=r.length;}}}if(D!=ak.length){return 0;}if(B==2){if(((w%4==0)&&(w%100!=0))||(w%400==0)){if(af>29){return 0;}}else{if(af>28){return 0;}}}if((B==4)||(B==6)||(B==9)||(B==11)){if(af>30){return 0;}}if(hh<12&&dr=="PM"){hh=hh-0+12;}else if(hh>11&&dr=="AM"){hh-=12;}var ek=new Date(w,B-1,af,hh,mm,ss);return ek.getTime();};function co(ak){var cN=(arguments.length==2)?arguments[1]:false;cY=new Array('y-M-d','MMM d, y','MMM d,y','y-MMM-d','d-MMM-y','MMM d');cW=new Array('M/d/y','M-d-y','M.d.y','MMM-d','M/d','M-d');dc=new Array('d/M/y','d-M-y','d.M.y','d-MMM','d/M','d-M');var dg=new Array('cY',cN?'dc':'cW',cN?'cW':'dc');var d=null;for(var i=0;i<dg.length;i++){var l=window[dg[i]];for(var j=0;j<l.length;j++){d=T(ak,l[j]);if(d!=0){return new Date(d);}}}return null;};function cJ(){var c;if(arguments.length>0){c=new cA(arguments[0]);}else{c=new cA();c.ej(150,175);}c.offsetX=0;c.offsetY=15;c.dZ();c.aD=new Array("January","February","March","April","May","June","July","August","September","October","November","December");c.aj=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");c.cR=new Array("S","M","T","W","T","F","S");c.aU="ca";c.aR="bq";c.aM="ba";c.bb="bA";c.al=0;c.ap=false;c.C="date";c.ao=new Object();c.v="";c.ad=2;c.R=null;c.cn="Today";c.fcss="";c.av=false;c.au=false;window.aI=null;window.aC=null;window.cd="MM/dd/yyyy";c.ab=bo;c.aS=bV;c.bK=bm;c.bx=bc;c.bT=bt;c.cK=cF;c.dI=bw;c.cM=cD;c.ee=cr;c.eh=cx;c.dN=bN;c.ai=cg;c.dq=aZ;c.da=cT;c.dU=bQ;c.aV=cQ;c.eu=ac;c.dW=bF;c.ec=X;c.bO=db;c.select=dS;c.et=cS;c.dC=bi;c.dD=bh;c.ab();return c;};function bo(){if(typeof(window.U)!="undefined"&&window.U!=null){window.U=new Array();for(var i=0;i<this.aD.length;i++){window.U[window.U.length]=this.aD[i];}for(var i=0;i<this.aj.length;i++){window.U[window.U.length]=this.aj[i];}}};function ca(y,m,d){if(window.aC!=null){var dt=new Date(y,m-1,d,0,0,0);if(window.aI!=null){window.aI.ab();}window.aC.value=dK(dt,window.cd);}else{alert('Use aS() to define which function will get the clicked results!');}};function bq(y,m){alert('Use bK() to define which function will get the clicked results!\nYou clicked: year='+y+' , month='+m);};function ba(y,q){alert('Use bx() to define which function will get the clicked results!\nYou clicked: year='+y+' , quarter='+q);};function bA(y){alert('Use bT() to define which function will get the clicked results!\nYou clicked: year='+y);};function bV(name){this.aU=name;};function bm(name){this.aR=name;};function bc(name){this.aM=name;};function bt(name){this.bb=name;};function cF(){for(var i=0;i<arguments.length;i++){this.aD[i]=arguments[i];}this.ab();};function bw(){for(var i=0;i<arguments.length;i++){this.aj[i]=arguments[i];}this.ab();};function cD(){for(var i=0;i<arguments.length;i++){this.cR[i]=arguments[i];}};function cr(eF){this.al=eF;};function bQ(){this.ap=(arguments.length>0)?arguments[0]:true;};function cx(type){if(type!="date"&&type!="week-end"&&type!="month"&&type!="quarter"&&type!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false;}this.C=type;};function aZ(eI){this.ad=eI;};function bN(){this.ao=new Object();for(var i=0;i<arguments.length;i++){this.ao[arguments[i]]=true;}};function cg(as,bf){if(arguments.length==1){bf=as;}if(as==null&&bf==null){return;}if(this.v!=""){this.v+="||";}if(as!=null){as=co(as);as=""+as.getFullYear()+cy(as.getMonth()+1)+cy(as.getDate());}if(bf!=null){bf=co(bf);bf=""+bf.getFullYear()+cy(bf.getMonth()+1)+cy(bf.getDate());}if(as==null){this.v+="(ds<="+bf+")";}else if(bf==null){this.v+="(ds>="+as+")";}else{this.v+="(ds>="+as+"&&ds<="+bf+")";}};function cT(text){this.cn=text;};function cS(ak){this.fcss=ak;};function bi(){this.av=(arguments.length>0)?arguments[0]:true;};function bh(){this.au=(arguments.length>0)?arguments[0]:true;};function ac(){if(arguments.length>0){window.Q[arguments[0]].bI();}else{this.bI();}};function X(index){var aY=window.Q[index];if(arguments.length>1){aY.cG(aY.bO(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));}else{aY.cG(aY.bO());}aY.refresh();};function cQ(F){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.R=new Date();}else{this.R=new Date(co(arguments[1]));}}this.cG(this.bO());this.dV(F);};function dS(ay,eb,V){var bz=(arguments.length>3)?arguments[3]:null;if(!window.T){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");return;}if(this.C!="date"&&this.C!="week-end"){alert("calendar.select: This function can only be used with C 'date' or 'week-end'");return;}if(ay.type!="text"&&ay.type!="hidden"&&ay.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.aC=null;return;}if(ay.disabled){return;}window.aC=ay;window.aI=this;this.R=null;var dJ=0;if(bz!=null){dJ=T(bz,V)}else if(ay.value!=""){dJ=T(ay.value,V);}if(bz!=null||ay.value!=""){if(dJ==0){this.R=null;}else{this.R=new Date(dJ);}}window.cd=V;this.aV(eb);};function bF(){var result="";var p="";if(this!=null&&typeof(this.fcss)!="undefined"&&this.fcss!=null&&this.fcss!=""){p=this.fcss;}result+="."+p+"cpYearNavigation,."+p+"cpMonthNavigation { background-color:#C0C0C0; text-align:center; vertical-align:center; text-decoration:none; color:#000000; font-weight:bold; }\n";result+="."+p+"cpDayColumnHeader, ."+p+"cpYearNavigation,."+p+"cpMonthNavigation,."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDateDisabled,."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDateDisabled,."+p+"cpCurrentDate,."+p+"cpCurrentDateDisabled,."+p+"cpTodayText,."+p+"cpTodayTextDisabled,."+p+"cpText { font-family:arial; font-size:8pt; line-height:14px }\n";result+="TD."+p+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0px 0px 1px 0px; }\n";result+="."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate  { text-align:right; text-decoration:none; }\n";result+="."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; }\n";result+="."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDate a:link, .cpCurrentDate, .cpCurrentDate a:link { color:#000000; }\n";result+="."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDate a:link { color:#808080; }\n";result+="TD."+p+"cpCurrentDate { color:white; background-color: #C0C0C0; border-width:1px; border:solid thin #800000; }\n";result+="TD."+p+"cpCurrentDateDisabled { border-width:1px; border:solid thin #FFAAAA; }\n";result+="TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1px 0px 0px 0px;}\n";result+="A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled { height:20px; }\n";result+="A."+p+"cpTodayText { color:black; }\n";result+="."+p+"cpTodayTextDisabled { color:#D0D0D0; }\n";result+="."+p+"cpBorder { border:solid thin #808080; }\n";result+="."+p+"cpBorder tr{ height:16px;}\n";result+="#res_r_box a { color:#000000; background-image:none; }\n";result+="#pCalendar a { padding:0; background-image:none; }\n";result+="."+p+"cpMonthNavigation a:link{color:#000000}\n";return result;};function db(){var bl=new Date();if(this.type=="WINDOW"){var P="window.opener.";}else{var P="";}var result="";if(this.type=="WINDOW"){result+="<HTML><HEAD><TITLE>CalendarTakvin</TITLE>"+this.dW()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";result+='<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n';}else{result+='<TABLE CLASS="'+this.fcss+'cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1>\n';result+='<TR><TD ALIGN=CENTER>\n';result+='<CENTER>\n';}if(this.C=="date"||this.C=="week-end"){if(this.R==null){this.R=bl;}if(arguments.length>0){var B=arguments[0];}else{var B=this.R.getMonth()+1;}if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){var w=arguments[1];}else{var w=this.R.getFullYear();}var bM=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if(((w%4==0)&&(w%100!=0))||(w%400==0)){bM[2]=29;}var di=new Date(w,B-1,1);var az=w;var G=B;var Z=1;var cZ=di.getDay();var dw=0;dw=(cZ>=this.al)?cZ-this.al:7-this.al+cZ;if(dw>0){G--;if(G<1){G=12;az--;}Z=bM[G]-dw+1;}var bn=B+1;var aP=w;if(bn>12){bn=1;aP++;}var bs=B-1;var aO=w;if(bs<1){bs=12;aO--;}var bX;if(this.type!="WINDOW"){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";}result+='<TR>\n';var refresh=P+'X';var at='javascript:'+refresh;if(this.av){result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.fcss+'cpMonthNavigation" name="cpMonth" onChange="'+refresh+'('+this.index+',this.options[this.selectedIndex].value-0,'+(w-0)+');">';for(var aw=1;aw<=12;aw++){var selected=(aw==B)?'SELECTED':'';result+='<option value="'+aw+'" '+selected+'>'+this.aD[aw-1]+'</option>';}result+='</select></TD>';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.fcss+'cpYearNavigation" name="cpYear" onChange="'+refresh+'('+this.index+','+B+',this.options[this.selectedIndex].value-0);">';for(var aK=w-this.ad;aK<=w+this.ad;aK++){var selected=(aK==w)?'SELECTED':'';result+='<option value="'+aK+'" '+selected+'>'+aK+'</option>';}result+='</select></TD>';}else{if(this.ap){result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.fcss+'cpMonthNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+bs+','+aO+');">&lt;</A></TD>';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.fcss+'cpMonthNavigation">'+this.aD[B-1]+'</SPAN></TD>';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.fcss+'cpMonthNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+bn+','+aP+');">&gt;</A></TD>';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+B+','+(w-1)+');">&lt;</A></TD>';if(this.au){result+='<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.fcss+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+w+'" onBlur="'+refresh+'('+this.index+','+B+',this.value-0);"></TD>';}else{result+='<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.fcss+'cpYearNavigation">'+w+'</SPAN></TD>';}result+='<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+B+','+(w+1)+');">&gt;</A></TD>';}else{result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.fcss+'cpMonthNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+bs+','+aO+');">&lt;&lt;</A></TD>\n';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.fcss+'cpMonthNavigation">'+this.aD[B-1]+' '+w+'</SPAN></TD>\n';result+='<TD CLASS="'+this.fcss+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.fcss+'cpMonthNavigation" HREF="javascript:void(0)" onclick="'+at+'('+this.index+','+bn+','+aP+');">&gt;&gt;</A></TD>\n';}}result+='</TR></TABLE>\n';result+='<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n';result+='<TR>\n';for(var j=0;j<7;j++){result+='<TD CLASS="'+this.fcss+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.fcss+'cpDayColumnHeader">'+this.cR[(this.al+j)%7]+'</TD>\n';}result+='</TR>\n';for(var row=1;row<=6;row++){result+='<TR>\n';for(var col=1;col<=7;col++){var disabled=false;if(this.v!=""){var ds=""+az+cy(G)+cy(Z);eval("disabled=("+this.v+")");}var aA="";if((G==this.R.getMonth()+1)&&(Z==this.R.getDate())&&(az==this.R.getFullYear())){aA="cpCurrentDate";}else if(G==B){aA="cpCurrentMonthDate";}else{aA="cpOtherMonthDate";}if(disabled||this.ao[col-1]){result+='	<TD CLASS="'+this.fcss+aA+'"><SPAN CLASS="'+this.fcss+aA+'Disabled">'+Z+'</SPAN></TD>\n';}else{var bd=Z;var aX=G;var ar=az;if(this.C=="week-end"){var d=new Date(ar,aX-1,bd,0,0,0,0);d.setDate(d.getDate()+(7-col));ar=d.getYear();if(ar<1000){ar+=1900;}aX=d.getMonth()+1;bd=d.getDate();}result+='	<TD CLASS="'+this.fcss+aA+'"><A HREF="javascript:void(0)" onclick="javascript:'+P+this.aU+'('+ar+','+aX+','+bd+');'+P+'ac(\''+this.index+'\');" CLASS="'+this.fcss+aA+'">'+Z+'</A></TD>\n';}Z++;if(Z>bM[G]){Z=1;G++;}if(G>12){G=1;az++;}}result+='</TR>';}var aQ=bl.getDay()-this.al;if(aQ<0){aQ+=7;}result+='<TR>\n';result+='	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.fcss+'cpTodayText">\n';if(this.v!=""){var ds=""+bl.getFullYear()+cy(bl.getMonth()+1)+cy(bl.getDate());eval("disabled=("+this.v+")");}if(disabled||this.ao[aQ+1]){result+='		<SPAN CLASS="'+this.fcss+'cpTodayTextDisabled">'+this.cn+'</SPAN>\n';}else{result+='		<A CLASS="'+this.fcss+'cpTodayText" HREF="javascript:void(0)" onclick="javascript:'+P+this.aU+'(\''+bl.getFullYear()+'\',\''+(bl.getMonth()+1)+'\',\''+bl.getDate()+'\');'+P+'ac(\''+this.index+'\');">'+this.cn+'</A>\n';}result+='		<BR>\n';result+='	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n';}if(this.C=="month"||this.C=="quarter"||this.C=="year"){if(arguments.length>0){var w=arguments[0];}else{if(this.C=="year"){var w=bl.getFullYear()-this.ad;}else{var w=bl.getFullYear();}}if(this.C!="year"&&this.ap){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+='<TR>\n';result+='	<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="javascript:'+P+'X('+this.index+','+(w-1)+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="100">'+w+'</TD>\n';result+='	<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="javascript:'+P+'X('+this.index+','+(w+1)+');">&gt;&gt;</A></TD>\n';result+='</TR></TABLE>\n';}}if(this.C=="month"){result+='<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<4;i++){result+='<TR>';for(var j=0;j<3;j++){var cU=((i*3)+j);result+='<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.fcss+'cpText" HREF="javascript:'+P+this.aR+'('+w+','+(cU+1)+');'+P+'ac(\''+this.index+'\');" CLASS="'+bX+'">'+this.aj[cU]+'</A></TD>';}result+='</TR>';}result+='</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.C=="quarter"){result+='<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<2;i++){result+='<TR>';for(var j=0;j<2;j++){var du=((i*2)+j+1);result+='<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.fcss+'cpText" HREF="javascript:'+P+this.aM+'('+w+','+du+');'+P+'ac(\''+this.index+'\');" CLASS="'+bX+'">Q'+du+'</A><BR><BR></TD>';}result+='</TR>';}result+='</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.C=="year"){var aG=4;result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+='<TR>\n';result+='	<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="javascript:'+P+'X('+this.index+','+(w-(aG*2))+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.fcss+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.fcss+'cpYearNavigation" HREF="javascript:void(0)" onclick="javascript:'+P+'X('+this.index+','+(w+(aG*2))+');">&gt;&gt;</A></TD>\n';result+='</TR></TABLE>\n';result+='<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<aG;i++){for(var j=0;j<2;j++){var cB=w+(j*aG)+i;result+='<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.fcss+'cpText" HREF="javascript:'+P+this.bb+'('+cB+');'+P+'ac(\''+this.index+'\');" CLASS="'+bX+'">'+cB+'</A></TD>';}result+='</TR>';}result+='</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.type=="WINDOW"){result+="</BODY></HTML>\n";}return result;};function bp(F){var g;if(this.type=="WINDOW"){g=bE(F);}else{g=bk(F);}this.x=g.x;this.y=g.y;};function ci(width,height){this.width=width;this.height=height;};function bY(ax){this.ax=ax;this.cl=false;};function ck(url){this.url=url;};function aN(ez){this.bv=ez;};function ce(){if(this.A!=null){if(this.ae){document.getElementById(this.A).innerHTML=this.ax;}else if(this.aE){document.all[this.A].innerHTML=this.ax;}else if(this.Y){var d=document.layers[this.A];d.document.open();d.document.writeln(this.ax);d.document.close();}}else{if(this.I!=null&& !this.I.closed){if(this.url!=""){this.I.location.href=this.url;}else{this.I.document.open();this.I.document.writeln(this.ax);this.I.document.close();}this.I.focus();}}};function bU(F){this.dj(F);this.x+=this.offsetX;this.y+=this.offsetY;if(!this.cl&&(this.ax!="")){this.cl=true;this.refresh();}if(this.A!=null){if(this.ae){document.getElementById(this.A).style.left=this.x+"px";document.getElementById(this.A).style.top=this.y+"px";document.getElementById(this.A).style.visibility="visible";}else if(this.aE){document.all[this.A].style.left=this.x;document.all[this.A].style.top=this.y;document.all[this.A].style.visibility="visible";}else if(this.Y){document.layers[this.A].left=this.x;document.layers[this.A].top=this.y;document.layers[this.A].visibility="visible";}}else{if(this.I==null||this.I.closed){if(this.x<0){this.x=0;}if(this.y<0){this.y=0;}if(screen&&screen.availHeight){if((this.y+this.height)>screen.availHeight){this.y=screen.availHeight-this.height;}}if(screen&&screen.availWidth){if((this.x+this.width)>screen.availWidth){this.x=screen.availWidth-this.width;}}var cV=window.eL||(document.layers&& !navigator.mimeTypes['*'])||navigator.vendor=='KDE'||(document.childNodes&& !document.all&& !navigator.taintEnabled);this.I=window.open(cV?"":"about:blank","window_"+F,this.bv+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");}this.refresh();}};if(typeof aL=="undefined")aL=function(){};function bS(){aL();if(this.A!=null){if(this.ae){document.getElementById(this.A).style.visibility="hidden";}else if(this.aE){document.all[this.A].style.visibility="hidden";}else if(this.Y){document.layers[this.A].visibility="hidden";}}else{if(this.I&& !this.I.closed){this.I.close();this.I=null;}}};function bR(e){if(this.A!=null){if(this.Y){var cs=e.pageX;var cq=e.pageY;var t=document.layers[this.A];if((cs>t.left)&&(cs<t.left+t.clip.width)&&(cq>t.top)&&(cq<t.top+t.clip.height)){return true;}else{return false;}}else if(document.all){var t=window.event.srcElement;while(t.parentElement!=null){if(t.id==this.A){return true;}t=t.parentElement;}return false;}else if(this.ae&&e){var t=e.target;while(t.parentNode!=null){if(t.id==this.A){return true;}t=t.parentNode;}return false;}return false;}return false;};function aW(e){if(this.bH&& !this.de(e)){this.bI();}};function bZ(){this.bH=true;};function am(e){for(var i=0;i<Q.length;i++){if(Q[i]!=null){var p=Q[i];p.cI(e);}}};function be(){if(document.layers){document.captureEvents(Event.MOUSEUP);}window.an=document.onmouseup;if(window.an!=null){document.onmouseup=new Function("window.an(); am();");}else{document.onmouseup=am;}};function cA(){if(!window.bu){window.bu=0;}if(!window.Q){window.Q=new Array();}if(!window.cH){window.cH=true;be();}this.index=bu++;Q[this.index]=this;this.A=null;this.I=null;this.width=0;this.height=0;this.cl=false;this.visible=false;this.bH=false;this.ax="";this.url="";this.bv="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.A=arguments[0];}else{this.type="WINDOW";}this.ae=false;this.aE=false;this.Y=false;if(document.getElementById){this.ae=true;}else if(document.all){this.aE=true;}else if(document.layers){this.Y=true;}else{this.type="WINDOW";}this.offsetX=0;this.offsetY=0;this.dj=bp;this.cG=bY;this.eK=ck;this.dO=aN;this.refresh=ce;this.dV=bU;this.bI=bS;this.ej=ci;this.de=bR;this.dZ=bZ;this.cI=aW;};ew=function(ak,div){this.index=ak;this.A=div;this.de=function(e){if(this.A!=null){if(this.Y){var cs=e.pageX;var cq=e.pageY;var t=document.layers[this.A];if((cs>t.left)&&(cs<t.left+t.clip.width)&&(cq>t.top)&&(cq<t.top+t.clip.height)){return true;}else{return false;}}else if(document.all){var t=window.event.srcElement;while(t.parentElement!=null){if(t.id==this.A){return true;}t=t.parentElement;}return false;}else if(this.ae&&e){var t=e.target;while(t&&t.parentNode!=null){if(t.id==this.A){return true;}t=t.parentNode;}return false;}return false;}return false;};this.bI=function(){var eD=$(this.A);eD.style.display="none";};this.ae=false;this.aE=false;this.Y=false;if(document.getElementById){this.ae=true;}else if(document.all){this.aE=true;}else if(document.layers){this.Y=true;}};var aJ=new Array();aJ[0]={"back":"b_red","dz":"#ffffff","dy":"#C21A1A","dB":"#ffffff"};aJ[1]={"back":"b_gray","dz":"#efefef","dy":"#CCCCCC","dB":"#666666"};aJ[2]={"back":"b_blue","dz":"#E4F3FB","dy":"#81C3E9","dB":"#1C6D9C"};aJ[3]={"back":"b_purple","dz":"#ffffff","dy":"#b6b6a7","dB":"#ffffff"};aJ[9]={"back":"","dz":"#ffffff","dy":"","dB":"#ffffff"};function dX(){var fa="";var eZ=res_h_name.split(";");if(eZ.length>1){res_h_name=eZ[0];if(typeof(res_h_labels)=="undefined")res_h_labels=eZ;else res_h_labels=res_h_labels.split(";");fa='<tr><td align="left" colspan=2><strong>'+n.eY+'</strong></td></tr>'+'<tr><td align="left" colspan=2><select name="tmp_hotel" id="tmp_hotel" onchange="fb(this)">';for(var i=0;i<eZ.length;i++)fa+='<option value="'+eZ[i]+'">'+res_h_labels[i]+'</option>';fa+='</select></td>'+'</tr>';}var cO='<tr  id="res_adult_selection">'+'<td align="left"><strong>'+n.aH+'</strong></td>'+'<td align="left"><select name="tmp_numAdults_0" id="tmp_numAdults_0">';for(var i=1;i<=res_max_people;i++)cO+='<option>'+i+'</option>';cO+='</select></td>'+'</tr>';var cz='<tr  id="res_child_selection">'+'<td align="left"><strong>'+n.aq+'</strong></td>'+'<td align="left"><select name="tmp_numChildren_0" id="tmp_numChildren_0">'+'<option>0</option>'+'<option>1</option>'+'<option>2</option>'+'<option>3</option>'+'<option>4</option>'+'</select></td>'+'</tr>';var bL='<input type="hidden" id="numAdults_0" name="numAdults_0" value="1">';var by='<input type="hidden" id="numChildren_0" name="numChildren_0" value="0">';if(res_people!=1){cO="";}else bL="";if(res_children!=1){cz="";}else by="";var cL='<tr>'+'<td  colspan="2" align="center" style="border-top:1px dotted '+dE+';padding-top:6px">'+'<input type="button" onclick="bJ(\'location\')" name="button8" id="button9" value="'+n.aT+'" style="width:130px"/>'+'<br />'+'<input type="button" onclick="bJ(\'facility\')" name="button8" id="button11" value="'+n.bP+'" style="width:130px"/>'+'<br />'+'<input type="button" onclick="bJ(\'service\')" name="button8" id="button12" value="'+n.cv+'" style="width:130px"/>'+'<br />'+'<input type="button" onclick="bJ(\'picture\')" name="button8" id="button12" value="'+n.cu+'" style="width:130px"/>'+'<br />'+'<input type="button" onclick="bJ(\'description\')" name="button8" id="button13" value="'+n.bg+'" style="width:130px"/></td>'+'</tr>';if(typeof res_extra=="undefined")cL="";else if(res_extra!=1)cL="";var cf="";if(res_new_window==1)cf=' target="_blank" ';if(res_new_window==2)cf=' target="_top" ';eV=document.createElement('div');eV.id='reselivaFormContainer';var eP='<form  method="post" '+cf+'  id="reselivaForm" ';if(res_frame=="")eP+=' action = "'+fe+'hotel/'+res_h_name+'/'+dp+'.php" ';else eP+=' action="'+res_frame+'" ';eP+=' onSubmit="" style="margin:0px">';eP+='<input type="hidden" name="pReferer" id="pReferer" value="0"/>'+'<input type="hidden" name="numRooms" id="numRooms" value="1" />';if(res_frame!=""){eP+='<input type="hidden" name="r_target" id="r_target" value="'+res_target+'" />'+'<input type="hidden" name="r_action" id="r_action" value="'+fe+'hotel/'+res_h_name+'/index.php" />';}eP+='<input type="hidden" name="pRoomTotalPeople0" id="pRoomTotalPeople0" value="1"/>'+'<input type="hidden" name="lang" id="lang" value="'+res_lan+'"/>'+bL+' '+by+'</form>';eV.innerHTML=eP;var dn='<div id="pCalendar" style="visibility:hidden; position:absolute; background-color:white; z-index:10000000"></div>'+'<table width="'+res_t_width+'" border="0" cellpadding="5" cellspacing="0" bgcolor="'+ef+'">'+'<tr>'+'<td><table width="100%" border="0" cellpadding="1" cellspacing="5" ';if(eE=="")dn+='>';else dn+='style="background:url('+ff+'ReselivaBox/images/'+eE+'.jpg) repeat-x;background-color:">';dn+='<tr align="left">'+'<td colspan="2"><span class="res_big">'+n.ah+'</span></td>'+'</tr>'+fa+'<tr align="left">'+'<td colspan="2" style="border-top:1px dotted '+ef+';padding-top:6px"><div style="height:15px; margin-top:5px; width:80px; float:left"><strong>'+n.ct+'</strong></div><div style="float:left;width:115px;"><input type="hidden" name="tmpCheckInDate" id="tmpCheckInDate" /><input type="text" id="tmpCheckInDate2" style="font-family:Tahoma, Geneva, sans-serif;font-size:11px;font-weight:bold;" size="10" readonly="true" onclick="aL(\'A\'); var d=bj(document.getElementById(\'tmpCheckInDate\').value); cX.aV(\'anchorA\',d); return false;"/>'+'<div id="layer" style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></div>'+'<a href="#" onclick="aL(\'A\'); var d=bj(document.getElementById(\'tmpCheckInDate\').value); cX.aV(\'anchorA\',d); return false;" name="anchorA" id="anchorA"><img src="'+ff+'ReselivaBox/images/cal.gif" border="0" /></a> </div></td>'+'</tr>'+'<tr align="left">'+'<td colspan="2" ><div style="height:15px; margin-top:5px; width:80px; float:left"><strong>'+n.cc+'</strong></div><div style="float:left; width:115px;"><input type="hidden" name="tmpCheckOutDate" id="tmpCheckOutDate" /><input type="text" id="tmpCheckOutDate2" style="font-family:Tahoma, Geneva, sans-serif;font-size:11px;font-weight:bold;" size="10"  readonly="true" onclick="aL(\'B\'); var d=bj(document.getElementById(\'tmpCheckOutDate\').value); cb.aV(\'anchorB\',d); return false;"/>'+'<a href="#"    onclick="aL(\'B\'); var d=bj(document.getElementById(\'tmpCheckOutDate\').value); cb.aV(\'anchorB\',d); return false;" name="anchorB" id="anchorB"><img src="'+ff+'ReselivaBox/images/cal.gif" border="0" /></a></div>'+'</td>'+'</tr>'+cO+' '+cz+'<tr>'+'<td colspan="2" align="center"><span>'+' <input type="button" name="button8" id="btnShowPrices" value="'+n.bB+'" style="font-family:Tahoma, Geneva, sans-serif;font-size:11px;font-weight:bold; color:#000; background:#F0F0F0;" onclick="eO();"/>'+'</span></td>'+'</tr>'+cL+'  <tr><td align="center" colspan="2" id="res_r_box_a">'+' <a href="http://www.reseliva.com/engine/">'+n.aB+'</a>'+' </td></tr>'+' </table></td>'+'</tr>'+'</table>';document.getElementById('res_r_box_h').innerHTML=dn;dQ();};var ff;ff="http://www.reseliva.com/";var fe;fe="https://www.reseliva.com/";function ea(src){var script=document.createElement("SCRIPT");script.type="text/javascript";script.charset="utf-8";document.getElementById("res_r_box").appendChild(script);script.src=src;};var es={"en":1,"tr":1,"es":1,"de":1,"el":1,"it":1,"fr":1,"ru":1,"pt":1,"cn":1,"jp":1,"th":1,"pl":1,"in":1,"vi":1,"hu":1,"hi":1};if(typeof res_theme=="undefined")var res_theme=1;if(typeof res_people=="undefined")var res_people=1;if(typeof res_lan=="undefined"||typeof es[res_lan]=="undefined")var res_lan="en";if(typeof(res_children)=="undefined")res_children=0;if(typeof(res_target)=="undefined")res_target="r";if(typeof(res_new_window)=="undefined")res_new_window=0;else res_new_window=res_new_window*1;if(typeof(res_frame)=="undefined")res_frame="";if(typeof res_inline=="undefined")res_inline=0;if(typeof res_inline_always=="undefined")res_inline_always=0;if(res_inline==1){res_inline==0;res_inline_always=0;res_new_window=0;}if(typeof(res_max_people)=="undefined")res_max_people=5;if(res_target=="i")dp="index";else dp="reservation";ea(ff+"ReselivaBox/JS/lang/"+res_lan+".js");var dE=aJ[res_theme].dz;var ef=aJ[res_theme].dy;var eg=aJ[res_theme].dB;var eE=aJ[res_theme].back;res_h_name=res_h_name.replace(/^\s+|\s+$/g,"");var eV=null;function fb(fc){if(!document.getElementById('reselivaForm'))document.body.appendChild(eV);if(res_frame==""){document.getElementById('reselivaForm').action=fe+'hotel/'+fc.value+'/'+dp+'.php';}else{document.getElementById('r_action').value=fe+'hotel/'+fc.value+'/index.php';}};function eO(){if(!document.getElementById('reselivaForm')){document.body.appendChild(eV);}var eT=document.getElementById('reselivaForm');var eS=document.getElementById('tmpCheckInDate').value;eT.appendChild(eN('pCheckInDate',eS));var eQ=document.getElementById('tmpCheckOutDate').value;eT.appendChild(eN('pCheckOutDate',eQ));if(res_people==1){var eW=document.getElementById('tmp_numAdults_0');var eR=eW.options[eW.selectedIndex].innerHTML;eT.appendChild(eN('numAdults_0',eR));}if(res_children==1){var eX=document.getElementById('tmp_numChildren_0');var eU=eX.options[eX.selectedIndex].innerHTML;eT.appendChild(eN('numChildren_0',eU));}if(res_inline==1){var fo=document.getElementById('btnShowPrices');fo.disabled=true;fl("res");}else{document.getElementById("reselivaForm").submit();if(res_new_window!=1){var fo=document.getElementById('btnShowPrices');fo.disabled=true;}}};function eN(title,ak){var dA=null;dA=document.createElement("input");dA.type="hidden";dA.name=title;dA.id=title;dA.value=ak;return dA;};function cP(){document.body.appendChild(document.getElementById("pCalendar"));if(!document.getElementById('reselivaForm'))document.body.appendChild(eV);};function dM(y,m,d){document.getElementById('tmpCheckOutDate').value=d+'/'+m+'/'+y;document.getElementById('tmpCheckOutDate2').value=cX.aD[m-1]+' '+d+', '+y;};function bj(d){d=d.split('/');return dn=d[2]+'-'+d[1]+'-'+d[0];};function dR(y,m,d){document.getElementById('tmpCheckInDate').value=d+'/'+m+'/'+y;document.getElementById('tmpCheckInDate2').value=cX.aD[m-1]+' '+d+', '+y;var dk=new Date(y,m-1,d,0,0,0);var en=document.getElementById('tmpCheckOutDate').value.split('/');var ev=new Date(en[2],en[1]-1,en[0],0,0,0);if(ev-dk<=0||(ev.getMonth()-dk.getMonth()+12*(ev.getFullYear()-dk.getFullYear())>1)){dk.setDate(dk.getDate()+1);document.getElementById('tmpCheckOutDate').value=dk.getDate()+'/'+(dk.getMonth()+1)+'/'+dk.getFullYear();document.getElementById('tmpCheckOutDate2').value=cX.aD[dk.getMonth()]+' '+dk.getDate()+', '+dk.getFullYear();}cb.v="";cb.ai(null,bj(document.getElementById('tmpCheckInDate').value));dk.setMonth(dk.getMonth()+2);dk.setDate(2);var dH=(dk.getMonth()+1)+'/02/'+dk.getFullYear();if(cp-dk>=0){cb.ai(dH,null);}else{dP=(cp.getMonth()+1)+'/02/'+cp.getFullYear();cb.ai(dP,null);}};function er(){var eM=document.getElementsByTagName('head')[0];var el=document.createElement('style');el.type='text/css';el.media='screen';var dn=bF();dn+="#res_r_box td {font-weight:bold;font-size:10px;font-family:Tahoma, Arial, Verdana;color:"+eg+"}\n";dn+=".res_big{font-size:14px;font-weight:bold}";dn+="#res_r_box_a a {color:"+dE+";text-decoration:none}\n";dn+="#res_r_box input {width:auto; height : auto; padding:0px}\n";dn+="#res_r_box select {padding:0px}\n";dn+="#res_r_box table {border-collapse:separate}\n";dn+="#res_r_box input#btnShowPrices{width:130px}\n";if(el.styleSheet)el.styleSheet.cssText=dn;else el.appendChild(document.createTextNode(dn));eM.appendChild(el);return el;};function bJ(page){if(res_inline==1)fl(page);else{if(res_new_window==1||res_new_window==2)window.open('https://www.reseliva.com/hotel/'+res_h_name+'/index.php?p='+page+'&lang='+res_lan);else window.location=fe+'hotel/'+res_h_name+'/index.php?p='+page+'&lang='+res_lan;}};function fd(fA){return fA.constructor==Array;};function f(){var fB=new Object();fB.ft=new Array();fB.fj=new Array();fB.loaded=new Array();fB.fx=function(){if(fd(fB.scripts))fB.ft=fB.scripts;else fB.ft[0]=fB.scripts;if(typeof fB.fG=="undefined")fB.fG=new Object();for(var i=0;i<fB.ft.length;i++){if(!fB.fm(fB.ft[i])){fB.fj.push(this.ft[i]);fB.loaded.push(false);}}var fw=document.getElementsByTagName('head')[0];if(fw){if(fB.fj.length>0){if(typeof fB.fG.disableButton!="undefined")fB.fG.disableButton.disabled=true;if(typeof fB.fG.loadingMessageContainer!="undefined"){if(typeof fB.fG.loadingMessage!="undefined")fB.fG.loadingMessageContainer.innerHTML=fB.fG.loadingMessage;fB.fG.loadingMessageContainer.style.display="";}var fs=new Array();for(var x=0;x<fB.fj.length;x++){fs[x]=document.createElement('script');fs[x].setAttribute('src',fB.fj[x]);fs[x].setAttribute('type','text/javascript');var fE=function(){if(this.readyState=='complete'||this.readyState=='loaded'){fB.fi(this.index);}};fs[x].index=x;fs[x].onreadystatechange=fE;fs[x].onload=function(){fB.fi(this.index)};fw.appendChild(fs[x]);}}else{fB.fk();}}};fB.fi=function(index){if(fB.loaded[index])return;fB.loaded[index]=true;for(var i=0;i<fB.loaded.length;i++){if(!fB.loaded[i])return false;}if(typeof fB.fG.disableButton!="undefined")fB.fG.disableButton.disabled=false;if(typeof fB.fG.loadingMessageContainer!="undefined")fB.fG.loadingMessageContainer.style.display="none";fB.fk();};fB.fm=function(fv){var fu=document.getElementsByTagName("script");for(var i=0;i<fu.length;i++){if(fv==fu[i].getAttribute("src")){return true;}}};return fB;};f.load=function(scripts,fk,attributes){var fy=new f();fy.scripts=scripts;fy.fk=fk;fy.fG=attributes;fy.fx();};var aa=3;fl=function(page){fr(ff+"ReselivaBox/fancybox/jquery.fancybox-1.3.1.css?"+aa);f.load("http://code.jquery.com/jquery-1.4.2.min.js?"+aa,function(){fq(page)},{});};fr=function(fz){var fF=document.getElementsByTagName("head")[0];var fD=document.createElement('link');fD.type='text/css';fD.rel='stylesheet';fD.href=fz;fD.media='screen';fF.appendChild(fD);};fq=function(page){if(!res_inline_always&&($(window).width()<1100||$(window).height()<620)){if(page=="res"){$("#reselivaForm").submit();var fo=document.getElementById('btnShowPrices');fo.disabled=false;return;}else window.location=fe+'hotel/'+res_h_name+'/index.php?p='+page+'&lang='+res_lan;}var fn=new Array();fn=[ff+"ReselivaBox/fancybox/jquery.mousewheel-3.0.2.pack.js?"+aa,ff+"ReselivaBox/fancybox/jquery.fancybox-1.3.1.js?"+aa];f.load(fn,function(){fp(page)},{});};fp=function(page){$.fancybox({'autoDimensions':true,'width':1030,'height':1000,'transitionIn':'none','transitionOut':'none','overlayOpacity':'0.6','type':'iframe','href':'','iframeName':'fancy_window'});if(page=="res")dx();else document.getElementById('fancybox-frame').src=fe+'hotel/'+res_h_name+'/index.php?p='+page+'&lang='+res_lan;};function dx(){document.getElementById('reselivaForm').target='fancy_window';$("#reselivaForm").submit();var fo=document.getElementById('btnShowPrices');fo.disabled=false;document.getElementById('reselivaForm').target='';};function dQ(){cX=new cJ("pCalendar");cX.offsetX= -98;cX.offsetY=20;cX.aS("dR");cX.cK(n.MONTHS[0],n.MONTHS[1],n.MONTHS[2],n.MONTHS[3],n.MONTHS[4],n.MONTHS[5],n.MONTHS[6],n.MONTHS[7],n.MONTHS[8],n.MONTHS[9],n.MONTHS[10],n.MONTHS[11]);cX.cM(n.L[0],n.L[1],n.L[2],n.L[3],n.L[4],n.L[5],n.L[6]);cX.da(n.dm);var cj=new Date();var bC=new Date(cj);document.getElementById('tmpCheckInDate').value=bC.getDate()+'/'+(bC.getMonth()+1)+'/'+bC.getFullYear();var fg=document.getElementById('tmpCheckInDate').value.split("/");document.getElementById('tmpCheckInDate2').value=cX.aD[fg[1]-1]+' '+fg[0]+', '+fg[2];var dh=new Date(cj);dh.setDate(bC.getDate()+1);document.getElementById('tmpCheckOutDate').value=dh.getDate()+'/'+(dh.getMonth()+1)+'/'+dh.getFullYear();var fg=document.getElementById('tmpCheckOutDate').value.split("/");document.getElementById('tmpCheckOutDate2').value=cX.aD[fg[1]-1]+' '+fg[0]+', '+fg[2];var eo=(6-bC.getMonth()%6)+12;cp=new Date(cj);cp.setMonth(cp.getMonth()+eo);cp.setDate(2);var dP=(cp.getMonth()+1)+'/01/'+cp.getFullYear();var bD=new Date(cj);bD.setDate(bC.getDate()-1);var bD=(bD.getMonth()+1)+'/'+(bD.getDate())+'/'+bD.getFullYear();cX.ai(null,bD);cX.ai(dP,null);var dY=(bC.getMonth()+1)+'/'+(bC.getDate())+'/'+bC.getFullYear();bC.setMonth(bC.getMonth()+2);var dH=(bC.getMonth()+1)+'/02/'+bC.getFullYear();cb=new cJ("pCalendar");cb.offsetX= -98;cb.offsetY=20;cb.aS("dM");cb.ai(null,dY);cb.ai(dH,null);cb.cK(n.MONTHS[0],n.MONTHS[1],n.MONTHS[2],n.MONTHS[3],n.MONTHS[4],n.MONTHS[5],n.MONTHS[6],n.MONTHS[7],n.MONTHS[8],n.MONTHS[9],n.MONTHS[10],n.MONTHS[11]);cb.cM(n.L[0],n.L[1],n.L[2],n.L[3],n.L[4],n.L[5],n.L[6]);cb.da(n.dm);er();if(window.addEventListener){window.addEventListener("load",cP,false);}else{window.attachEvent('onload',cP);}} 
