// JavaScript Document

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.f="";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.f=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.f)!="undefined"&&this.f!=null&&this.f!=""){p=this.f;}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, .cpCurrentDate { color:#000000; }\n";result+="."+p+"cpOtherMonthDate { 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+="#res_r_box a { 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.f+'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.f+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.f+'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.f+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.f+'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.f+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.f+'cpMonthNavigation" HREF="'+at+'('+this.index+','+bs+','+aO+');">&lt;</A></TD>';result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.f+'cpMonthNavigation">'+this.aD[B-1]+'</SPAN></TD>';result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.f+'cpMonthNavigation" HREF="'+at+'('+this.index+','+bn+','+aP+');">&gt;</A></TD>';result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.f+'cpYearNavigation" HREF="'+at+'('+this.index+','+B+','+(w-1)+');">&lt;</A></TD>';if(this.au){result+='<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.f+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+w+'" onBlur="'+refresh+'('+this.index+','+B+',this.value-0);"></TD>';}else{result+='<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.f+'cpYearNavigation">'+w+'</SPAN></TD>';}result+='<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.f+'cpYearNavigation" HREF="'+at+'('+this.index+','+B+','+(w+1)+');">&gt;</A></TD>';}else{result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.f+'cpMonthNavigation" HREF="'+at+'('+this.index+','+bs+','+aO+');">&lt;&lt;</A></TD>\n';result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.f+'cpMonthNavigation">'+this.aD[B-1]+' '+w+'</SPAN></TD>\n';result+='<TD CLASS="'+this.f+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.f+'cpMonthNavigation" HREF="'+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.f+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.f+'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.f+aA+'"><SPAN CLASS="'+this.f+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.f+aA+'"><A HREF="javascript:'+P+this.aU+'('+ar+','+aX+','+bd+');'+P+'ac(\''+this.index+'\');" CLASS="'+this.f+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.f+'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.f+'cpTodayTextDisabled">'+this.cn+'</SPAN>\n';}else{result+='		<A CLASS="'+this.f+'cpTodayText" HREF="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.f+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.f+'cpYearNavigation" HREF="javascript:'+P+'X('+this.index+','+(w-1)+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="100">'+w+'</TD>\n';result+='	<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.f+'cpYearNavigation" HREF="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.f+'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.f+'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.f+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.f+'cpYearNavigation" HREF="javascript:'+P+'X('+this.index+','+(w-(aG*2))+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.f+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.f+'cpYearNavigation" HREF="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.f+'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;}};aL=function(){if(navigator.appName=='Microsoft Internet Explorer'){dx=navigator.appVersion;dx=dx.substring(dx.indexOf('MSIE')+5,dx.indexOf('MSIE')+6)*1;if(dx<7){var status='visible';var dQ='';if(arguments.length>0){status='hidden';dQ=arguments[0];}else{dQ='All';}if(dQ=='All'||dQ=='A'){if(document.getElementById('numAdults_0'))document.getElementById('numAdults_0').style.visibility=status;if(document.getElementById('numChildren_0'))document.getElementById('numChildren_0').style.visibility=status;}if(dQ=='All'||dQ=='B'){if(document.getElementById('numAdults_0'))document.getElementById('numAdults_0').style.visibility=status;if(document.getElementById('numChildren_0'))document.getElementById('numChildren_0').style.visibility=status;}}}};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};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(dA)=="undefined")dA=0;if(typeof(res_target)=="undefined")res_target="r";if(typeof(res_new_window)=="undefined")res_new_window="0";if(res_target=="i")dp="index";else dp="reservation";ea("http://www.reseliva.com/ReselivaBox/JS/"+res_lan+".js");var aJ=new Array();aJ[0]={"back":"b_red","dz":"#ffffff","dy":"#C21A1A","dB":"#ffffff"};aJ[1]={"back":"b_gray","dz":"#7A0404","dy":"#CCCCCC","dB":"#FFFFFF"};aJ[2]={"back":"b_blue","dz":"#E4F3FB","dy":"#81C3E9","dB":"#1C6D9C"};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,"");function dX(){var cO='<tr  id="res_adult_selection">'+'<td align="left">'+n.aH+'</td>'+'<td align="left"><select name="numAdults_0" id="numAdults_0">'+'<option>1</option>'+'<option>2</option>'+'<option>3</option>'+'<option>4</option>'+'<option>5</option>'+'</select></td>'+'</tr>';var cz='<tr  id="res_child_selection">'+'<td align="left">'+n.aq+'</td>'+'<td align="left"><select name="numChildren_0" id="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(dA!=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" ';var dn='<form method="post" '+cf+'  id="firstForm" target="_blank" action="https://www.reseliva.com/hotel/'+res_h_name+'/'+dp+'.php" onSubmit="if (res_new_window != 1){ var btn=document.getElementById(\'btnShowPrices\'); btn.disabled=\'disabled\'; btn.style.cursor=\'wait\';}" style="margin:0px">'+'<div id="pCalendar" style="visibility:hidden; position:absolute; background-color:white; z-index:10000000"></div>'+'<table width="'+res_t_width+'" border="0" cellpadding="0" cellspacing="0" bgcolor="#990000">'+'<tr>'+'<td><table  height="245" width="100%" border="0" cellpadding="1" cellspacing="5" style="background:url(images/reservation-bg.jpg) repeat-x;background-color:">'+'<tr align="left">'+'<td colspan="2"><span class="res_big">'+n.ah+'</span></td>'+'</tr>'+'<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="text" name="pCheckInDate" id="pCheckInDate" size="10" readonly="true" onclick="aL(\'A\'); var d=bj(document.getElementById(\'pCheckInDate\').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(\'pCheckInDate\').value); cX.aV(\'anchorA\',d); return false;" name="anchorA" id="anchorA"><img src="http://www.reseliva.com/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="text" name="pCheckOutDate" id="pCheckOutDate" size="10"  readonly="true" onclick="aL(\'B\'); var d=bj(document.getElementById(\'pCheckOutDate\').value); cb.aV(\'anchorB\',d); return false;"/>'+' <a href="#"    onclick="aL(\'B\'); var d=bj(document.getElementById(\'pCheckOutDate\').value); cb.aV(\'anchorB\',d); return false;" name="anchorB" id="anchorB"><img src="http://www.reseliva.com/ReselivaBox/images/cal.gif" border="0" /></a></div>'+'<input type="hidden" name="pReferer" id="pReferer" value="0"/>'+'<input type="hidden" name="numRooms" id="numRooms" value="1" />'+'<input type="hidden" name="pRoomTotalPeople0" id="pRoomTotalPeople0" value="1"/>'+'<input type="hidden" name="lang" id="lang" value="'+res_lan+'"/>'+bL+' '+by+'</td>'+'</tr>'+cO+' '+cz+'<tr>'+'<td colspan="2" align="center"><label>'+' <input type="submit" name="button8" id="btnShowPrices" value="'+n.bB+'" style="width:130px"/>'+'</label></td>'+'</tr>'+cL+'  <tr><td align="center" colspan="2" id="res_r_box_a">'+' <a href="http://www.reseliva.com">'+n.aB+'</a>'+' </td></tr>'+' </table></td>'+'</tr>'+'</table>'+'</form>';document.getElementById('res_r_box_h').innerHTML=dn;var cj=new Date();var bC=new Date(cj);document.getElementById('pCheckInDate').value=bC.getDate()+'/'+(bC.getMonth()+1)+'/'+bC.getFullYear();var dh=new Date(cj);dh.setDate(bC.getDate()+1);document.getElementById('pCheckOutDate').value=dh.getDate()+'/'+(dh.getMonth()+1)+'/'+dh.getFullYear();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=new cJ("pCalendar");cX.offsetX= -98;cX.offsetY=20;cX.aS("dR");cX.ai(null,bD);cX.ai(dP,null);cX.cK(n.aa[0],n.aa[1],n.aa[2],n.aa[3],n.aa[4],n.aa[5],n.aa[6],n.aa[7],n.aa[8],n.aa[9],n.aa[10],n.aa[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 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.aa[0],n.aa[1],n.aa[2],n.aa[3],n.aa[4],n.aa[5],n.aa[6],n.aa[7],n.aa[8],n.aa[9],n.aa[10],n.aa[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);}};function cP(){document.body.appendChild(document.getElementById("pCalendar"));};function dM(y,m,d){document.getElementById('pCheckOutDate').value=d+'/'+m+'/'+y;};function bj(d){d=d.split('/');return dn=d[2]+'-'+d[1]+'-'+d[0];};function dR(y,m,d){document.getElementById('pCheckInDate').value=d+'/'+m+'/'+y;var dk=new Date(y,m-1,d,0,0,0);var en=document.getElementById('pCheckOutDate').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('pCheckOutDate').value=dk.getDate()+'/'+(dk.getMonth()+1)+'/'+dk.getFullYear();}cb.v="";cb.ai(null,bj(document.getElementById('pCheckInDate').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-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";if(el.styleSheet)el.styleSheet.cssText=dn;else el.appendChild(document.createTextNode(dn));eM.appendChild(el);return el;};function bJ(page){window.location='https://www.reseliva.com/hotel/'+res_h_name+'/index.php?p='+page+'&lang='+res_lan;}













 