var NN4=!1;function fOnload(){fInitLayer()}function popup(a,c){var b=parent.open(a,c,"top=200,left=200,width=400,height=200,scrollbars=1,resizable=1");b&&a.split(":")[0]=="mailto"?b.close():b&&!c&&b.focus()}var _startc,_endc;function fStartPop(a,c,b){b!=null?setSeparator(b):setSeparator("/");_startc=a;_endc=c;b=gEnd;gBegin=[gToday[0],gToday[1],gToday[2]];fPopCalendar(a,[gBegin,b,b],c)}
function fEndPop(a,c,b){b!=null?setSeparator(b):setSeparator("/");_startc=a;_endc=c;a=fParseInput(a.value);b=new Date;gBegin=[gToday[0],gToday[1],gToday[2]];a||(a=gBegin);b=new Date(a[0],a[1]-1,a[2]+1);b=[b.getFullYear(),b.getMonth()+1,b.getDate()];fPopCalendar(c,[b,gEnd,a])}function fClearSelected(){_startc.value="";_endc.value="";fUpdSelect(0,0,0);gRange=[gBegin,gEnd];gdBegin=new Date(gBegin[0],gBegin[1]-1,gBegin[2]);gdEnd=new Date(gEnd[0],gEnd[1]-1,gEnd[2]);fRepaint()}
var _highlite_background="black",_highlite_fontColor="white",_pop_length=7,_pop_width=80;gsCalTitle="fGetCalTitle()";function fGetCalTitle(){return"&nbsp;"+gMonths[gCurMonth[1]-1]+(NN4?" ":" ")+gCurMonth[0]}NN4&&_nn4_css.push("YearBox");giFreeDiv=2;
function fInitLayer(){if(!NN4){var a=fGetById(document,"freeDiv1");a.style.top=(SA?2:IE&&!MAC?0:6)+"px";a.style.left=(SA?63:65)+"px";a.style.border=0;fDrawLayer(1,"<input class='YearBox' id='yearInput' value='' maxlength=4 size=4 onkeyup='if(this.value.length==4){if(!isNaN(this.value))fSetCal(this.value,gCurMonth[1],0,true,event);this.select();this.blur()}' onblur='fToggleLayer(1,false);if(SA)this.blur()' onfocus='this.value=gCurMonth[0];this.select()' onclick='this.select()' onselectstart='event.cancelBubble=true'>")}}
function fPopMenu(){var a=NN4?document.freeDiv0:fGetById(document,"freeDiv0");if(NN4?a.visibility=="show":a.style.visibility=="visible")fToggleLayer(0,!1);else{fSetDPop(gCurMonth[0],gCurMonth[1]);if(NN4)with(a)left=25,top=22;else with(a.style)left="25px",top="4px";fToggleLayer(0,!0)}}var _tmid=null;
function fSetDPop(a,c){var b=_pop_length,g=_pop_width,h=NN4||IE4?"":" onmouseover='fToggleColor(this,0)' onmouseout='fToggleColor(this,1)' ",d=fCalibrate(a,c),f=[NN4||IE4||IE&&MAC?"<table border=1 cellspacing=0 cellpadding=0><tr><td>":"","<div onmouseover='clearTimeout(_tmid)' onmouseout='_tmid=setTimeout(\"fToggleLayer(0,false)\",100)'><table class='PopMenu' border=0 cellspacing=0 cellpadding=0>"];fBfRange(d[0],d[1])||f.push("<tr><td align='center' class='PopMenuItem' nowrap width=",g,h," onclick='fSetDPop(",
d[0],",",d[1]-b,")'><a class='PopMenuItem' href='javascript:void(0)' onclick='if(NN4)fSetDPop(",d[0],",",d[1]-b,");return false;'>","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","-","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","</a></td></tr>");for(var i=0;i<b;i++){var e=fCalibrate(d[0],d[1]+i);fIsOutRange(e[0],e[1])||f.push("<tr><td align='center' class='PopMenuItem' nowrap width=",g,h," onclick='fToggleLayer(0,false);fSetCal(",e[0],",",e[1],",0,true,event);'><a class='PopMenuItem' href='javascript:void(0)' onclick='if(NN4)fSetCal(",
e[0],",",e[1],",0,true,event);return false;'>",gMonths[e[1]-1]," ",e[0],"</a></td></tr>")}fAfRange(e[0],e[1])||f.push("<tr><td align='center' class='PopMenuItem' nowrap width=",g,h," onclick='fSetDPop(",d[0],",",d[1]+b,")'><a class='PopMenuItem' href='javascript:void(0)' onclick='if(NN4)fSetDPop(",d[0],",",d[1]+b,");return false;'>","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","+","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","</a></td></tr>");f.push("</table></div>",NN4||IE4||IE&&MAC?"</td></tr></table>":"");
fDrawLayer(0,f.join(""))}var _cPair=[];function fToggleColor(a,c){if(!NN4&&!IE4)c==0?(_cPair[0]=a.style.backgroundColor,a.style.backgroundColor=_highlite_background,_cPair[1]=a.firstChild.style.color,a.firstChild.style.color=_highlite_fontColor):(a.style.backgroundColor=_cPair[0],a.firstChild.style.color=_cPair[1])}function fToggleLayer(a,c){var b=NN4?eval("document.freeDiv"+a):fGetById(document,"freeDiv"+a);NN4?b.visibility=c?"show":"hide":b.style.visibility=c?"visible":"hidden"}
function fDrawLayer(a,c){var b=NN4?eval("document.freeDiv"+a):fGetById(document,"freeDiv"+a);if(IE4||IE&&MAC)b.style.border="0px";if(NN4)with(b.document)clear(),open(),write(c),close();else b.innerHTML=c+"\n"};
