// Product title: Sprigst Calendar // Product version details: 1.0, 12-29-2007 (mm-dd-yyyy) // Product URL: http://www.sprigst.com/products/sprigst_calendar/ // Contact info: sprigst_feedback@sprigst.com (specify product title in the subject) // Notes: This script is free. Feel free to copy, use and change this script as // long as this head part remains unchanged. Visit official site for details. // Copyright: (c) 2007 by Sprigst var agC=[],_c10W,_c107;function sCalendar(_c10Q){var _=this;_._c1s=agC.length;agC[_._c1s]=_;if(!_c10W)_c10W=new _c15();if(!_c107)_c107=new _c14();_._c10i=_c10Q.dataArea?_c10Q.dataArea:'dataArea'+_._c1s;_._c10g='icoCls'+_._c1s;_._c10p='icoPos'+_._c1s;_._c10f='clsDiv'+_._c1s;_._c10b='clsBox'+_._c1s;_._c10x='clsTitle'+_._c1s;_._c10o='clsPMI'+_._c1s;_._c10k='clsNMI'+_._c1s;_._c10r='clsPYI'+_._c1s;_._c10m='clsNYI'+_._c1s;_._c10n='clsPMA'+_._c1s;_._c10j='clsNMA'+_._c1s;_._c10q='clsPYA'+_._c1s;_._c10l='clsNYA'+_._c1s;_._c105=new Date();_._c10e=!_c10Q.dateFormat?'d/m/Y':_c10Q.dateFormat;_._c103=_c10Q['appearance'];_c1T(_);}function _c1T(_){var _c10V=new _c11B();_c10V._c1r('
');document.write(_c10V._c10Y());_c1S(_);_c1c(_);_c1f(_);}function _c1S(_){var _c10V=new _c11B();_c10V._c1r('');if(_c10W._c1n){_c10V._c1r('');}document.write(_c10V._c10Y());}function _c1U(_c10E){var _c10T=_c10E?new Date(_c10E):new Date();_c10T.setHours(0);_c10T.setMinutes(0);_c10T.setSeconds(0);_c10T.setMilliseconds(0);return _c10T;}function _c1V(c,_c10E){var _c1y=1,_c10T=new Date(_c10E);_c10T=_c1U(_c10T);var _c106=c._c105;if(_c1U(_c106).valueOf()==_c10T.valueOf())_c1y|=2;if(_c10T.getMonth()!=_c106.getMonth()||_c10T.getFullYear()!=_c106.getFullYear())_c1y|=8;if(_c10T.getDay()==0||_c10T.getDay()==6)_c1y|=4;return _c1y;}function _c1Z(_){var _c110=String(_._c10A.style.visibility).toLowerCase();if(_c110=='visible'||_c110=='show'){_._c10A.style.visibility='hidden';if(_c10W._c1n){_._c10B.style.visibility='hidden';}_._c10D.src=_._c103['IcoCalVis'];}else{_c1b(_);if(_c1i(_))_c1g(_);_._c10A.style.visibility='visible';if(_c10W._c1n){_._c10B.style.width=_._c10A.offsetWidth;_._c10B.style.height=_._c10A.offsetHeight;_._c10B.style.visibility='visible';}_._c10D.src=_._c103['IcoCalUnVis'];}}function _c1h(_,_c1o,_c115){var _c113=_c1o?new Date(_c1o):new Date(_._c105);_._c105=new Date(_c113);if(!_c115){_c1Z(_);_._c108.value=_c107._c11(_._c105,_._c10e);}_c1g(_);}function _c1g(_){_c1f(_);_._c10F.innerHTML=_._c103['longmonth'][_._c105.getMonth()]+' '+_._c105.getFullYear();_._c10U.innerHTML='';_._c10U.innerHTML=_c1e(_);}function _c1c(_){var _c10T;_._c10A=_c1a(_,_._c10f);if(_c10W._c1n)_._c10B=_c1a(_,'IE6bug'+_._c10f);_._c10D=_c1a(_,_._c10g);_._c10O=_c1a(_,_._c10p);_._c108=_c1a(_,_._c10i);_._c10U=_c1a(_,_._c10b);_._c10F=_c1a(_,_._c10x);_._c10L=_c1a(_,_._c10o);_._c10H=_c1a(_,_._c10k);_._c10N=_c1a(_,_._c10Z);_._c10J=_c1a(_,_._c10m);_._c10K=_c1a(_,_._c10n);_._c10G=_c1a(_,_._c10j);_._c10M=_c1a(_,_._c10q);_._c10I=_c1a(_,_._c10l);}function _c1d(_c10E,_c10w,_c10u,_c10s,_c10t,_c10v){var _c10T=new Date(_c10E);if(_c10w)_c10T.setFullYear(_c10T.getFullYear()+_c10w);if(_c10u){_c10T.setMonth(_c10T.getMonth()+_c10u);}if(_c10s){_c10T.setHours(_c10T.getHours()+_c10s);}if(_c10t){_c10T.setMinutes(_c10T.getMinutes()+_c10t);}if(_c10v){_c10T.setSeconds(_c10T.getSeconds()+_c10v);}if(!(_c10s||_c10t||_c10v)){if(_c10T.getDate()!=_c10E.getDate()){_c10T.setDate(0);}}return _c10T.valueOf();}function _c1f(_){_._c10M.href="javascript: _c1h(agC["+_._c1s+"],"+_c1d(_._c105,-1)+",2);";_._c10I.href="javascript: _c1h(agC["+_._c1s+"],"+_c1d(_._c105,1)+",2);";_._c10K.href="javascript: _c1h(agC["+_._c1s+"],"+_c1d(_._c105,null,-1)+",1);";_._c10G.href="javascript: _c1h(agC["+_._c1s+"],"+_c1d(_._c105,null,1)+",1);";}function _c1i(_){if(_._c108.value){_c10T=_c107._c13(_._c108.value+'',_._c10e);if(!_c10T){alert(_._c103['messages']['Warning']);_c10T=new Date()};if(_c10T.valueOf()!=_._c105.valueOf()){_._c105=new Date(_c10T);return true;}else{_._c108.value=_c107._c11(_._c105,_._c10e);return false;}}else return false;}function _c1Y(_c101){var _c10V=new _c11B();_c10V._c1r('');for(var _c100=0;_c100<7;_c100++)_c10V._c1r('',_c101._c103.weekdays[(_c100+1)%7],'');_c10V._c1r('');return(_c10V._c10Y());}function _c1X(a){var _c10V=new _c11B(),_c10C=new Date(a._c105);_c10C.setDate(1);_c10C.setDate(1-(6+_c10C.getDay())%7);var _c10R=new Date(_c10C);while(_c10R.getMonth()==a._c105.getMonth()||_c10R.getMonth()==_c10C.getMonth()){_c10V._c1r('');for(var _c100=0;_c100<7;_c100++){_c10V._c1r(_c1W(a,_c10R));_c10R.setDate(_c10R.getDate()+1);}_c10V._c1r('\n');}return(_c10V._c10Y());}function _c1e(_){var _c10V=new _c11B();_c10V._c1r('');_c10V._c1r(_c1Y(_));_c10V._c1r(_c1X(_));_c10V._c1r('
');return(_c10V._c10Y());}function _c15(){var _=this,_c1C=navigator.appName,v=_._c118=navigator.appVersion,_c116=_._c117=navigator.userAgent.toLowerCase(),_c10a=/opera/;_._c10X=_c10a.exec(_c116)?true:false;_._c1j=(_c1C=="Microsoft Internet Explorer");if(_._c10X){_._c1j=false;}_.v=parseInt(v);if(_._c1j){_._c1k=_._c1l=_._c1m=_._c1n=false;if(v.indexOf('MSIE 6')>0){_._c1n=true;_.v=6;}}_._c119=_c116.indexOf("win")>-1;_.mac=_c116.indexOf("mac")>-1;}function _c1K(_c1q){var _=this,_c10d,_c1v=0,_c1B=[],_c19=["\\\\","\\/","\\.","\\+","\\*","\\?","\\$","\\^","\\|"];for(_c1t=0;_c1t<_c1q.length;_c1t++){_c10d=_c1q.substr(_c1t,1);if(_._c1I.indexOf(_c10d)!=-1&&_c10d!=''){_c1B[_c1v]=_c10d;_._c1O[_c1v++]=_c10d;}}_c1v=1;for(_c1t in _c19){_c1q=_c1q.replace(eval("/"+_c19[_c1t]+"/g"),_c19[_c1t]);}for(_c1t=0;_c1t<_c1B.length;_c1t++){_c10_=new RegExp(_c1B[_c1t]);_c1q=_c1q.replace(_c10_,_._c1M[_c1B[_c1t]])}return new RegExp("^"+_c1q.replace(/\s+/g,"\\s+")+"$");}function _c1J(_c1p,_c1q){var _=this,_c1w,_c1t=0,_c10z='',_c10y='',_c1P=new Date(_c1p);do{_c1w=_c1q.substr(_c1t,1);if(_._c1I.indexOf(_c1w)!=-1&&_c1w!=''){if(typeof(_c1P[_._c1H[_c1w][1]])!='function')_c10y=new String(_._c1H[_c1w][1](_c1P));else _c10y=new String(_c1P[_._c1H[_c1w][1]]());_c10z+=_c10y}else _c10z+=_c1w;_c1t++}while(_c1t<_c1q.length)return _c10z;}function _c1L(_c10E,_c1q){var _=this,_c1A=[],_c1t,_c1u=1,_c11A=_._c12(_c1q),_c114=_._c10(),_c1t,_c1Q=false,_c109=null,_c114=new Date(0,0,1),_c1F,_c10P=_c11A.exec(_c10E);if(!_c10P||typeof(_c10P)!='object'){return null;}for(_c1t in _._c1O){_c1A[_c1t]=[_c10P[_c1u++],_._c1O[_c1t]]}_c102=_c1A;for(_c1t in _c102){if(_._c1N.indexOf(_c102[_c1t][1])!=-1){_c1F=_c102[_c1t][1];var _c10S=_._c1H[_c102[_c1t][1]][2](_c102[_c1t][0]);if(_c1F=='d'){_c1E=_c1F;_c109=_c10S;}_c114[_._c1H[_c1F][0]](_c10S);if(_c109)_c114[_._c1H[_c1E][0]](_c109);}}return _c114;}function _c1W(_c104,_c10E){var _c10R=new Date(_c10E),_c1z=_c1V(_c104,_c10R),_c111,_c10h,_c10c;if(_c1z&2)_c111='SelectedDay';else if(_c1z&8)_c111='OtherMonthDay';else _c111='CurrentMonthDay';_c10h='javascript: _c1h(agC['+_c104._c1s+'],'+_c10E.valueOf()+');';_c10c=''+_c10E.getDate()+'';if(_c1z&2)_c111='SelectedDay';else if(_c1z&4)_c111='HoliDay';else if(_c1z&8)_c111='OtherMonthDay';else _c111='WorkDay';_c10c=''+_c10c+'';return _c10c;}function _c14(){var _=this;_._c1I='dmY';_._c1N='dmY';_._c1M={'d':"([0-9]{0,2})",'m':"([0-9]{0,2})",'Y':"([0-9]{4})"};_._c1H={'d':['setDate',function(_c18,_c17){_c18=_c18.getDate();if(_c18<10)return('0'+_c18);else return _c18},function(_c18){return _c18*1}],'m':['setMonth',function(_c18){_c18=_c18.getMonth()+1;if(_c18<10)return('0'+_c18);else return _c18},function(_c18){return(_c18*1-1)}],'Y':['setFullYear','getFullYear',function(_c18){return _c18*1}]};_._c1O=[];_._c10=_c1U;_._c12=_c1K;_._c11=_c1J;_._c13=_c1L;}function _c1b(_){_._c10A.style.left=_c1_(_,'Left')+'px';_._c10A.style.top=_c1_(_,'Top')+'px';if(_c10W._c1n){_._c10B.style.left=_._c10A.style.left;_._c10B.style.top=_._c10A.style.top;}}function _c1_(_,_c1G){var _c1x=0,_c112=_._c10O;while(_c112){_c1x+=_c112["offset"+_c1G];_c112=_c112.offsetParent;}return _c1x;}function _c1a(_,_c16){if(document.images&&document.images[_c16])return document.images[_c16];else if(_._c1R&&document.forms[_._c1R].elements[_c16])return document.forms[_._c1R].elements[_c16];else if(document.all&&document.all[_c16])return document.all[_c16];else if(document.getElementById)return document.getElementById(_c16);else return null;}function _c11B(){var _=this;_._c1D=[];_._c1r=function(){var n=arguments.length;for(var _c1t=0;_c1t-->
Make your own free website on Tripod.com