function toggle(A){var B=document.getElementById("bold"+A);
if(B.style.fontWeight=="normal"){B.style.fontWeight="bold";}else{B.style.fontWeight="normal";}}function antitoggle(A){var B=document.getElementById("bold"+A);if(B.style.fontWeight=="bold"){B.style.fontWeight="normal";}}var scwDateNow=new Date(Date.parse(new Date().toDateString()));var scwBaseYear=scwDateNow.getFullYear();
var scwDropDownYears=5;var scwLanguage;function scwSetDefaultLanguage(){try{scwSetLanguage();}catch(A){scwToday="Today:";scwClear="Clear";scwDrag="click here to drag";scwArrMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];scwArrWeekInits=["S","M","T","W","T","F","S"];
scwInvalidDateMsg="The entered date is invalid.\n";scwOutOfRangeMsg="The entered date is out of range.";scwDoesNotExistMsg="The entered date does not exist.";scwInvalidAlert=["Invalid date (",") ignored."];scwDateDisablingError=["Error "," is not a Date object."];scwRangeDisablingError=["Error "," should consist of two elements."];
}}var scwWeekStart=0;var scwWeekNumberDisplay=false;var scwWeekNumberBaseDay=4;var scwShowInvalidDateMsg=true,scwShowOutOfRangeMsg=true,scwShowDoesNotExistMsg=true,scwShowInvalidAlert=true,scwShowDateDisablingError=true,scwShowRangeDisablingError=true;var scwArrDelimiters=["/","-",".",","," "];var scwDateDisplayFormat="mm/dd/yyyy";
var scwDateOutputFormat="MM/DD/YYYY";var scwZindex=1010;var scwBlnStrict=true;var scwClearButton=true;var scwAutoPosition=false;var scwEnabledDay=[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true];
var scwDisabledDates=new Array();var scwActiveToday=false;var scwOutOfMonthDisable=true;var scwOutOfMonthHide=false;var scwOutOfRangeDisable=true;var scwFormatTodayCell=true;var scwTodayCellBorderColour="#d96300";var scwAllowDrag=false;var scwClickToHide=false;document.writeln('<style type="text/css">'+".scw           {padding:1px;vertical-align:middle;}"+"iframe.scw     {position:absolute;z-index:"+scwZindex+";top:0px;left:0px;visibility:hidden;"+"width:1px;height:1px;}"+"table.scw      {padding:0px;visibility:hidden;"+"position:absolute;cursor:default;"+"width:200px;top:0px;left:0px;"+"z-index:"+(scwZindex+1)+";text-align:center;}"+"</style>");
document.writeln('<style type="text/css">'+"/* IMPORTANT:  The SCW calendar script requires all "+"               the classes defined here."+"*/"+"table.scw      {padding:       1px;"+"vertical-align:middle;"+"border:        solid 1px #bababa;"+"font-size:     8pt;"+"font-family:   "+"Verdana,Arial,Helvetica,Sans-Serif;"+"font-weight:   normal;}"+"td.scwDrag,"+"td.scwHead                 {padding:       0px 0px;"+"text-align:    center;}"+"td.scwDrag                 {font-size:     8pt;}"+"select.scwHead             {margin:        3px 1px;"+"font-weight:   normal;"+"font-size:     8pt;"+"font-family:   Verdana,Sans-Serif;"+"text-align:    left;}"+"input.scwHead              {height:        22px;"+"width:         22px;"+"vertical-align:middle;"+"text-align:    center;"+"margin:        2px 1px;"+"font-weight:   bold;"+"font-size:     8pt;"+"font-family:   Verdana,Sans-Serif;}"+"td.scwWeekNumberHead,"+"td.scwWeek                 {padding:       0px;"+"text-align:    center;"+"font-weight:   bold;}"+"td.scwNow,"+"td.scwNowHover,"+"td.scwNow:hover,"+"td.scwNowDisabled          {padding:       0px;"+"text-align:    center;"+"vertical-align:middle;"+"font-weight:   normal;}"+"table.scwCells             {text-align:    right;"+"font-size:     7pt;"+"width:         96%;"+"font-weight:   normal;"+"font-family:Verdana,Sans-Serif;}"+"td.scwCells,"+"td.scwCellsHover,"+"td.scwCells:hover,"+"td.scwCellsDisabled,"+"td.scwCellsExMonth,"+"td.scwCellsExMonthHover,"+"td.scwCellsExMonth:hover,"+"td.scwCellsExMonthDisabled,"+"td.scwCellsWeekend,"+"td.scwCellsWeekendHover,"+"td.scwCellsWeekend:hover,"+"td.scwCellsWeekendDisabled,"+"td.scwInputDate,"+"td.scwInputDateHover,"+"td.scwInputDate:hover,"+"td.scwInputDateDisabled,"+"td.scwWeekNo,"+"td.scwWeeks                {padding:           3px;"+"width:             16px;"+"height:            16px;"+"font-weight:       normal;"+"vertical-align:    middle;}"+"/* Blend the colours into your page here...    */"+"/* Calendar background */"+"table.scw                  {background-color:  #EEEEEE;}"+"/* Drag Handle */"+"td.scwDrag                 {background-color:  #EEEEEE;"+"color:             #CCCCFF;}"+"/* Week number heading */"+"td.scwWeekNumberHead       {color:             #d96300;}"+"/* Week day headings */"+"td.scwWeek                 {color:             #d96300;}"+"/* Week numbers */"+"td.scwWeekNo               {background-color:  #776677;"+"color:             #CCCCCC;}"+"/* Enabled Days */"+"/* Week Day */"+"td.scwCells                {background-color:  #FFFFFF;"+"color:             #444444;}"+"/* Day matching the input date */"+"td.scwInputDate            {background-color:  #D96300;"+"font-weight:		bold;"+"color:             #000000;}"+"/* Weekend Day */"+"td.scwCellsWeekend         {background-color:  #FFFFFF;"+"color:             #000000;}"+"/* Day outside the current month */"+"td.scwCellsExMonth         {background-color:  #E4E4E4;"+"color:             #000000;}"+"/* Today selector */"+"td.scwNow                  {background-color:  #FFFFFF;"+"color:             #FFFFFF;}"+"/* Clear Button */"+"td.scwClear                {padding:           0px;}"+"input.scwClear             {padding:           0px;"+"text-align:        center;"+"font-size:         8pt;}"+"/* MouseOver/Hover formatting "+'       If you want to "turn off" any of the formatting '+"       then just set to the same as the standard format"+"       above."+" "+"       Note: The reason that the following are"+"       implemented using both a class and a :hover"+"       pseudoclass is because Opera handles the rendering"+"       involved in the class swap very poorly and IE6 "+"       (and below) only implements pseudoclasses on the"+"       anchor tag."+"*/"+"/* Active cells */"+"td.scwCells:hover,"+"td.scwCellsHover           {background-color:  #D96300;"+"cursor:            pointer;"+"font-weight: 		bold;"+"color:             #000000;}"+"/* Day matching the input date */"+"td.scwInputDate:hover,"+"td.scwInputDateHover       {background-color:  #BFCDE5;"+"cursor:            pointer;"+"color:             #000000;}"+"/* Weekend cells */"+"td.scwCellsWeekend:hover,"+"td.scwCellsWeekendHover    {background-color:  #BFCDE5;"+"cursor:            pointer;"+"color:             #000000;}"+"/* Day outside the current month */"+"td.scwCellsExMonth:hover,"+"td.scwCellsExMonthHover    {background-color:  #BFCDE5;"+"cursor:            pointer;"+"color:             #000000;}"+"/* Today selector */"+"td.scwNow:hover,"+"td.scwNowHover             {color:             #BFCDE5;"+"cursor:            pointer;"+"font-weight:       bold;}"+"/* Disabled cells */"+"/* Week Day */"+"/* Day matching the input date */"+"td.scwInputDateDisabled    {background-color:  #999999;"+"color:             #000000;}"+"td.scwCellsDisabled        {background-color:  #999999;"+"color:             #000000;}"+"/* Weekend Day */"+"td.scwCellsWeekendDisabled {background-color:  #999999;"+"color:             #CC6666;}"+"/* Day outside the current month */"+"td.scwCellsExMonthDisabled {background-color:  #999999;"+"color:             #666666;}"+"td.scwNowDisabled          {background-color:  #6666CC;"+"color:             #FFFFFF;}"+"a.scwClose                 {color: #184fa1;"+"text-decoration: none;"+"cursor:pointer;"+"font-size:         8pt;}"+"a.scwClose:hover {text-decoration: underline}"+"</style>");
var scwTargetEle,scwTriggerEle,scwMonthSum=0,scwBlnFullInputDate=false,scwPassEnabledDay=new Array(),scwSeedDate=new Date(),scwParmActiveToday=true,scwWeekStart=scwWeekStart%7,scwToday,scwClear,scwDrag,scwArrMonthNames,scwArrWeekInits,scwInvalidDateMsg,scwOutOfRangeMsg,scwDoesNotExistMsg,scwInvalidAlert,scwDateDisablingError,scwRangeDisablingError;
Date.prototype.scwFormat=function(E){var B=0,D="",A="";for(var C=0;C<=E.length;C++){if(C<E.length&&E.charAt(C)==D){B++;}else{switch(D){case"y":case"Y":A+=(this.getFullYear()%Math.pow(10,B)).toString().scwPadLeft(B);break;case"m":case"M":A+=(B<3)?(this.getMonth()+1).toString().scwPadLeft(B):scwArrMonthNames[this.getMonth()];
break;case"d":case"D":A+=this.getDate().toString().scwPadLeft(B);break;default:while(B-->0){A+=D;}}if(C<E.length){D=E.charAt(C);B=1;}}}return A;};String.prototype.scwPadLeft=function(C){var A="";for(var B=0;B<(C-this.length);B++){A+="0";}return(A+this);};Function.prototype.runsAfterSCW=function(){var C=this,A=new Array(arguments.length);
for(var B=0;B<A.length;++B){A[B]=arguments[B];}return function(){for(var D=0;D<arguments.length;++D){A[A.length]=arguments[D];}return(A.shift()==scwTriggerEle)?C.apply(this,A):null;};};function scwID(A){if(document.getElementById(A)||(!document.getElementById(A)&&document.getElementsByName(A).length==0)){return document.getElementById(A);
}else{if(document.getElementsByName(A).length==1){return document.getElementsByName(A)[0];}else{if(document.getElementsByName(A).length>1){alert("SCW"+" \nCannot uniquely identify element named: "+A+".\nMore than one identical NAME attribute defined"+".\nSolution: Assign the required element a unique ID attribute value.");
}}}}var scwNextActionReturn,scwNextAction;function showCal(B,A){scwShow(B,A);}function scwShow(N,O,CC){if(document.getElementById(CC)){SkipDate(document.getElementById(CC).value,N);}if(!O){O=window.event;}if(O.tagName){var F=O;if(scwID("scwIE")){window.event.cancelBubble=true;}else{F.parentNode.addEventListener("click",scwStopPropagation,false);}}else{var F=(O.target)?O.target:O.srcElement;
if(O.stopPropagation){O.stopPropagation();}else{O.cancelBubble=true;}}scwTriggerEle=F;scwParmActiveToday=true;for(var J=0;J<7;J++){scwPassEnabledDay[(J+7-scwWeekStart)%7]=true;for(var I=2;I<arguments.length;I++){if(arguments[I]==J){scwPassEnabledDay[(J+7-scwWeekStart)%7]=false;if(scwDateNow.getDay()==J){scwParmActiveToday=false;
}}}}scwSeedDate=scwDateNow;var C="";if(N.value){C=N.value.replace(/^\s+/,"").replace(/\s+$/,"");}else{if(typeof N.value=="undefined"){var E=N.childNodes;for(var J=0;J<E.length;J++){if(E[J].nodeType==3){C=E[J].nodeValue.replace(/^\s+/,"").replace(/\s+$/,"");if(C.length>0){scwTriggerEle.scwTextNode=E[J];
scwTriggerEle.scwLength=E[J].nodeValue.length;break;}}}}}scwSetDefaultLanguage();scwID("scwDragText").innerHTML=scwDrag;scwID("scwMonths").options.length=0;for(var J=0;J<scwArrMonthNames.length;J++){scwID("scwMonths").options[J]=new Option(scwArrMonthNames[J],scwArrMonthNames[J]);}scwID("scwYears").options.length=0;
for(var J=0;J<scwDropDownYears;J++){scwID("scwYears").options[J]=new Option((scwBaseYear+J),(scwBaseYear+J));}for(var J=0;J<scwArrWeekInits.length;J++){scwID("scwWeekInit"+J).innerHTML=scwArrWeekInits[(J+scwWeekStart)%scwArrWeekInits.length];}if(((new Date(scwBaseYear+scwDropDownYears,0,0))>scwDateNow&&(new Date(scwBaseYear,0,0))<scwDateNow)||(scwClearButton&&(N.readOnly||N.disabled))){scwID("scwFoot").style.display="";
scwID("scwClearButton").value=scwClear;if((new Date(scwBaseYear+scwDropDownYears,0,0))>scwDateNow&&(new Date(scwBaseYear,0,0))<scwDateNow){scwID("scwNow").style.display="";if(scwClearButton&&(N.readOnly||N.disabled)){scwID("scwClear").style.display="";scwID("scwClear").style.textAlign="left";scwID("scwNow").style.textAlign="right";
}else{scwID("scwClear").style.display="none";scwID("scwNow").style.textAlign="center";}}else{scwID("scwClear").style.textAlign="center";scwID("scwClear").style.display="";scwID("scwNow").style.display="none";}}else{scwID("scwFoot").style.display="none";}if(C.length==0||C=="mm/dd/yyyy"){scwBlnFullInputDate=false;
if((new Date(scwBaseYear+scwDropDownYears,0,0))<scwSeedDate||(new Date(scwBaseYear,0,1))>scwSeedDate){scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears/2),5,1);}}else{function M(){var Y=new Array(),V=C.split(new RegExp("[\\"+scwArrDelimiters.join("\\")+"]+","g"));if(V[0]!=null){if(V[0].length==0){V.splice(0,1);
}if(V[V.length-1].length==0){V.splice(V.length-1,1);}}scwBlnFullInputDate=false;scwDateOutputFormat=scwDateOutputFormat.toUpperCase();var X=["D","M","Y"];var Z=new Array();for(var T=0;T<X.length;T++){if(scwDateOutputFormat.search(X[T])>-1){Z[scwDateOutputFormat.search(X[T])]=X[T];}}var U=Z.join("");switch(V.length){case 1:if(scwDateOutputFormat.indexOf("Y")>-1&&V[0].length>scwDateOutputFormat.lastIndexOf("Y")){Y[0]=parseInt(V[0].substring(scwDateOutputFormat.indexOf("Y"),scwDateOutputFormat.lastIndexOf("Y")+1),10);
}else{Y[0]=0;}if(scwDateOutputFormat.indexOf("M")>-1&&V[0].length>scwDateOutputFormat.lastIndexOf("M")){Y[1]=V[0].substring(scwDateOutputFormat.indexOf("M"),scwDateOutputFormat.lastIndexOf("M")+1);}else{Y[1]="6";}if(scwDateOutputFormat.indexOf("D")>-1&&V[0].length>scwDateOutputFormat.lastIndexOf("D")){Y[2]=parseInt(V[0].substring(scwDateOutputFormat.indexOf("D"),scwDateOutputFormat.lastIndexOf("D")+1),10);
}else{Y[2]=1;}if(V[0].length==scwDateOutputFormat.length){scwBlnFullInputDate=true;}break;case 2:Y[0]=parseInt(V[U.replace(/D/i,"").search(/Y/i)],10);Y[1]=V[U.replace(/D/i,"").search(/M/i)];Y[2]=1;break;case 3:Y[0]=parseInt(V[U.search(/Y/i)],10);Y[1]=V[U.search(/M/i)];Y[2]=parseInt(V[U.search(/D/i)],10);
scwBlnFullInputDate=true;break;default:Y[0]=0;Y[1]=0;Y[2]=0;}var R=new RegExp("^(0?[1-9]|[1-2][0-9]|3[0-1])$"),S=new RegExp("^(0?[1-9]|1[0-2]|"+scwArrMonthNames.join("|")+")$","i"),W=new RegExp("^([0-9]{1,2}|[0-9]{4})$");if(W.exec(Y[0])==null||S.exec(Y[1])==null||R.exec(Y[2])==null){if(scwShowInvalidDateMsg){alert(scwInvalidDateMsg+scwInvalidAlert[0]+C+scwInvalidAlert[1]);
}scwBlnFullInputDate=false;Y[0]=scwBaseYear+Math.floor(scwDropDownYears/2);Y[1]="6";Y[2]=1;}return Y;}scwArrSeedDate=M();if(scwArrSeedDate[0]<100){scwArrSeedDate[0]+=(scwArrSeedDate[0]>50)?1900:2000;}if(scwArrSeedDate[1].search(/\d+/)<0){for(J=0;J<scwArrMonthNames.length;J++){if(scwArrSeedDate[1].toUpperCase()==scwArrMonthNames[J].toUpperCase()){scwArrSeedDate[1]=J+1;
break;}}}scwSeedDate=new Date(scwArrSeedDate[0],scwArrSeedDate[1]-1,scwArrSeedDate[2]);}if(isNaN(scwSeedDate)){if(scwShowInvalidDateMsg){alert(scwInvalidDateMsg+scwInvalidAlert[0]+C+scwInvalidAlert[1]);}scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears/2),5,1);scwBlnFullInputDate=false;}else{if((new Date(scwBaseYear,0,1))>scwSeedDate){if(scwBlnStrict&&scwShowOutOfRangeMsg){alert(scwOutOfRangeMsg);
}scwSeedDate=new Date(scwBaseYear,0,1);scwBlnFullInputDate=false;}else{if((new Date(scwBaseYear+scwDropDownYears,0,0))<scwSeedDate){if(scwBlnStrict&&scwShowOutOfRangeMsg){alert(scwOutOfRangeMsg);}scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears)-1,11,1);scwBlnFullInputDate=false;}else{if(scwBlnStrict&&scwBlnFullInputDate&&(scwSeedDate.getDate()!=scwArrSeedDate[2]||(scwSeedDate.getMonth()+1)!=scwArrSeedDate[1]||scwSeedDate.getFullYear()!=scwArrSeedDate[0])){if(scwShowDoesNotExistMsg){alert(scwDoesNotExistMsg);
}scwSeedDate=new Date(scwSeedDate.getFullYear(),scwSeedDate.getMonth()-1,1);scwBlnFullInputDate=false;}}}}for(var J=0;J<scwDisabledDates.length;J++){if(!((typeof scwDisabledDates[J]=="object")&&(scwDisabledDates[J].constructor==Date))){if((typeof scwDisabledDates[J]=="object")&&(scwDisabledDates[J].constructor==Array)){var L=true;
if(scwDisabledDates[J].length!=2){if(scwShowRangeDisablingError){alert(scwRangeDisablingError[0]+scwDisabledDates[J]+scwRangeDisablingError[1]);}L=false;}else{for(var I=0;I<scwDisabledDates[J].length;I++){if(!((typeof scwDisabledDates[J][I]=="object")&&(scwDisabledDates[J][I].constructor==Date))){if(scwShowRangeDisablingError){alert(scwDateDisablingError[0]+scwDisabledDates[J][I]+scwDateDisablingError[1]);
}L=false;}}}if(L&&(scwDisabledDates[J][0]>scwDisabledDates[J][1])){scwDisabledDates[J].reverse();}}else{if(scwShowRangeDisablingError){alert(scwDateDisablingError[0]+scwDisabledDates[J]+scwDateDisablingError[1]);}}}}scwMonthSum=12*(scwSeedDate.getFullYear()-scwBaseYear)+scwSeedDate.getMonth();scwID("scwYears").options.selectedIndex=Math.floor(scwMonthSum/12);
scwID("scwMonths").options.selectedIndex=(scwMonthSum%12);scwID("scwDrag").style.display=(scwAllowDrag)?"":"none";scwShowMonth(0);scwTargetEle=N;var B=parseInt(N.offsetTop,10)+parseInt(N.offsetHeight,10),D=parseInt(N.offsetLeft,10);if(!window.opera){while(N.tagName!="BODY"&&N.tagName!="HTML"){B-=parseInt(N.scrollTop,10);
D-=parseInt(N.scrollLeft,10);N=N.parentNode;}N=scwTargetEle;}do{N=N.offsetParent;B+=parseInt(N.offsetTop,10);D+=parseInt(N.offsetLeft,10);}while(N.tagName!="BODY"&&N.tagName!="HTML");if(scwAutoPosition){var H=parseInt(scwID("scw").offsetWidth,10),K=parseInt(scwID("scw").offsetHeight,10),G=(document.body&&document.body.scrollLeft)?document.body.scrollLeft:(document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:0,Q=(typeof (innerWidth)=="number")?innerWidth:(document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:(document.body&&document.body.clientWidth)?document.body.clientWidth:0,A=(document.body&&document.body.scrollTop)?document.body.scrollTop:(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:0,P=(typeof (innerHeight)=="number")?innerHeight:(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:(document.body&&document.body.clientHeight)?document.body.clientHeight:0;
D-=(D-H+parseInt(scwTargetEle.offsetWidth,10)>=G&&D+H>G+Q)?(H-parseInt(scwTargetEle.offsetWidth,10)):0;B-=(B-K-parseInt(scwTargetEle.offsetHeight,10)>=A&&B+K>A+P)?(K+parseInt(scwTargetEle.offsetHeight,10)):0;}scwID("scw").style.top=B+"px";scwID("scw").style.left=D+"px";scwID("scwIframe").style.top=B+"px";
scwID("scwIframe").style.left=D+"px";scwID("scwIframe").style.width=(scwID("scw").offsetWidth-(scwID("scwIE")?2:4))+"px";scwID("scwIframe").style.height=(scwID("scw").offsetHeight-(scwID("scwIE")?2:4))+"px";scwID("scwIframe").style.visibility="inherit";scwID("scw").style.visibility="inherit";}function scwHide(){scwID("scw").style.visibility="hidden";
scwID("scwIframe").style.visibility="hidden";if(typeof scwNextAction!="undefined"&&scwNextAction!=null){scwNextActionReturn=scwNextAction();scwNextAction=null;}}function scwCancel(A){if(scwClickToHide){scwHide();}scwStopPropagation(A);}function scwStopPropagation(A){if(A.stopPropagation){A.stopPropagation();
}else{A.cancelBubble=true;}}function scwBeginDrag(E){var G=scwID("scw");var C=E.clientX,A=E.clientY,D=G;do{C-=parseInt(D.offsetLeft,10);A-=parseInt(D.offsetTop,10);D=D.offsetParent;}while(D.tagName!="BODY"&&D.tagName!="HTML");if(document.addEventListener){document.addEventListener("mousemove",F,true);
document.addEventListener("mouseup",B,true);}else{G.attachEvent("onmousemove",F);G.attachEvent("onmouseup",B);G.setCapture();}scwStopPropagation(E);function F(H){if(!H){H=window.event;}G.style.left=(H.clientX-C)+"px";G.style.top=(H.clientY-A)+"px";scwID("scwIframe").style.left=(H.clientX-C)+"px";scwID("scwIframe").style.top=(H.clientY-A)+"px";
scwStopPropagation(H);}function B(H){if(!H){H=window.event;}if(document.removeEventListener){document.removeEventListener("mousemove",F,true);document.removeEventListener("mouseup",B,true);}else{G.detachEvent("onmouseup",B);G.detachEvent("onmousemove",F);G.releaseCapture();}scwStopPropagation(H);}}function scwShowMonth(B){var M=new Date(Date.parse(new Date().toDateString())),D=new Date();
M.setHours(12);scwSelYears=scwID("scwYears");scwSelMonths=scwID("scwMonths");if(scwSelYears.options.selectedIndex>-1){scwMonthSum=12*(scwSelYears.options.selectedIndex)+B;if(scwSelMonths.options.selectedIndex>-1){scwMonthSum+=scwSelMonths.options.selectedIndex;}}else{if(scwSelMonths.options.selectedIndex>-1){scwMonthSum+=scwSelMonths.options.selectedIndex;
}}M.setFullYear(scwBaseYear+Math.floor(scwMonthSum/12),(scwMonthSum%12),1);scwID("scwWeek_").style.display=(scwWeekNumberDisplay)?"":"none";if(window.opera){scwID("scwMonths").style.display="inherit";scwID("scwYears").style.display="inherit";}scwTemp=(12*parseInt((M.getFullYear()-scwBaseYear),10))+parseInt(M.getMonth(),10);
if(scwTemp>-1&&scwTemp<(12*scwDropDownYears)){scwSelYears.options.selectedIndex=Math.floor(scwMonthSum/12);scwSelMonths.options.selectedIndex=(scwMonthSum%12);scwCurMonth=M.getMonth();M.setDate((((M.getDay()-scwWeekStart)<0)?-6:1)+scwWeekStart-M.getDay());var Q=new Date(M.getFullYear(),M.getMonth(),M.getDate()).valueOf();
D=new Date(M);if((new Date(scwBaseYear+scwDropDownYears,0,0))>scwDateNow&&(new Date(scwBaseYear,0,0))<scwDateNow){var G=scwID("scwNow");function K(){C(scwDateNow);}if(scwDisabledDates.length==0){if(scwActiveToday&&scwParmActiveToday){G.onclick=K;G.className="scwNow";if(scwID("scwIE")){G.onmouseover=J;
G.onmouseout=J;}}else{G.onclick=null;G.className="scwNowDisabled";if(scwID("scwIE")){G.onmouseover=null;G.onmouseout=null;}if(document.addEventListener){G.addEventListener("click",scwStopPropagation,false);}else{G.attachEvent("onclick",scwStopPropagation);}}}else{for(var N=0;N<scwDisabledDates.length;
N++){if(!scwActiveToday||!scwParmActiveToday||((typeof scwDisabledDates[N]=="object")&&(((scwDisabledDates[N].constructor==Date)&&scwDateNow.valueOf()==scwDisabledDates[N].valueOf())||((scwDisabledDates[N].constructor==Array)&&scwDateNow.valueOf()>=scwDisabledDates[N][0].valueOf()&&scwDateNow.valueOf()<=scwDisabledDates[N][1].valueOf())))){G.onclick=null;
G.className="scwNowDisabled";if(scwID("scwIE")){G.onmouseover=null;G.onmouseout=null;}if(document.addEventListener){G.addEventListener("click",scwStopPropagation,false);}else{G.attachEvent("onclick",scwStopPropagation);}break;}else{G.onclick=K;G.className="scwNow";if(scwID("scwIE")){G.onmouseover=J;G.onmouseout=J;
}}}}}function C(S){if(typeof scwTargetEle.value=="undefined"){scwTriggerEle.scwTextNode.replaceData(0,scwTriggerEle.scwLength,S.scwFormat(scwDateOutputFormat));}else{scwTargetEle.value=S.scwFormat(scwDateOutputFormat);}scwHide();}function I(S){var U=P(S),T=new Date(D);if(U.nodeType==3){U=U.parentNode;
}T.setDate(D.getDate()+parseInt(U.id.substr(8),10));C(T);}function J(S){var T=P(S);if(T.nodeType==3){T=T.parentNode;}switch(T.className){case"scwCells":T.className="scwCellsHover";break;case"scwCellsHover":T.className="scwCells";break;case"scwCellsExMonth":T.className="scwCellsExMonthHover";break;case"scwCellsExMonthHover":T.className="scwCellsExMonth";
break;case"scwCellsWeekend":T.className="scwCellsWeekendHover";break;case"scwCellsWeekendHover":T.className="scwCellsWeekend";break;case"scwNow":T.className="scwNowHover";break;case"scwNowHover":T.className="scwNow";break;case"scwInputDate":T.className="scwInputDateHover";break;case"scwInputDateHover":T.className="scwInputDate";
}return true;}function P(S){if(!S){S=event;}return S.target||S.srcElement;}function H(T){var V=new Date(T);V.setDate(V.getDate()-V.getDay()+scwWeekNumberBaseDay+((T.getDay()>scwWeekNumberBaseDay)?7:0));var U=new Date(V.getFullYear(),0,1);U.setDate(U.getDate()-U.getDay()+scwWeekNumberBaseDay);if(U<new Date(V.getFullYear(),0,1)){U.setDate(U.getDate()+7);
}var S=new Date(U-scwWeekNumberBaseDay+T.getDay());if(S>U){S.setDate(S.getDate()-7);}var W="0"+(Math.round((V-U)/604800000,0)+1);return W.substring(W.length-2,W.length);}var L=scwID("scwCells");for(i=0;i<L.childNodes.length;i++){var E=L.childNodes[i];if(E.nodeType==1&&E.tagName=="TR"){if(scwWeekNumberDisplay){scwTmpEl=E.childNodes[0];
scwTmpEl.innerHTML=H(M);scwTmpEl.style.borderColor=(scwTmpEl.currentStyle)?scwTmpEl.currentStyle["backgroundColor"]:(window.getComputedStyle)?document.defaultView.getComputedStyle(scwTmpEl,null).getPropertyValue("background-color"):"";scwTmpEl.style.display="";}else{E.childNodes[0].style.display="none";
}for(j=1;j<E.childNodes.length;j++){var F=E.childNodes[j];if(F.nodeType==1&&F.tagName=="TD"){E.childNodes[j].innerHTML=M.getDate();var O=new Date(scwBaseYear,scwDateNow.getMonth(),scwDateNow.getDate(),M.getHours());var R=E.childNodes[j],A=((scwOutOfRangeDisable&&(M<(new Date(scwBaseYear,0,1,M.getHours()))||M>(new Date(scwBaseYear+scwDropDownYears,0,0,M.getHours()))))||(M<O))?true:false;
R.style.visibility=(scwOutOfMonthHide&&(M<(new Date(M.getFullYear(),scwCurMonth,1,M.getHours()))||M>(new Date(M.getFullYear(),scwCurMonth+1,0,M.getHours()))))?"hidden":"inherit";for(var N=0;N<scwDisabledDates.length;N++){if((typeof scwDisabledDates[N]=="object")&&(scwDisabledDates[N].constructor==Date)&&Q==scwDisabledDates[N].valueOf()){A=true;
}else{if((typeof scwDisabledDates[N]=="object")&&(scwDisabledDates[N].constructor==Array)&&Q>=scwDisabledDates[N][0].valueOf()&&Q<=scwDisabledDates[N][1].valueOf()){A=true;}}}if(A||!scwEnabledDay[j-1+(7*((i*L.childNodes.length)/6))]||!scwPassEnabledDay[(j-1+(7*(i*L.childNodes.length/6)))%7]){E.childNodes[j].onclick=null;
if(scwID("scwIE")){E.childNodes[j].onmouseover=null;E.childNodes[j].onmouseout=null;}R.className=(M.getMonth()!=scwCurMonth)?"scwCellsDisabled":(scwBlnFullInputDate&&M.toDateString()==scwSeedDate.toDateString())?"scwInputDateDisabled":(M.getDay()%6==0)?"scwCellsDisabled":"scwCellsDisabled";R.style.borderColor=(scwFormatTodayCell&&M.toDateString()==scwDateNow.toDateString())?scwTodayCellBorderColour:(R.currentStyle)?R.currentStyle["backgroundColor"]:(window.getComputedStyle)?document.defaultView.getComputedStyle(R,null).getPropertyValue("background-color"):"";
}else{E.childNodes[j].onclick=I;if(scwID("scwIE")){E.childNodes[j].onmouseover=J;E.childNodes[j].onmouseout=J;}R.className=(M.getMonth()!=scwCurMonth)?"scwCellsExMonth":(scwBlnFullInputDate&&M.toDateString()==scwSeedDate.toDateString())?"scwInputDate":(M.getDay()%6==0)?"scwCellsWeekend":"scwCells";R.style.borderColor=(scwFormatTodayCell&&M.toDateString()==scwDateNow.toDateString())?scwTodayCellBorderColour:(R.currentStyle)?R.currentStyle["backgroundColor"]:(window.getComputedStyle)?document.defaultView.getComputedStyle(R,null).getPropertyValue("background-color"):"";
}M.setDate(M.getDate()+1);Q=new Date(M.getFullYear(),M.getMonth(),M.getDate()).valueOf();}}}}}if(window.opera){scwID("scwMonths").style.display="inline";scwID("scwYears").style.display="inline";scwID("scw").style.visibility="hidden";scwID("scw").style.visibility="inherit";}}document.writeln("<!--[if IE]><div id='scwIE'></div><![endif]-->");
document.writeln("<!--[if lt IE 7]><div id='scwIElt7'></div><![endif]-->");document.write("<iframe class='scw' "+(scwID("scwIElt7")?"src='/scwblank.html '":"")+"id='scwIframe' name='scwIframe' frameborder='0'>"+"</iframe>"+"<table id='scw' class='scw'>"+"<tr class='scw'>"+"<td class='scw'>"+"<table class='scwHead' id='scwHead' width='100%' "+"cellspacing='0' cellpadding='0'>"+"<tr id='scwDrag' style='display:none;'>"+"<td colspan='4' class='scwDrag' "+"onmousedown='scwBeginDrag(event);'>"+"<span id='scwDragText'></span>"+"</td>"+"</tr>"+"<tr class='scwHead' >"+"<td class='scwHead'>"+"<input class='scwHead' id='scwHeadLeft' type='button' value='<' "+"onclick='scwShowMonth(-1);'  /></td>"+"<td class='scwHead'>"+"<select id='scwMonths' class='scwHead' "+"onchange='scwShowMonth(0);'>"+"</select>"+"</td>"+"<td class='scwHead'>"+"<select id='scwYears' class='scwHead' "+"onchange='scwShowMonth(0);'>"+"</select>"+"</td>"+"<td class='scwHead'>"+"<input class='scwHead' id='scwHeadRight' type='button' value='>' "+"onclick='scwShowMonth(1);' /></td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"<tr class='scw'>"+"<td class='scw'>"+"<table class='scwCells' align='center'>"+"<thead>"+"<tr><td class='scwWeekNumberHead' id='scwWeek_' ></td>");
for(i=0;i<7;i++){document.write("<td class='scwWeek' id='scwWeekInit"+i+"'></td>");}document.write("</tr>"+"</thead>"+"<tbody id='scwCells' onClick='scwStopPropagation(event);'>");for(i=0;i<6;i++){document.write("<tr>"+"<td class='scwWeekNo' id='scwWeek_"+i+"'></td>");for(j=0;j<7;j++){document.write("<td class='scwCells' id='scwCell_"+(j+(i*7))+"'></td>");
}document.write("</tr>");}document.write("</tbody>"+"<tfoot>"+"<tr id='scwFoot'>"+"<td colspan='8' style='padding:0px;'>"+"<table width='100%'>"+"<tr>"+"<td id='scwClear' class='scwClear'>"+"<input type='button' id='scwClearButton' class='scwClear' "+"onclick='scwTargetEle.value = \"\";scwHide();' />"+"</td>"+"<td class='scwNow' id='scwNow'></td>"+"<td ><a id='scwClose' class='scwClose' href='#' onClick='return false;'>Close</a></td>"+"</tr>"+"</table>"+"</td>"+"</tr>"+"</tfoot>"+"</table>"+"</td>"+"</tr>"+"</table>");
if(document.addEventListener){scwID("scw").addEventListener("click",scwCancel,false);scwID("scwClose").addEventListener("click",scwHide,false);scwID("scwHeadLeft").addEventListener("click",scwStopPropagation,false);scwID("scwMonths").addEventListener("click",scwStopPropagation,false);scwID("scwMonths").addEventListener("change",scwStopPropagation,false);
scwID("scwYears").addEventListener("click",scwStopPropagation,false);scwID("scwYears").addEventListener("change",scwStopPropagation,false);scwID("scwHeadRight").addEventListener("click",scwStopPropagation,false);}else{scwID("scw").attachEvent("onclick",scwCancel);scwID("scwClose").attachEvent("onclick",scwHide);
scwID("scwHeadLeft").attachEvent("onclick",scwStopPropagation);scwID("scwMonths").attachEvent("onclick",scwStopPropagation);scwID("scwMonths").attachEvent("onchange",scwStopPropagation);scwID("scwYears").attachEvent("onclick",scwStopPropagation);scwID("scwYears").attachEvent("onchange",scwStopPropagation);
scwID("scwHeadRight").attachEvent("onclick",scwStopPropagation);}if(document.addEventListener){document.addEventListener("click",scwHide,false);}else{document.attachEvent("onclick",scwHide);}jQuery.iUtil={getPosition:function(F){var A=0;var H=0;var G=F.style;var E=false;if(jQuery(F).css("display")=="none"){var B=G.visibility;
var D=G.position;E=true;G.visibility="hidden";G.display="block";G.position="absolute";}var C=F;while(C){A+=C.offsetLeft+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderLeftWidth)||0:0);H+=C.offsetTop+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderTopWidth)||0:0);
C=C.offsetParent;}C=F;while(C&&C.tagName&&C.tagName.toLowerCase()!="body"){A-=C.scrollLeft||0;H-=C.scrollTop||0;C=C.parentNode;}if(E==true){G.display="none";G.position=D;G.visibility=B;}return{x:A,y:H};},getPositionLite:function(B){var A=0,C=0;while(B){A+=B.offsetLeft||0;C+=B.offsetTop||0;B=B.offsetParent;
}return{x:A,y:C};},getSize:function(F){var A=jQuery.css(F,"width");var D=jQuery.css(F,"height");var E=0;var H=0;var G=F.style;if(jQuery(F).css("display")!="none"){E=F.offsetWidth;H=F.offsetHeight;}else{var B=G.visibility;var C=G.position;G.visibility="hidden";G.display="block";G.position="absolute";E=F.offsetWidth;
H=F.offsetHeight;G.display="none";G.position=C;G.visibility=B;}return{w:A,h:D,wb:E,hb:H};},getSizeLite:function(A){return{wb:A.offsetWidth||0,hb:A.offsetHeight||0};},getClient:function(C){var B,A,D;if(C){A=C.clientWidth;B=C.clientHeight;}else{D=document.documentElement;A=window.innerWidth||self.innerWidth||(D&&D.clientWidth)||document.body.clientWidth;
B=window.innerHeight||self.innerHeight||(D&&D.clientHeight)||document.body.clientHeight;}return{w:A,h:B};},getScroll:function(G){var D=0,B=0,A=0,E=0,C=0,F=0;if(G&&G.nodeName.toLowerCase()!="body"){D=G.scrollTop;B=G.scrollLeft;A=G.scrollWidth;E=G.scrollHeight;C=0;F=0;}else{if(document.documentElement){D=document.documentElement.scrollTop;
B=document.documentElement.scrollLeft;A=document.documentElement.scrollWidth;E=document.documentElement.scrollHeight;}else{if(document.body){D=document.body.scrollTop;B=document.body.scrollLeft;A=document.body.scrollWidth;E=document.body.scrollHeight;}}C=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
F=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;}return{t:D,l:B,w:A,h:E,iw:C,ih:F};},getMargins:function(G,C){var E=jQuery(G);var D=E.css("marginTop")||"";var F=E.css("marginRight")||"";var A=E.css("marginBottom")||"";var B=E.css("marginLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)};
}else{return{t:D,r:F,b:A,l:B};}},getPadding:function(G,C){var E=jQuery(G);var D=E.css("paddingTop")||"";var F=E.css("paddingRight")||"";var A=E.css("paddingBottom")||"";var B=E.css("paddingLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)};}else{return{t:D,r:F,b:A,l:B};
}},getBorder:function(G,C){var E=jQuery(G);var D=E.css("borderTopWidth")||"";var F=E.css("borderRightWidth")||"";var A=E.css("borderBottomWidth")||"";var B=E.css("borderLeftWidth")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)||0};}else{return{t:D,r:F,b:A,l:B};}},getPointer:function(B){var A=B.pageX||(B.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0;
var C=B.pageY||(B.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;return{x:A,y:C};},traverseDOM:function(A,B){B(A);A=A.firstChild;while(A){jQuery.iUtil.traverseDOM(A,B);A=A.nextSibling;}},purgeEvents:function(A){jQuery.iUtil.traverseDOM(A,function(C){for(var B in C){if(typeof C[B]==="function"){C[B]=null;
}}});},centerEl:function(D,C){var A=jQuery.iUtil.getScroll();var B=jQuery.iUtil.getSize(D);if(!C||C=="vertically"){jQuery(D).css({top:A.t+((Math.max(A.h,A.ih)-A.t-B.hb)/2)+"px"});}if(!C||C=="horizontally"){jQuery(D).css({left:A.l+((Math.max(A.w,A.iw)-A.l-B.wb)/2)+"px"});}},fixPNG:function(B,D){var A=jQuery('img[@src*="png"]',B||document),C;
A.each(function(){C=this.src;this.src=D;this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+C+"')";});}};[].indexOf||(Array.prototype.indexOf=function(B,D){D=(D==null)?0:D;var A=this.length;for(var C=D;C<A;C++){if(this[C]==B){return C;}}return -1;});jQuery.fxCheckTag=function(A){if(/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(A.nodeName)){return false;
}else{return true;}};jQuery.fx.destroyWrapper=function(C,A){var D=C.firstChild;var B=D.style;B.position=A.position;B.marginTop=A.margins.t;B.marginLeft=A.margins.l;B.marginBottom=A.margins.b;B.marginRight=A.margins.r;B.top=A.top+"px";B.left=A.left+"px";C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);
};jQuery.fx.buildWrapper=function(E){if(!jQuery.fxCheckTag(E)){return false;}var K=jQuery(E);var I=E.style;var F=false;if(K.css("display")=="none"){oldVisibility=K.css("visibility");K.css("visibility","hidden").show();F=true;}var C={};C.position=K.css("position");C.sizes=jQuery.iUtil.getSize(E);C.margins=jQuery.iUtil.getMargins(E);
var D=E.currentStyle?E.currentStyle.styleFloat:K.css("float");C.top=parseInt(K.css("top"))||0;C.left=parseInt(K.css("left"))||0;var L="w_"+parseInt(Math.random()*10000);var G=document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(E.nodeName)?"div":E.nodeName);
jQuery.attr(G,"id",L);var J=jQuery(G).addClass("fxWrapper");var A=G.style;var H=0;var B=0;if(C.position=="relative"||C.position=="absolute"){H=C.top;B=C.left;}A.top=H+"px";A.left=B+"px";A.position=C.position!="relative"&&C.position!="absolute"?"relative":C.position;A.height=C.sizes.hb+"px";A.width=C.sizes.wb+"px";
A.marginTop=C.margins.t;A.marginRight=C.margins.r;A.marginBottom=C.margins.b;A.marginLeft=C.margins.l;A.overflow="hidden";if(jQuery.browser.msie){A.styleFloat=D;}else{A.cssFloat=D;}if(jQuery.browser=="msie"){I.filter="alpha(opacity="+0.999*100+")";}I.opacity=0.999;E.parentNode.insertBefore(G,E);G.appendChild(E);
I.marginTop="0px";I.marginRight="0px";I.marginBottom="0px";I.marginLeft="0px";I.position="absolute";I.listStyle="none";I.top="0px";I.left="0px";if(F){K.hide();I.visibility=oldVisibility;}return{oldStyle:C,wrapper:jQuery(G)};};jQuery.fx.namedColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};
jQuery.fx.parseColor=function(B,A){if(jQuery.fx.namedColors[B]){return{r:jQuery.fx.namedColors[B][0],g:jQuery.fx.namedColors[B][1],b:jQuery.fx.namedColors[B][2]};}else{if(result=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(B)){return{r:parseInt(result[1]),g:parseInt(result[2]),b:parseInt(result[3])};
}else{if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(B)){return{r:parseFloat(result[1])*2.55,g:parseFloat(result[2])*2.55,b:parseFloat(result[3])*2.55};}else{if(result=/^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(B)){return{r:parseInt("0x"+result[1]+result[1]),g:parseInt("0x"+result[2]+result[2]),b:parseInt("0x"+result[3]+result[3])};
}else{if(result=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(B)){return{r:parseInt("0x"+result[1]),g:parseInt("0x"+result[2]),b:parseInt("0x"+result[3])};}else{return A==true?false:{r:255,g:255,b:255};}}}}}};jQuery.fx.cssProps={borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,bottom:1,fontSize:1,height:1,left:1,letterSpacing:1,lineHeight:1,marginBottom:1,marginLeft:1,marginRight:1,marginTop:1,maxHeight:1,maxWidth:1,minHeight:1,minWidth:1,opacity:1,outlineOffset:1,outlineWidth:1,paddingBottom:1,paddingLeft:1,paddingRight:1,paddingTop:1,right:1,textIndent:1,top:1,width:1,zIndex:1};
jQuery.fx.colorCssProps={backgroundColor:1,borderBottomColor:1,borderLeftColor:1,borderRightColor:1,borderTopColor:1,color:1,outlineColor:1};jQuery.fx.cssSides=["Top","Right","Bottom","Left"];jQuery.fx.cssSidesEnd={"borderWidth":["border","Width"],"borderColor":["border","Color"],"margin":["margin",""],"padding":["padding",""]};
jQuery.fn.extend({animate:function(D,A,C,B){return this.queue(function(){var E=jQuery.speed(A,C,B);var F=new jQuery.fxe(this,E,D);});},pause:function(A,B){return this.queue(function(){var C=jQuery.speed(A,B);var D=new jQuery.pause(this,C);});},stop:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A);
}});},stopAll:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A);}if(this.queue&&this.queue["fx"]){this.queue.fx=[];}});}});jQuery.extend({pause:function(C,B){var D=this,A;D.step=function(){if(jQuery.isFunction(B.complete)){B.complete.apply(C);}};D.timer=setInterval(function(){D.step();
},B.duration);C.animationHandler=D;},easing:{linear:function(C,E,A,D,B){return((-Math.cos(C*Math.PI)/2)+0.5)*D+A;}},fxe:function(C,O,B){var I=this,M;var L=C.style;var G=jQuery.css(C,"overflow");var J=jQuery.css(C,"display");var H={};I.startTime=(new Date()).getTime();O.easing=O.easing&&jQuery.easing[O.easing]?O.easing:"linear";
I.getValues=function(V,Q){if(jQuery.fx.cssProps[V]){if(Q=="show"||Q=="hide"||Q=="toggle"){if(!C.orig){C.orig={};}var P=parseFloat(jQuery.curCSS(C,V));C.orig[V]=P&&P>-10000?P:(parseFloat(jQuery.css(C,V))||0);Q=Q=="toggle"?(J=="none"?"show":"hide"):Q;O[Q]=true;H[V]=Q=="show"?[0,C.orig[V]]:[C.orig[V],0];
if(V!="opacity"){L[V]=H[V][0]+(V!="zIndex"&&V!="fontWeight"?"px":"");}else{jQuery.attr(L,"opacity",H[V][0]);}}else{H[V]=[parseFloat(jQuery.curCSS(C,V)),parseFloat(Q)||0];}}else{if(jQuery.fx.colorCssProps[V]){H[V]=[jQuery.fx.parseColor(jQuery.curCSS(C,V)),jQuery.fx.parseColor(Q)];}else{if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(V)){var S=Q.replace(/\s+/g," ").replace(/rgb\s*\(\s*/g,"rgb(").replace(/\s*,\s*/g,",").replace(/\s*\)/g,")").match(/([^\s]+)/g);
switch(V){case"margin":case"padding":case"borderWidth":case"borderColor":S[3]=S[3]||S[1]||S[0];S[2]=S[2]||S[0];S[1]=S[1]||S[0];for(var U=0;U<jQuery.fx.cssSides.length;U++){var R=jQuery.fx.cssSidesEnd[V][0]+jQuery.fx.cssSides[U]+jQuery.fx.cssSidesEnd[V][1];H[R]=V=="borderColor"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),parseFloat(S[U])];
}break;case"border":for(var U=0;U<S.length;U++){var W=parseFloat(S[U]);var X=!isNaN(W)?"Width":(!/transparent|none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(S[U])?"Color":false);if(X){for(var T=0;T<jQuery.fx.cssSides.length;T++){R="border"+jQuery.fx.cssSides[T]+X;H[R]=X=="Color"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),W];
}}else{L["borderStyle"]=S[U];}}break;}}else{L[V]=Q;}}}return false;};for(p in B){if(p=="style"){var A=jQuery.parseStyle(B[p]);for(np in A){this.getValues(np,A[np]);}}else{if(p=="className"){if(document.styleSheets){for(var E=0;E<document.styleSheets.length;E++){var F=document.styleSheets[E].cssRules||document.styleSheets[E].rules||null;
if(F){for(var D=0;D<F.length;D++){if(F[D].selectorText=="."+B[p]){var K=new RegExp("."+B[p]+" {");var N=F[D].style.cssText;var A=jQuery.parseStyle(N.replace(K,"").replace(/}/g,""));for(np in A){this.getValues(np,A[np]);}}}}}}}else{this.getValues(p,B[p]);}}}L.display=J=="none"?"block":J;L.overflow="hidden";
I.step=function(){var Q=(new Date()).getTime();if(Q>O.duration+I.startTime){clearInterval(I.timer);I.timer=null;for(R in H){if(R=="opacity"){jQuery.attr(L,"opacity",H[R][1]);}else{if(typeof H[R][1]=="object"){L[R]="rgb("+H[R][1].r+","+H[R][1].g+","+H[R][1].b+")";}else{L[R]=H[R][1]+(R!="zIndex"&&R!="fontWeight"?"px":"");
}}}if(O.hide||O.show){for(var R in C.orig){if(R=="opacity"){jQuery.attr(L,R,C.orig[R]);}else{L[R]="";}}}L.display=O.hide?"none":(J!="none"?J:"block");L.overflow=G;C.animationHandler=null;if(jQuery.isFunction(O.complete)){O.complete.apply(C);}}else{var T=Q-this.startTime;var S=T/O.duration;for(R in H){if(typeof H[R][1]=="object"){L[R]="rgb("+parseInt(jQuery.easing[O.easing](S,T,H[R][0].r,(H[R][1].r-H[R][0].r),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].g,(H[R][1].g-H[R][0].g),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].b,(H[R][1].b-H[R][0].b),O.duration))+")";
}else{var P=jQuery.easing[O.easing](S,T,H[R][0],(H[R][1]-H[R][0]),O.duration);if(R=="opacity"){jQuery.attr(L,"opacity",P);}else{//L[R]=P+(R!="zIndex"&&R!="fontWeight"?"px":"");
}}}}};I.timer=setInterval(function(){I.step();},13);C.animationHandler=I;},stopAnim:function(B,A){if(A){B.animationHandler.startTime-=100000000;
}else{window.clearInterval(B.animationHandler.timer);B.animationHandler=null;jQuery.dequeue(B,"fx");}}});jQuery.parseStyle=function(B){var C={};if(typeof B=="string"){B=B.toLowerCase().split(";");for(var A=0;A<B.length;A++){rule=B[A].split(":");if(rule.length==2){C[jQuery.trim(rule[0].replace(/\-(\w)/g,function(D,E){return E.toUpperCase();
}))]=jQuery.trim(rule[1]);}}}return C;};jQuery.fn.extend({SlideInUp:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"up","in",B);});},SlideOutUp:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"up","out",B);});},SlideToggleUp:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"up","toggle",B);
});},SlideInDown:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"down","in",B);});},SlideOutDown:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"down","out",B);});},SlideToggleDown:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"down","toggle",B);
});},SlideInLeft:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"left","in",B);});},SlideOutLeft:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"left","out",B);});},SlideToggleLeft:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"left","toggle",B);
});},SlideInRight:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"right","in",B);});},SlideOutRight:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"right","out",B);});},SlideToggleRight:function(A,C,B){return this.queue("interfaceFX",function(){new jQuery.fx.slide(this,A,C,"right","toggle",B);
});}});jQuery.fx.slide=function(D,B,G,C,A,F){if(!jQuery.fxCheckTag(D)){jQuery.dequeue(D,"interfaceFX");return false;}var E=this;E.el=jQuery(D);E.easing=typeof G=="string"?G:F||null;E.callback=typeof G=="function"?G:null;if(A=="toggle"){A=E.el.css("display")=="none"?"in":"out";}if(!D.ifxFirstDisplay){D.ifxFirstDisplay=E.el.css("display");
}E.el.show();E.speed=B;E.fx=jQuery.fx.buildWrapper(D);E.type=A;E.direction=C;E.complete=function(){if(E.type=="out"){E.el.css("visibility","hidden");}jQuery.fx.destroyWrapper(E.fx.wrapper.get(0),E.fx.oldStyle);if(E.type=="in"){E.el.css("display",E.el.get(0).ifxFirstDisplay=="none"?"block":E.el.get(0).ifxFirstDisplay);
}else{E.el.css("display","none");E.el.css("visibility","visible");}if(E.callback&&E.callback.constructor==Function){E.callback.apply(E.el.get(0));}jQuery.dequeue(E.el.get(0),"interfaceFX");};switch(E.direction){case"up":E.ef=new jQuery.fx(E.el.get(0),jQuery.speed(E.speed,E.easing,E.complete),"top");E.efx=new jQuery.fx(E.fx.wrapper.get(0),jQuery.speed(E.speed,E.easing),"height");
if(E.type=="in"){E.ef.custom(-E.fx.oldStyle.sizes.hb,0);E.efx.custom(0,E.fx.oldStyle.sizes.hb);}else{E.ef.custom(0,-E.fx.oldStyle.sizes.hb);E.efx.custom(E.fx.oldStyle.sizes.hb,0);}break;case"down":E.ef=new jQuery.fx(E.el.get(0),jQuery.speed(E.speed,E.easing,E.complete),"top");if(E.type=="in"){E.ef.custom(E.fx.oldStyle.sizes.hb,0);
}else{E.ef.custom(0,E.fx.oldStyle.sizes.hb);}break;case"left":E.ef=new jQuery.fx(E.el.get(0),jQuery.speed(E.speed,E.easing,E.complete),"left");E.efx=new jQuery.fx(E.fx.wrapper.get(0),jQuery.speed(E.speed,E.easing),"width");if(E.type=="in"){E.ef.custom(-E.fx.oldStyle.sizes.wb,0);E.efx.custom(0,E.fx.oldStyle.sizes.wb);
}else{E.ef.custom(0,-E.fx.oldStyle.sizes.wb);E.efx.custom(E.fx.oldStyle.sizes.wb,0);}break;case"right":E.ef=new jQuery.fx(E.el.get(0),jQuery.speed(E.speed,E.easing,E.complete),"left");if(E.type=="in"){E.ef.custom(E.fx.oldStyle.sizes.wb,0);}else{E.ef.custom(0,E.fx.oldStyle.sizes.wb);}break;}};jQuery.fn.Bounce=function(B,A){return this.queue("interfaceFX",function(){if(!jQuery.fxCheckTag(this)){jQuery.dequeue(this,"interfaceFX");
return false;}var C=new jQuery.fx.iBounce(this,B,A);C.bounce();});};jQuery.fx.iBounce=function(A,D,C){var B=this;B.el=jQuery(A);B.el.show();B.callback=C;B.hight=parseInt(D)||40;B.oldStyle={};B.oldStyle.position=B.el.css("position");B.oldStyle.top=parseInt(B.el.css("top"))||0;B.oldStyle.left=parseInt(B.el.css("left"))||0;
if(B.oldStyle.position!="relative"&&B.oldStyle.position!="absolute"){B.el.css("position","relative");}B.times=5;B.cnt=1;B.bounce=function(){B.cnt++;B.e=new jQuery.fx(B.el.get(0),{duration:120,complete:function(){B.e=new jQuery.fx(B.el.get(0),{duration:80,complete:function(){B.hight=parseInt(B.hight/2);
if(B.cnt<=B.times){B.bounce();}else{B.el.css("position",B.oldStyle.position).css("top",B.oldStyle.top+"px").css("left",B.oldStyle.left+"px");jQuery.dequeue(B.el.get(0),"interfaceFX");if(B.callback&&B.callback.constructor==Function){B.callback.apply(B.el.get(0));}}}},"top");B.e.custom(B.oldStyle.top-B.hight,B.oldStyle.top);
}},"top");B.e.custom(B.oldStyle.top,B.oldStyle.top-B.hight);};};jQuery.iAccordion={build:function(A){return this.each(function(){if(!A.headerSelector||!A.panelSelector){return ;}var B=this;B.accordionCfg={panelHeight:A.panelHeight||300,headerSelector:A.headerSelector,panelSelector:A.panelSelector,activeClass:A.activeClass||"fakeAccordionClass",hoverClass:A.hoverClass||"fakeAccordionClass",onShow:A.onShow&&typeof A.onShow=="function"?A.onShow:false,onHide:A.onShow&&typeof A.onHide=="function"?A.onHide:false,onClick:A.onClick&&typeof A.onClick=="function"?A.onClick:false,headers:jQuery(A.headerSelector,this),panels:jQuery(A.panelSelector,this),speed:A.speed||400,currentPanel:A.currentPanel};
B.accordionCfg.panels.hide().css("height","1px").eq(B.accordionCfg.currentPanel).css({height:B.accordionCfg.panelHeight+"px",display:"block"}).end();B.accordionCfg.headers.each(function(C){this.accordionPos=C;}).hover(function(){jQuery(this).addClass(B.accordionCfg.hoverClass);},function(){jQuery(this).removeClass(B.accordionCfg.hoverClass);
}).bind("click",function(C){if(B.accordionCfg.currentPanel==this.accordionPos){return ;}B.accordionCfg.headers.eq(B.accordionCfg.currentPanel).removeClass(B.accordionCfg.activeClass).end().eq(this.accordionPos).addClass(B.accordionCfg.activeClass).end();B.accordionCfg.panels.eq(B.accordionCfg.currentPanel).animate({height:0},B.accordionCfg.speed,function(){this.style.display="none";
if(B.accordionCfg.onHide){B.accordionCfg.onHide.apply(B,[this]);}}).end().eq(this.accordionPos).show().animate({height:B.accordionCfg.panelHeight},B.accordionCfg.speed,function(){this.style.display="block";if(B.accordionCfg.onShow){B.accordionCfg.onShow.apply(B,[this]);}}).end();if(B.accordionCfg.onClick){B.accordionCfg.onClick.apply(B,[this,B.accordionCfg.panels.get(this.accordionPos),B.accordionCfg.headers.get(B.accordionCfg.currentPanel),B.accordionCfg.panels.get(B.accordionCfg.currentPanel)]);
}B.accordionCfg.currentPanel=this.accordionPos;}).eq(B.accordionCfg.currentPanel).addClass(B.accordionCfg.activeClass).end();jQuery(this).css("height",jQuery(this).css("height")).css("overflow","hidden");});}};jQuery.fn.Accordion=jQuery.iAccordion.build;(function(B){B.dimensions={version:"1.2"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return ;
}var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E);};B.fn["outer"+C]=function(F){if(!this[0]){return ;}var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});
var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0);};});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return ;
}return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E;}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C];
};});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left};}return D;},offsetParent:function(){var C=this[0].offsetParent;
while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent;}return B(C);}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0;}})(jQuery);jQuery.extend({easing:{linear:function(C,E,A,D,B){return((-Math.cos(C*Math.PI)/2)+0.5)*D+A;},easein:function(C,E,A,D,B){return D*(E/=B)*E*E+A;
},easeout:function(C,E,A,D,B){return -D*((E=E/B-1)*E*E*E-1)+A;},easeboth:function(C,E,A,D,B){if((E/=B/2)<1){return D/2*E*E*E*E+A;}return -D/2*((E-=2)*E*E*E-2)+A;},bounceout:function(C,E,A,D,B){if((E/=B)<(1/2.75)){return D*(7.5625*E*E)+A;}else{if(E<(2/2.75)){return D*(7.5625*(E-=(1.5/2.75))*E+0.75)+A;
}else{if(E<(2.5/2.75)){return D*(7.5625*(E-=(2.25/2.75))*E+0.9375)+A;}else{return D*(7.5625*(E-=(2.625/2.75))*E+0.984375)+A;}}}},bouncein:function(C,E,A,D,B){if(jQuery.easing.bounceout){return D-jQuery.easing.bounceout(C,B-E,0,D,B)+A;}return A+D;},bounceboth:function(C,E,A,D,B){if(jQuery.easing.bouncein&&jQuery.easing.bounceout){if(E<B/2){return jQuery.easing.bouncein(C,E*2,0,D,B)*0.5+A;
}}return jQuery.easing.bounceout(C,E*2-B,0,D,B)*0.5+D*0.5+A;return A+D;},elasticin:function(E,G,B,F,D){var A,C;if(G==0){return B;}if((G/=D)==1){return B+F;}A=F*0.3;E=D*0.3;if(A<Math.abs(F)){A=F;C=E/4;}else{C=E/(2*Math.PI)*Math.asin(F/A);}return -(A*Math.pow(2,10*(G-=1))*Math.sin((G*D-C)*(2*Math.PI)/E))+B;
},elasticout:function(E,G,B,F,D){var A,C;if(G==0){return B;}if((G/=D/2)==2){return B+F;}A=F*0.3;E=D*0.3;if(A<Math.abs(F)){A=F;C=E/4;}else{C=E/(2*Math.PI)*Math.asin(F/A);}return A*Math.pow(2,-10*G)*Math.sin((G*D-C)*(2*Math.PI)/E)+F+B;},elasticboth:function(E,G,B,F,D){var A,C;if(G==0){return B;}if((G/=D/2)==2){return B+F;
}A=F*0.3;E=D*0.3;if(A<Math.abs(F)){A=F;C=E/4;}else{C=E/(2*Math.PI)*Math.asin(F/A);}if(G<1){return -0.5*(A*Math.pow(2,10*(G-=1))*Math.sin((G*D-C)*(2*Math.PI)/E))+B;}return A*Math.pow(2,-10*(G-=1))*Math.sin((G*D-C)*(2*Math.PI)/E)*0.5+F+B;}}});$(document).ready(JT_init);function JT_init(){$("a.jTip").hover(function(){JT_show(this.href,this.id,this.name);
},function(){$("#JT").remove();}).click(function(){return false;});}function JT_show(B,I,G){if(G==false){G="&nbsp;";}var H=document.documentElement;var J=self.innerWidth||(H&&H.clientWidth)||document.body.clientWidth;var E=J-getAbsoluteLeft(I);var D=getAbsoluteTop(I)-28;var A=B.replace(/^[^\?]+\??/,"");
var C=parseQuery(A);if(C["width"]===undefined){C["width"]=299;}if(C["link"]!==undefined){$("#"+I).bind("click",function(){window.location=C["link"];});$("#"+I).css("cursor","pointer");}if(E>((C["width"]*1)+75)){$("body").append("<div id='JT' style='width:"+C["width"]*1+"px'><div id='JT_copy'><div class='JT_loader'><div></div></div>");
var K=getElementWidth(I)+11;var F=getAbsoluteLeft(I)+K;}else{$("body").append("<div id='JT' style='width:"+C["width"]*1+"px'><div id='JT_copy'><div class='JT_loader'><div></div></div>");var F=getAbsoluteLeft(I)-((C["width"]*1)+15);}$("#JT").css({left:F+"px",top:D+"px"});$("#JT").show();$("#JT_copy").load(B);
}function arrayTime(id){ var qftime = new Array(); var gettime = ""; qftime[0] = "12 am"; qftime[1] = "1 am"; qftime[2] = "2 am"; qftime[3] = "3 am"; qftime[4] = "4 am"; qftime[5] = "5 am"; qftime[6] = "6 am"; qftime[7] = "7 am"; qftime[8] = "8 am"; qftime[9] = "9 am"; qftime[10] = "10 am"; qftime[11] = "11 am"; qftime[12] = "12 pm"; qftime[13] = "1 pm"; qftime[14] = "2 pm"; qftime[15] = "3 pm"; qftime[16] = "4 pm"; qftime[17] = "5 pm"; qftime[18] = "6 pm"; qftime[19] = "7 pm"; qftime[20] = "8 pm"; qftime[21] = "9 pm"; qftime[22] = "10 pm"; qftime[23] = "11 pm"; gettime = qftime[id]; return gettime; }
