var Dom={};Dom.get=function(a){return(typeof a=="object")?a:document.getElementById(a)};Function.prototype.method=function(a,b){this.prototype[a]=b;return this};if(typeof Alpha=="undefined"){var Alpha={}}(function(){Alpha.register=function(a){function b(f){this.elements=[];for(var e=0,c=f.length;e<c;++e){var d=f[e];if(typeof d=="string"){d=document.getElementById(d)}this.elements.push(d)}}b.method(a.each,function(e){for(var d=0,c=this.elements.length;d<c;++d){e.call(this,this.elements[d])}return this}).method(a.on,function(d,c){var e=function(g){var h=d.split(",");for(var f=0;f<h.length;f++){var j=h[f];if(window.addEventListener){g.addEventListener(j,c,false)}else{if(window.attachEvent){g.attachEvent("on"+j,c)}}}};this.each(function(f){e(f)});return this}).method(a.hide,function(){this.each(function(c){if(c===null){return}c.style.display="none"});return this}).method(a.show,function(){this.each(function(c){if(c===null){return}c.style.display="block"});return this}).method(a.toggle,function(){this.each(function(c){if(c.style.display=="none"){c.style.display="block"}else{c.style.display="none"}});return this}).method(a.create,function(d,e,c){var d=document.createElement(d);d.setAttribute("id",e);if(c){c.call(this,d)}return this}).method(a.append,function(c){this.each(function(d){d.appendChild(c)});return this}).method(a.setStyle,function(e,c){var d=function(f){if(f===null){return}f.style[e]=c};this.each(function(f){d(f)});return this}).method(a.setCss,function(c){for(var d in c){if(!c.hasOwnProperty(d)){continue}this.setStyle(d,c[d])}return this});window[a.namespace]=function(){return new b(arguments)};Alpha.extendChain=function(c,d){b.method(c,d)}}})();Alpha.register({namespace:"$",each:"each",on:"on",hide:"hide",show:"show",toggle:"toggle",create:"create",append:"append",setStyle:"setStyle",setCss:"setCss"});var Ylmf={screenWidth:window.screen.width,Browser:{ie:/msie/.test(window.navigator.userAgent.toLowerCase()),ie6:/msie 6.0/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())},Cookie:{set:function(b,d,a,e,c){if(typeof a=="undefined"){a=new Date(new Date().getTime()+1000*3600*24*30)}document.cookie=b+"="+escape(d)+((a)?"; expires="+a.toGMTString():"")+((e)?"; path="+e:"; path=/")+((c)?";domain="+c:"")},get:function(b){var a=document.cookie.match(new RegExp("(^| )"+b+"=([^;]*)(;|$)"));if(a!=null){return unescape(a[2])}return null},clear:function(a,c,b){if(this.get(a)){document.cookie=a+"="+((c)?"; path="+c:"; path=/")+((b)?"; domain="+b:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT"}}},getStyle:function(b,a){if(document.defaultView){return document.defaultView.getComputedStyle(b,null).getPropertyValue(a)}else{a=a.replace(/\-([a-z])([a-z]?)/ig,function(e,d,c){return d.toUpperCase()+c.toLowerCase()});return b.currentStyle[a]}},Ajax:function(c,j){var h;if(typeof XMLHttpRequest!=="undefined"){h=new XMLHttpRequest()}else{var b=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.5.0"];for(var d=0,a=b.length;d<a;d++){try{h=new ActiveXObject(b[d]);break}catch(f){}}}h.onreadystatechange=g;function g(){if(h.readyState<4){return}if(h.status!==200){return}if(h.readyState===4){j(h)}}h.open("GET",c,true);h.send("")},JsLoader:function(d,a,e,c){var b=document.createElement("script");if(c){b.setAttribute("charset",c)}else{b.setAttribute("charset","utf-8")}b.setAttribute("type","text/javascript");b.setAttribute("src",d);b.id=a;document.getElementsByTagName("head")[0].appendChild(b);if(e){if(Ylmf.Browser.ie){b.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){e()}}}else{if(Ylmf.Browser.moz){b.onload=function(){e()}}else{e()}}}},addFav:function(a){if(document.all){window.external.AddFavorite(location.href,a)}else{if(window.sidebar){window.sidebar.addPanel(a,location.href,"")}else{if(window.opera&&window.print){return true}}}},setHomepage:function(c,a){var b=location.pathname.replace("/","");b=b.split(".")[0];if(a){b=""}if(Ylmf.Browser.moz){alert("\u8bbe\u5b9a\u5931\u8d25\uff01\u8be5\u64cd\u4f5c\u4e0d\u652f\u6301FireFox\u6d4f\u89c8\u5668\uff01")}else{c.style.behavior="url(#default#homepage)";if(b=="index"||b==""||b.indexOf("/")!==-1){c.setHomePage("http://123.chajie.com/")}else{c.setHomePage("http://123.chajie.com/?"+b)}}}};
var lunarInfo=new Array(19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893);var Gan=new Array("\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678");var Zhi=new Array("\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5");
var now=new Date();var SY=now.getFullYear();var SM=now.getMonth();var SD=now.getDate();
function lYearDays(c){var a,b=348;for(a=32768;a>8;a>>=1){b+=(lunarInfo[c-1900]&a)?1:0}return(b+leapDays(c))}function leapDays(a){if(leapMonth(a)){return((lunarInfo[a-1900]&65536)?30:29)}else{return(0)}}function leapMonth(a){return(lunarInfo[a-1900]&15)}function monthDays(b,a){return(lunarInfo[b-1900]&(65536>>a))?30:29}
function Lunar(e){var c,b=0,a=0;var d=new Date(1900,0,31);var f=(e-d)/86400000;this.dayCyl=f+40;this.monCyl=14;for(c=1900;c<2050&&f>0;c++){a=lYearDays(c);f-=a;this.monCyl+=12}if(f<0){f+=a;c--;this.monCyl-=12}this.year=c;this.yearCyl=c-1864;b=leapMonth(c);this.isLeap=false;for(c=1;c<13&&f>0;c++){if(b>0&&c==(b+1)&&this.isLeap==false){--c;this.isLeap=true;a=leapDays(this.year)}else{a=monthDays(this.year,c)}if(this.isLeap==true&&c==(b+1)){this.isLeap=false}f-=a;if(this.isLeap==false){this.monCyl++}}if(f==0&&b>0&&c==b+1){if(this.isLeap){this.isLeap=false}else{this.isLeap=true;--c;--this.monCyl}}if(f<0){f+=a;--c;--this.monCyl}this.month=c;this.day=f+1}
function YYMMDD(){return("<strong>"+SY+"\u5e74"+(SM+1)+"\u6708"+SD+"\u65e5   ")}function weekday(){var a=new Array("\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d");return("&nbsp;"+a[now.getDay()]+"</strong>")}function cDay(a,f){var c=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341");var b=new Array("\u521d","\u5341","\u5eff","\u5345","\u3000");var e;if(a>10){e="\u5341"+c[a-10]}else{e=c[a]}e+="\u6708";switch(f){case 10:e+="\u521d\u5341";break;case 20:e+="\u4e8c\u5341";break;case 30:e+="\u4e09\u5341";break;default:e+=b[Math.floor(f/10)];e+=c[f%10]}return(e)}
function solarDay2(){var b=new Date(SY,SM,SD);var c=new Lunar(b);var a="<strong>&nbsp;\u519c\u5386"+cDay(c.month,c.day)+"</strong>";return(a)}
function clock(){return YYMMDD()+weekday()+solarDay2()};

