/*
	DateClick Popup Date Picker Copyright 2005 Primoris Software, all rights reserved.
	http://www.primorissoftware.com
	This copy of DateClick is licensed for commercial use in a single domain.
	Use of DateClick Professional without purchasing a license per domain is illegal and violates the terms of the EULA.
*/
     function calendar(BL){this.Version="1.4";this.Cw=0;this.qF=0;this.uY=0;this.oG=new fb(BL);this.ED=new Date();this.XN=this.ED.getFullYear();this.sT=glbCalendars.length;this.ES=Array(43);this.aryMonths=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");this.aryDays=Array("S","M","T","W","T","F","S","S");this.FullMonthNames=['January','February','March','April','May','June','July','August','September','October','November','December'];this.FullDayNames=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];this.Xp="Please select a future date";glbCalendars[glbCalendars.length]=this;this.mM="caldiv_"+this.sT;this.sr=false;this.UK=null;this.nW=null;this.UE=false;this.isOpen=false;this.Wt=0;this.Ut=0;this.IU={x:0,y:0,rR:0,xj:0};this.hY={x:0,y:0,rR:0,xj:0};this.qX={x:0,y:0,rR:0,xj:0};this.RT="";this.Rp=false;var Oi=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);this.mB=Oi?"title":"alt"; this.oo=Array(3);this.cr=""; this.rB=null;this.dU=null;this.JP=null; this.Lr=this.oG.Item("FIELD")?eval(this.oG.Item("FIELD")):null;this.LK=this.oG.Item("FORMAT")?this.oG.Item("FORMAT"):"0";this.wv=this.oG.Item("DELIMITER")?this.oG.Item("DELIMITER"):"/";this.xe=false; switch(this.LK){case "1": this.xk="D"+this.wv+"M"+this.wv+"YYYY";break;case "2": this.xk="YYYY"+this.wv+"M"+this.wv+"D";break;default:this.xk="M"+this.wv+"D"+this.wv+"YYYY";}  this.vw=this.oG.Item("ZEROS")==false?this.oG.Item("ZEROS"):true;this.Ef=this.oG.Item("MOUSEOVER")==true?this.oG.Item("MOUSEOVER"):false;this.rT=this.oG.Item("SHOWDAYS")==false?this.oG.Item("SHOWDAYS"):true;this.Sm=this.oG.Item("DELAY")?this.oG.Item("DELAY"):2000;this.la=this.oG.Item("BEGINONMONDAY")?1:0;this.Ud=this.oG.Item("ICONLEFT")?this.oG.Item("ICONLEFT"):null;this.XU=this.oG.Item("ICONTOP")?this.oG.Item("ICONTOP"):null;this.BH=this.oG.Item("DIR")?this.oG.Item("DIR"):"basic";this.Rn=this.oG.Item("MONTH")?this.oG.Item("MONTH"):1;this.Es=this.oG.Item("YEAR")?this.oG.Item("YEAR"):1;this.pQ=this.oG.Item("SHADOW")==true?true:false;this.uv=this.oG.Item("CLOSE")==false?false:true;this.eT=this.oG.Item("MOVEMODE")?this.oG.Item("MOVEMODE"):0;this.fU=this.oG.Item("INVALID")?this.oG.Item("INVALID"):0;this.VU=this.oG.Item("FUNCTION")?this.oG.Item("FUNCTION"):null;this.uA=this.oG.Item("TOOLTIP")?this.oG.Item("TOOLTIP"):"Click here to visually select a date with DateClick...";this.xF=this.oG.Item("STATIC")?this.oG.Item("STATIC"):0;if(this.oG.Item("MASK")) this.xk=this.oG.Item("MASK"); this.varTitle=this.uA; var xw;if(this.BH){if(this.BH.indexOf("/")>=0){xw=this.BH.split("/");this.vm=xw[xw.length-1];}else{this.vm=this.BH?this.BH:"basic";}}else{this.vm=this.BH?this.BH:"basic";}this.n=n;this.R=R;this.P=P;this.Z=Z;this.H=H;this.m=m;this.q=q;this.N=N;this.l=l;this.c=c;this.A=A;this.V=V;this.U=U;this.g=g;this.a=a;this.Y=Y;this.X=X;this.T=T;this.writeCalendar=writeCalendar;this.C=C;this.r=r;this.b=b;this.f=f;this.s=s;this.v=v;this.p=p;this.w=w;this.u=u;this.L=L;this.Q=Q;this.G=G;this.d=d;this.J=J;this.B=B;this.O=O;this.W=W;this.K=K;fD=this;function M(){}function W(TS){if(fD.Lr) fD.Lr.value=K(TS);}function writeCalendar(){  var IJ,Zb; IJ=document.all?"onClick":"onMouseDown";var pa=(document.all&&!document.getElementById)?"width:20;":"";var cW=fD.Ef?"onMouseOver":IJ;var OF;OF=fD.pQ?"filter: progid:DXImageTransform.Microsoft.DropShadow(color=#777788,direction=135,strength=2);":"";var LX=fD.XU?"top:"+fD.XU+";":"";LX+=fD.Ud?"left:"+fD.Ud+";":"";LX+=LX.length>0?"position: absolute;":"";fD.T(); if(fD.xF<1){document.write("<img id='cal' src='/admin/Objects/DateClick/"+fD.BH+"/calendar.gif' border='0' align='top' style='"+LX+"' "+cW+"='glbCalendars["+fD.sT+"].O();glbCalendars["+fD.sT+"].n(event);if (window.event)window.event.cancelBubble=true;' title='"+fD.varTitle+"'>");Zb="display:none;";}else Zb="display:inline;";  document.write("<div id='"+fD.mM+"' ");document.write("onMouseOut='glbCalendars["+fD.sT+"].w();' ");document.write("style='"+OF+pa+"position:absolute;"+Zb+"' class='"+fD.vm+"-cl-body'> "); document.write(fD.v()); document.write("</div>"); if(fD.Es){document.write("<div id='"+fD.mM+"_year' ");document.write("onMouseOut='glbCalendars["+fD.sT+"].w();' ");document.write("onMouseOver='glbCalendars["+fD.sT+"].A(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> "); document.write(fD.s()); document.write("</div>");} if(fD.Rn){document.write("<div id='"+fD.mM+"_month' ");document.write("onMouseOut='glbCalendars["+fD.sT+"].u();' ");document.write("onMouseOver='glbCalendars["+fD.sT+"].A(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> "); document.write(fD.f()); document.write("</div>");} document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+fD.mM+"_ghost'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+fD.mM+"_ghost_mo'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+fD.mM+"_ghost_year'></IFRAME>\n");  if(this.RT){if(confirm("The following options are not available in DateClick Standard Edition:\n"+ this.RT+"\nTo obtain DateClick Professional or Developer, please "+ "click 'OK' to be redirected straight to our website.")){document.location.href="http://www.primorissoftware.com/purchase.asp";}}}function h(){}function n(lH){var Cg,BY,bu;var TS;lH=op(lH);bu=fD.p(lH);gU();if(Os) fD.xe=true;if(document.getElementById){Cg=document.getElementById(fD.mM);if(fD.xe) BY=document.getElementById(fD.mM+"_ghost");}else if(document.all){Cg=document.all[fD.mM];if(fD.xe) BY=document.all[fD.mM+"_ghost"];}else Cg=document.layers[fD.mM];fD.UK=Cg;fD.nW=BY;if(fD.isOpen){if(fD.xe){fD.d(BY,Cg);BY.style.display="block";}return false;}fD.g();clearInterval(fD.rB); for(var eH=0;eH<glbCalendars.length;eH++){if(glbCalendars[eH]==fD) glbCalendars[eH].sr=true;else glbCalendars[eH].sr=false;if(!glbCalendars[eH].sr){glbCalendars[eH].R();}}if(Cg){Cg.style.zIndex=++Nu; Cg.style.display="block";if(!fD.Wt){fD.G(Cg,bu);}fD.isOpen=true;fD.IU=Dj(Cg);if(fD.xe){BY.style.display="block";fD.d(BY,Cg);}if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;}}return false;}function m(lH){var Cg,IK,Jk,BY,bu=fD.p(lH);if(fD.UE) return false;clearInterval(fD.rB);if(document.getElementById){Cg=document.getElementById(fD.mM);IK=document.getElementById(fD.mM+"_month");if(fD.xe) BY=document.getElementById(fD.mM+"_ghost_mo");}else if(document.all){Cg=document.all[fD.mM];IK=document.all[fD.mM+"_month"];if(fD.xe) BY=document.all[fD.mM+"_ghost_mo"];}else{Cg=document.layers[fD.mM];IK=document.layers[fD.mM+"_month"];}fD.P();if(Cg){IK.style.display="block";IK.style.zIndex=++Nu;fD.J(Cg,IK );fD.hY=Dj(IK);if(fD.xe){fD.d(BY,IK );BY.style.display="block";}}}function H(lH){var Cg,qv,Jk,bu=fD.p(lH);if(fD.UE) return false;clearInterval(fD.rB);if(document.getElementById){Cg=document.getElementById(fD.mM);qv=document.getElementById(fD.mM+"_year");if(fD.xe) BY=document.getElementById(fD.mM+"_ghost_year");}else if(document.all){Cg=document.all[fD.mM];qv=document.all[fD.mM+"_year"];if(fD.xe) BY=document.all[fD.mM+"_ghost_year"];}else{Cg=document.layers[fD.mM];qv=document.layers[fD.mM+"_year"];}fD.Z();if(Cg){qv.style.display="block";fD.B(Cg,qv );qv.style.zIndex=++Nu;fD.qX=Dj(qv);if(fD.xe){fD.d(BY,qv );BY.style.display="block";}}}function R(){var Cg,BY;if(!fD.isOpen) return false;if(document.getElementById){Cg=document.getElementById(fD.mM).style;if(fD.xe) BY=document.getElementById(fD.mM+"_ghost").style;}else if(document.all){Cg=document.all[fD.mM].style;if(fD.xe) BY=document.all[fD.mM+"_ghost"].style;}else{Cg=document.layers[fD.mM];}if(Cg){Cg.display="none";if(fD.xe) BY.display="none";}if(fD.Es) fD.P();if(fD.Rn) fD.Z();fD.isOpen=false;clearInterval(fD.rB);}function Z(){var IK,BY;if(document.getElementById){IK=document.getElementById(fD.mM+"_month");if(IK) IK=IK.style;if(fD.xe) BY=document.getElementById(fD.mM+"_ghost_mo").style;}else if(document.all){IK=document.all[fD.mM+"_month"];if(IK) IK=IK.style;if(fD.xe) BY=document.all[fD.mM+"_ghost_mo"].style;}else{IK=document.layers[fD.mM+"_month"];}if(IK){IK.display="none";fD.hY={x:0,y:0,rR:0,xj:0};if(fD.xe) BY.display="none";}}function P(){var qv,BY;if(document.getElementById){qv=document.getElementById(fD.mM+"_year");if(qv) qv=qv.style;if(fD.xe) BY=document.getElementById(fD.mM+"_ghost_year").style;}else if(document.all){qv=document.all[fD.mM+"_year"];if(qv) qv=qv.style;if(fD.xe) BY=document.all[fD.mM+"_ghost_year"].style;}else{qv=document.layers[fD.mM+"_year"];}if(qv){qv.display="none";fD.qX={x:0,y:0,rR:0,xj:0};if(fD.xe) BY.display="none";}}function o(){}function A(gH){clearInterval(fD.rB);if(gH.className==fD.vm+"-cl-on-month") gH.className=fD.vm+"-cl-on-month-lit";else if(gH.className==fD.vm+"-cl-off-month") gH.className=fD.vm+"-cl-off-month-lit";else if(gH.className==fD.vm+"-cl-year") gH.className=fD.vm+"-cl-year-lit";}function V(gH){if(gH.className==fD.vm+"-cl-on-month-lit") gH.className=fD.vm+"-cl-on-month";else if(gH.className==fD.vm+"-cl-off-month-lit") gH.className=fD.vm+"-cl-off-month";else if(gH.className==fD.vm+"-cl-year-lit") gH.className=fD.vm+"-cl-year";}function q(){fD.ED.setMonth(++fD.qF);T();U(fD.mM,v());}function l(){fD.XN+=10;U(fD.mM+"_year",s());}function N(){fD.ED.setMonth(--fD.qF);T();U(fD.mM,v());}function c(){fD.XN-=10;U(fD.mM+"_year",s());}function C(mY){var rtnDt=new Date(mY.getAttribute(fD.mB));if(fD.fU==1&&Date.parse(rtnDt.toLocaleString())<Date.parse(fD.K(Date()))){alert(fD.Xp);}else if(fD.fU==2&&Date.parse(rtnDt.toLocaleString())<=Date.parse(fD.K(Date()))){alert(fD.Xp);} fD.cr=fD.K(rtnDt);if(fD.Lr){if(fD.Lr) fD.Lr.value=fD.K(rtnDt);}if(fD.VU){eval(fD.VU+"(fD.K(rtnDt))");}if(fD.uv) fD.R();}function b(Vn,Tx){fD.ED.setFullYear(Vn);T();U(fD.mM,v());fD.sr=true;fD.P(); if(window.event) event.cancelBubble=true;else Tx.stopPropagation();}function r(iK,Tx){fD.ED.setMonth(iK);T();U(fD.mM,v());fD.sr=true;fD.Z(); if(window.event) event.cancelBubble=true;else Tx.stopPropagation();}function t(){}function K(TS){OO=[ 'st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st' ];var gs=fD.xk;var cQ='DMYHdhmst'.split('' );var dr=new Array();var Xh=0;var vX;var nU=/\[(\d+)\]/; var xq=new Date(TS);var LM=xq.getDay();var date=xq.getDate();var Yt=xq.getMonth();var FK=xq.getFullYear().toString();var qu=xq.getHours();var cg=xq.getMinutes();var mO=xq.getSeconds();var lq=new Object();lq[ 'D' ]=date;lq[ 'd' ]=date+OO[ date-1 ];lq[ 'DD' ]=(date<10 )?'0'+date:date;lq[ 'DDD' ]=fD.FullDayNames[ LM ].substring(0,3 );lq[ 'DDDD' ]=fD.FullDayNames[ LM ];lq[ 'M' ]=Yt+1;lq[ 'MM' ]=(Yt+1<10 )?'0'+(Yt+1 ):Yt+1;lq[ 'MMM' ]=fD.FullMonthNames[ Yt ].substring(0,3 );lq[ 'MMMM' ]=fD.FullMonthNames[ Yt ];lq[ 'Y' ]=(FK.charAt(2 )=='0' )?FK.charAt(3 ):FK.substring(2,4 );lq[ 'YY' ]=FK.substring(2,4 );lq[ 'YYYY' ]=FK; for(var eH=0;eH<cQ.length;eH++){vX=new RegExp('('+cQ[ eH ]+'+)' );while(vX.test(gs ) ){dr[ Xh ]=RegExp.$1;gs=gs.replace(RegExp.$1,'['+Xh+']' );Xh++;}}while(nU.test(gs ) ){gs=gs.replace(nU,lq[ dr[ RegExp.$1 ] ] );}return gs;}function g(){fD.UK.onmousedown=fD.a;if(isNaN(parseInt(fD.UK.style.left))) fD.UK.style.left="0px";if(isNaN(parseInt(fD.UK.style.top))) fD.UK.style.top="0px";fD.UK.LN=new Function();fD.UK.ps=new Function();fD.UK.eX=new Function();}function a(Xn){Xn=op(Xn);var y=parseInt(fD.UK.style.top);var x=parseInt(fD.UK.style.left);fD.Z();fD.P();fD.UK.LN(x,y);fD.UE=true;if(fD.eT){fD.Wt=Xn.clientX;fD.Ut=Xn.clientY;fD.Rp=false;}document.onmousemove=fD.Y;document.onmouseup=fD.X;return false;}function Y(Xn){Xn=op(Xn);var wt=Xn.clientY;var lG=Xn.clientX;var y=parseInt(fD.UK.style.top);var x=parseInt(fD.UK.style.left);var mR,Rb;mR=x+(lG-fD.Wt);Rb=y+(wt-fD.Ut);if(fD.eT>0){if(!fD.Rp){fD.UK.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60);";if(fD.UK.style.cursor) fD.UK.style.cursor="move";fD.Rp=true;}fD.UK.style["left"]=mR+"px";fD.UK.style["top"]=Rb+"px";fD.Wt=lG;fD.Ut=wt;if(fD.nW) fD.nW.style.display="none";}fD.UK.eX(mR,Rb);return false;}function X(){document.onmousemove=null;document.onmouseup=null;fD.UK.ps(parseInt(fD.UK.style["left"]),parseInt(fD.UK.style["top"]));if(fD.eT){fD.UK.style.filter="";if(fD.UK.style.cursor) fD.UK.style.cursor="arrow";fD.IU=Dj(fD.UK);if(fD.nW){fD.d(fD.nW,fD.UK);fD.nW.style.display="block";}if(fD.eT>1){fD.Wt=0;fD.Ut=0;}}fD.UE=false;}function T(){var IB,Ar=0;var WD,Cq;var XI=fD.ED;var eH,EU=1;fD.Cw=XI.getDate();fD.qF=XI.getMonth();fD.uY=XI.getFullYear();IB=new Date(fD.uY,fD.qF,1);  Ar-=IB.getDay()>0?IB.getDay():IB.getDay()+7;for(eH=0;eH<43;eH++){fD.ES[eH]=new Date(IB.getFullYear(),IB.getMonth(),++Ar);}}function f(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";for(var eH=0;eH<12;eH++){ if(eH % 6==0) innerHTML+="</tr><tr>";innerHTML+="<td class='"+fD.vm+"-cl-year' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+fD.sT+"].r("+eH+",event);'>";innerHTML+=fD.aryMonths[eH];innerHTML+="</td>";}innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;}function s(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";innerHTML+="<td class='"+fD.vm+"-cl-year' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+fD.sT+"].l();' align='center' valign='center'>";innerHTML+="<img src='/admin/Objects/DateClick/"+fD.BH+"/up.gif' border='0'>";innerHTML+="</td>";innerHTML+="</tr>";for(var eH=parseInt(fD.XN);eH>parseInt(fD.XN)-10;eH--){innerHTML+="<tr>";innerHTML+="<td class='"+fD.vm+"-cl-year' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+fD.sT+"].b("+eH+",event);'>";innerHTML+=eH;innerHTML+="</td>";innerHTML+="</tr>";}innerHTML+="<tr>";innerHTML+="<td class='"+fD.vm+"-cl-year' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+fD.sT+"].c();' align='center' valign='center'>";innerHTML+="<img src='/admin/Objects/DateClick/"+fD.BH+"/down.gif' border='0'>";innerHTML+="</td>";innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;}function v(){var innerHTML="";var xw,eP,MZ="none",jH="none";var vL; innerHTML+="<table cellspacing=0 cellpadding=0 border=0 id='cal'>"; innerHTML+="<tr class='"+fD.BH+"-header-row'>"; innerHTML+="<td align='left' class='"+fD.vm+"-cl-header' onMouseOver='glbCalendars["+fD.sT+"].A(this);'>"; innerHTML+="<img src='/admin/Objects/DateClick/"+fD.BH+"/prev.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+fD.sT+"].N();return false;' style='cursor:hand;cursor:pointer;'>"; innerHTML+="</td>";innerHTML+="<td align='center' class='"+fD.vm+"-cl-header' onMouseOver='glbCalendars["+fD.sT+"].A(this);'>"; if(fD.Rn==2) MZ="onMouseOver";else if(fD.Rn==1) MZ="onClick"; innerHTML+="<span class='"+fD.vm+"-cl-header' "+MZ+"='return glbCalendars["+fD.sT+"].m(event);' "+(MZ=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=fD.aryMonths[fD.qF]; innerHTML+="</span>&nbsp;"; if(fD.Es==2) jH="onMouseOver";else if(fD.Es==1) jH="onClick"; innerHTML+="<span class='"+fD.vm+"-cl-header' "+jH+"='return glbCalendars["+fD.sT+"].H(event);' "+(jH=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=fD.uY;innerHTML+="</span>"; innerHTML+="</td>"; innerHTML+="<td align='right' class='"+fD.vm+"-cl-header' onMouseOver='glbCalendars["+fD.sT+"].A(this);'>";innerHTML+="<img src='/admin/Objects/DateClick/"+fD.BH+"/next.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+fD.sT+"].q();return false;' style='cursor:hand;cursor:pointer;'>";innerHTML+="</td>"; innerHTML+="</tr>"; innerHTML+="<tr>"; innerHTML+="<td colspan=4 style='background-color:white;'>"; innerHTML+="<table cellspacing=0 cellpadding=0 border=0>"; if(fD.rT){innerHTML+="<tr class='"+fD.vm+"-cl-days'>";for(var x=0;x<7;x++){innerHTML+="<td class='"+fD.vm+"-cl-day' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);'>";innerHTML+=fD.aryDays[fD.la+x];innerHTML+="</td>";}innerHTML+="</tr>";} var tY;for(var eH=1;eH<42;){ innerHTML+="<tr>"; for(var EU=0;EU<7;++EU,eH++){tY=fD.Lr?fD.Lr.value:null;vL=K(fD.ES[eH-1+fD.la]);eP=fD.ES[eH-1+fD.la].toGMTString(); xw=fD.ES[eH-1+fD.la].getMonth()==fD.qF?"cl-on-month":"cl-off-month";if(fD.fU==1&&Date.parse(fD.ES[eH-1+fD.la])<Date.parse(fD.K(Date()))){xw=" "+fD.vm+"-old";}else if(fD.fU==2&&Date.parse(fD.ES[eH-1+fD.la])<=Date.parse(fD.K(Date()))){xw=" "+fD.vm+"-old";}else if(new Date(fD.LK=="1"?uo(tY):tY).toGMTString()==eP){xw=" "+fD.vm+"-tgt";}  innerHTML+="<td class='"+fD.vm+"-"+xw+"' onMouseOver='glbCalendars["+fD.sT+"].A(this);' onMouseOut='glbCalendars["+fD.sT+"].V(this);' title='"+vL+"' style='cursor: hand; cursor: pointer;' "+fD.mB+"='"+eP+"' onClick='glbCalendars["+fD.sT+"].C(this);'>"; innerHTML+=fD.ES[eH-1+fD.la].getDate(); innerHTML+="</td>";} innerHTML+="</tr>";}  innerHTML+="</table>"; innerHTML+="</td>"; innerHTML+="</tr>"; innerHTML+="</table>";return(innerHTML);}function U(RR,JK){if(document.getElementById){document.getElementById(RR ).innerHTML=JK;}else if(document.all){document.all[RR].innerHTML=JK;}else if(document.layers){with(document.layers[RR].document){open();write(JK );close();}}return null;}function p(Xn){var sG=0;var Ho=0;if(!Xn) Xn=window.event;if(Xn){if(Xn.pageX||Xn.pageY){sG=Xn.pageX;Ho=Xn.pageY;}else if(Xn.clientX||Xn.clientY){sG=Xn.clientX+document.body.scrollLeft;Ho=Xn.clientY+document.body.scrollTop;}}var qE={x:sG,y:Ho};return qE;}function w(){if(fD.rB){clearInterval(fD.rB);fD.rB=null;}fD.rB=setInterval("glbCalendars["+fD.sT+"].R()",fD.Sm );}function u(){if(fD.JP){clearInterval(fD.JP);fD.JP=null;}fD.JP=setInterval("glbCalendars["+fD.sT+"].Z()",4000 );fD.w();}function L(){if(fD.dU){clearInterval(fD.dU);fD.dU=null;}fD.dU=setInterval("glbCalendars["+fD.sT+"].P()",4000 );fD.w();}function Q(KC){var qE;if(KC<=9){qE=fD.vw?"0"+KC:KC;}else qE=KC;return qE;}function G(Cg,Ai){var tj=Dj(Cg );var Kd=GJ();if(tj["rR"]+Ai["x"]>Kd["x"]){Cg.style.left=Ai["x"]-tj["rR"];}else Cg.style.left=Ai["x"];if(tj["xj"]+Ai["y"]>Kd["y"]) Cg.style.top=Ai["y"]-tj["xj"];else Cg.style.top=Ai["y"];if(Cg.style.top<=0) Cg.style.top=1;if(Cg.style.left<=0) Cg.style.left=1;}function d(of,Cg){var tj=Dj(Cg );if(tj.x>0){of.style.left=tj.x;of.style.top=tj.y;of.style.width=tj.rR;of.style.height=tj.xj;of.style.zIndex=0;of.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';}}function J(Cg,HH){var nr=Dj(Cg );var tj=Dj(HH );var Kd=GJ();var SU=nr["rR"] / 2;var TJ=tj["rR"] / 2;var LB=nr["x"]-(TJ-SU);var nZ=nr["xj"]+nr["y"];HH.style.left=LB;if(nZ+tj["xj"]>Kd["y"]) HH.style.top=nZ-tj["xj"];else HH.style.top=nZ;}function B(Cg,pN){var nr=Dj(Cg );var cM=Dj(pN );var Kd=GJ();if(cM["rR"]+nr["x"]+nr["rR"]>Kd["x"]) pN.style.left=Kd["x"]-cM["rR"];else pN.style.left=nr["x"]+nr["rR"];if(cM["xj"]+nr["y"]>Kd["y"]) pN.style.top=nr["y"];else pN.style.top=nr["y"];}function O(){var tY;if(fD.Lr){tY=fD.Lr.value;TS=new Date(fD.LK=="1"?uo(tY):tY);}else TS=new Date();if(isNaN(TS)) fD.ED=new Date();else fD.ED=TS;T();U(fD.mM,v());}var fD;}function k(){}     function fb(BL){this.NK=new Array();this.tx=new Array();this.F=F;this.Item=Item;F(BL,this );function F(aG,qt){var eH,An;var jI,Jh;if(aG) An=aG.split(";");else return;var jI,cA,Pv;for(eH=0;eH<An.length;eH++){Pv=An[eH].indexOf(":");if(Pv>0){jI=An[eH].substring(0,Pv).toUpperCase();Jh=An[eH].substring(Pv+1,An[eH].length);if(Jh.toLowerCase()=="true") Jh=true;else if(Jh.toLowerCase()=="false") Jh=false;qt.tx[eH]=jI;qt.NK[eH]=Jh;}}}function Item(st){var eH;for(eH=0;eH<this.tx.length;eH++){if(this.tx[eH]==st){return this.NK[eH];}}return null;}}function Aa(lH){var iS=false;var VP={x:0,y:0};if(window.event){VP.x=event.clientX+document.body.scrollLeft;VP.y=event.clientY+document.body.scrollTop;}else if(lH){VP.x=lH.pageX;VP.y=lH.pageY;}for(var eH=0;eH<glbCalendars.length;eH++){if(!CF(VP,glbCalendars[eH].IU)&&!CF(VP,glbCalendars[eH].hY)&&!CF(VP,glbCalendars[eH].qX)){glbCalendars[eH].R();}else iS=true;glbCalendars[eH].sr=false;}}function CF(Mf,IU){if((Mf.x>IU.x&&Mf.x<IU.x+IU.rR)&&(Mf.y>IU.y&&Mf.y<IU.y+IU.xj)) return true;return false;}function Dj(nN){var kA={x:0,y:0,rR:0,xj:0};if(nN!=null){kA.xj=nN.offsetHeight;kA.rR=nN.offsetWidth;while(nN){kA.x+=nN.offsetLeft;kA.y+=nN.offsetTop;nN=nN.offsetParent;}return(kA);}}function GJ(){var kA={x:0,y:0};if(document.body.clientWidth){kA.x+=document.body.clientWidth;kA.y+=document.body.clientHeight;}else if(window.innerWidth){kA.x+=window.innerWidth;kA.y+=window.innerHeight;}return(kA);} var co="";if(typeof(document.media)=='string'&&document.getElementById&&document.all) co="ie6";else if(document.getElementById&&document.all) co="ie5";else if(document.getElementById&&!document.all) co="ns6";else if(document.all) co="ie4";else if(document.layers) co="ns4";else co="other";var Nu=9999;switch(co){case "ie5":case "ie6":if(document.attachEvent) document.attachEvent('onclick',Aa );break;case "ns6": break;case "ns4":break;}function op(Xn){if(typeof Xn=='undefined') Xn=window.event;if(Xn){if(typeof Xn.layerX=='undefined') Xn.layerX=Xn.offsetX;if(typeof Xn.layerY=='undefined') Xn.layerY=Xn.offsetY;}return Xn;}function gU(){if(co=="ie6"&&!window.opera){if(!document.getElementsByTagName("select")) Os=false;else Os=true;}else Os=false;}function uo(jb){var S=jb,D;S=S.replace(/(\d+).(\d+).(\d+)/,'$3/$2/$1');S=S.replace(/^(\d\d\/)/,'20$1');D=new Date(S);return D;}      var glbCalendars=Array();var Os=Array();