function $(a){return document.getElementById(a)}function getsubelement(a,c){if(typeof c==="string"){var b=$(c);return b.getElementsByTagName(a)}else{return c.getElementsByTagName(a)}}function zyscroller(a){this.id=a._id;if(typeof a._speed!="undefined"){this.speed=a._speed}else{this.speed=1000}if(typeof a._direction!="undefined"){this.direction=a._direction}else{this.direction="up"}if(typeof a._visible!="undefined"){this.visible=a._visible}else{this.visible=1}}zyscroller.prototype.qMarquee=function(){var f=0;var a=$(this.id);var h=getsubelement("ul",a);var b=getsubelement("li",h.item(0));var d=b.length;var n=b.item(0).offsetWidth+7;var j=b.item(0).offsetHeight;var g=j*d;var e=n*d;var m=this.direction;var c=this.speed;if(d>this.visible){h.item(0).innerHTML=h.item(0).innerHTML+h.item(0).innerHTML;switch(this.direction){case"left":h.item(0).style.width=(n*d*2)+"px";break;case"up":break}var l=setInterval(k,c);a.onmouseover=function(){clearInterval(l)},a.onmouseout=function(){l=setInterval(k,c)}}function k(){if(m=="left"){if(a.scrollLeft>=e){a.scrollLeft=0}else{a.scrollLeft++}}if(m=="up"){if(a.scrollTop>=g){a.scrollTop=a.scrollTop-d*j;function i(){if(f<j){a.scrollTop++;f++}else{f=0;clearInterval(o)}}var o=setInterval(i,5)}else{function i(){if(f<j){a.scrollTop++;f++}else{f=0;clearInterval(o)}}var o=setInterval(i,5)}}}};
function zytab(a){(typeof a.tabnum=="undefined")?(this.tabnum=2):(this.tabnum=a.tabnum);(typeof a.auto=="undefined")?(this.auto=true):(this.auto=a.auto);(typeof a.classnameon=="undefined")?(this.classnameon=""):(this.classnameon=a.classnameon);(typeof a.classnameoff=="undefined")?(this.classnameoff=""):(this.classnameoff=a.classnameoff);(typeof a.tabspeed=="undefined")?(this.tabspeed=2000):(this.tabspeed=a.tabspeed);this.tabheadid=a.tabheadid+"_";this.tabcontentid=a.tabcontentid+"_";this.timer1;this.timer2;this.n=1}zytab.prototype.tabmouseover=function(a){this.stop();if(a){this.n=a;this.delayshow()}};zytab.prototype.tabmouseout=function(){this.ClearTime();this.start()};zytab.prototype.stop=function(){clearInterval(this.timer1)};zytab.prototype.delayshow=function(){this.ClearTime();this.timer2=setTimeout(a,100);var b=this;function a(){for(w=1;w<=b.tabnum;w++){if($(b.tabheadid+w)){$(b.tabheadid+w).className=b.classnameoff}if($(b.tabcontentid+w)){$(b.tabcontentid+w).style.display="none"}}if($(b.tabheadid+b.n)){$(b.tabheadid+b.n).className=b.classnameon}if($(b.tabcontentid+b.n)){$(b.tabcontentid+b.n).style.display=""}}};zytab.prototype.ClearTime=function(){clearTimeout(this.timer2)};zytab.prototype.start=function(){if(this.auto){this.timer1=setInterval(a,this.tabspeed)}var b=this;function a(){if(b.n>=b.tabnum){b.n=b.tabnum;b.delayshow();b.n=1}else{b.delayshow();b.n++}}};
var glYear=function(){var e=null;if(arguments[0]){var a=arguments[0];var b=1;var f=1;if(arguments[1]){b=arguments[1];if(arguments[2]){f=arguments[2]}}e=new Date(a,b,f)}else{e=new Date()}var c=new Array("\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D");var d=new Array("\u5E74","\u6708","\u65E5","\u661F\u671F");this.year=e.getFullYear()+d[0];this.month=(e.getMonth()*1+1)+d[1];this.day=e.getDate();this.week=d[3]+c[e.getDay()]};var nlYear=function(){var l=new methodYear();var h=0;var c=0;var r=0;var a=null;if(arguments[0]){var k=arguments[0];var b=1;var g=1;if(arguments[1]){b=arguments[1];if(arguments[2]){g=arguments[2]}}a=new Date(k,b,g)}else{a=new Date()}var d=new Date(1900,0,31);var f=(a-d)/86400000;var j=f+40;var q=14;for(h=1900;h<2050&&f>0;h++){r=l.lYearDays(h);f-=r;q+=12}if(f<0){f+=r;h--;q-=12}var n=h;var e=h-1900+36;var c=l.leapMonth(h);var p=false;for(h=1;h<13&&f>0;h++){if(c>0&&h==(c+1)&&p==false){h--;p=true;r=l.leapDays(n)}else{r=l.monthDays(n,h)}if(p==true&&h==(c+1)){p=false}f-=r;if(p==false){q++}}if(f==0&&c>0&&h==c+1){if(p){p=false}else{p=true;h--;q--}}if(f<0){f+=r;h--;q--}var m=h;var o=f+1;this.isLeap=p;this.yearCyl=l.getTianDi(e)+l.getYMD(0);this.monCyl=l.getTianDi(q)+l.getYMD(1);this.dayCyl=l.getTianDi(j)+l.getYMD(2);this.year=l.getYear(n)+l.getYMD(0);this.month=l.getMonth(m,p)+l.getYMD(1);this.day=l.getDate(o)};var methodYear=function(){var a=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,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448);this.getYMD=function(){var b=new Array("\u5E74","\u6708","\u65E5");return b[arguments[0]]};this.lYearDays=function(){var c=348;var d=arguments[0];for(var b=32768;b>8;b>>=1){c+=(a[d-1900]&b)?1:0}return(c+this.leapDays(d))};this.leapDays=function(){var b=arguments[0];if(this.leapMonth(b)){return((a[b-1900]&65536)?30:29)}else{return(0)}};this.leapMonth=function(){return(a[arguments[0]-1900]&15)};this.monthDays=function(){return((a[arguments[0]-1900]&(65536>>arguments[1]))?30:29)};this.getTianDi=function(){var b=new Array("\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678");var c=new Array("\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5");var d=Math.floor(arguments[0]);return(b[d%10]+c[d%12])};this.getYear=function(){return this.getTianDi(arguments[0]-1900+36)};this.getMonth=function(){var b=new Array("\u6B63","\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C");if(arguments[1]){return("\u95F0"+b[arguments[0]])}return b[arguments[0]]};this.getDate=function(){var e=new Array("\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341");var c=new Array("\u521D","\u5341","\u5EFF","\u5345","\u3000");var b="";var f=Math.floor(arguments[0]);switch(f){case 10:b="\u521D\u5341";break;case 20:b="\u4E8C\u5341";break;case 30:b="\u4E09\u5341";break;default:b=c[Math.floor(f/10)];b+=e[f%10-1]}return b}};function time(){var d=new glYear();var h=d.year;var f=d.month;var g=d.day;var a=d.week;var b=new nlYear();var e=b.year;var i=b.month;var c=b.day;document.write(" "+h+f+g+"\u65e5 "+a);document.write(" "+e+i+c)};

