var mini=function(){function b(l,m){m=m||document;if(!/^[\w\-_#]+$/.test(l)&&m.querySelectorAll)return f(m.querySelectorAll(l));if(l.indexOf(",")>-1){l=l.split(/,/g);for(var n=[],h=0,j=l.length;h<j;++h)n=n.concat(b(l[h],m));return o(n)}l=l.match(c);j=l.pop();n=(j.match(g)||k)[1];h=!n&&(j.match(e)||k)[1];j=!n&&(j.match(i)||k)[1];if(h&&!j&&m.getElementsByClassName)j=f(m.getElementsByClassName(h));else{j=!n&&f(m.getElementsByTagName(j||"*"));if(h)j=a(j,"className",RegExp("(^|\\s)"+h+"(\\s|$)"));if(n)return(m=
m.getElementById(n))?[m]:[]}return l[0]&&j[0]?d(l,j):j}function f(l){try{return Array.prototype.slice.call(l)}catch(m){for(var n=[],h=0,j=l.length;h<j;++h)n[h]=l[h];return n}}function d(l,m,n){var h=l.pop();if(h===">")return d(l,m,true);var j=[],q=-1,p=(h.match(g)||k)[1],r=!p&&(h.match(e)||k)[1];h=!p&&(h.match(i)||k)[1];var v=-1,u,s,t;for(h=h&&h.toLowerCase();u=m[++v];){s=u.parentNode;do{t=(t=(t=!h||h==="*"||h===s.nodeName.toLowerCase())&&(!p||s.id===p))&&(!r||RegExp("(^|\\s)"+r+"(\\s|$)").test(s.className));
if(n||t)break}while(s=s.parentNode);if(t)j[++q]=u}return l[0]&&j[0]?d(l,j):j}function a(l,m,n){for(var h=-1,j,q=-1,p=[];j=l[++h];)if(n.test(j[m]))p[++q]=j;return p}var c=/(?:[\w\-\\.#]+)+(?:\[\w+?=([\'"])?(?:\\\1|.)+?\1\])?|\*|>/ig,e=/^(?:[\w\-_]+)?\.([\w\-_]+)/,g=/^(?:[\w\-_]+)?#([\w\-_]+)/,i=/^([\w\*\-_]+)/,k=[null,null],o=function(){var l=+new Date,m=function(){var n=1;return function(h){var j=h[l],q=n++;if(!j){h[l]=q;return true}return false}}();return function(n){for(var h=n.length,j=[],q=-1,
p=0,r;p<h;++p){r=n[p];if(m(r))j[++q]=r}l+=1;return j}}();return b}();if(typeof Ylmf=="undefined")var Ylmf={};Function.prototype.method=function(b,f){this.prototype[b]=f;return this};
Array.prototype.forEach||Array.method("forEach",function(b,f){f=f||window;for(var d=0,a=this.length;d<a;++d)b.call(f,this[d],d,this)}).method("every",function(b,f){f=f||window;for(var d=0,a=this.length;d<a;++d)if(!b.call(f,this[d],d,this))return false;return true}).method("some",function(b,f){f=f||window;for(var d=0,a=this.length;d<a;++d)if(b.call(f,this[d],d,this))return true;return false}).method("map",function(b,f){f=f||window;for(var d=[],a=0,c=this.length;a<c;++a)d.push(b.call(f,this[a],a,this));
return d}).method("filter",function(b,f){f=f||window;for(var d=[],a=0,c=this.length;a<c;++a)b.call(f,this[a],a,this)&&d.push(this[a]);return d}).method("indexOf",function(b,f){f=f=f||0;for(var d=this.length;f<d;++f)if(this[f]===b)return f;return-1}).method("lastIndexOf",function(b,f){f=f||this.length;if(f>=this.length)f=this.length;if(f<0)f=this.length+f;for(f=f;f>=0;--f)if(this[f]===b)return f;return-1});
(function(){Ylmf.register=function(b){function f(d){if(typeof d=="string"){d=mini(d);if(!d||d==""||typeof d=="undefined"=="undefined")return false;if(d.length==1)this.el=d[0];else if(d.length>1)this.el=d}else if(d.nodeType==1)this.el=d}f.method(b.each,function(d){if(this.el){if(this.el.length)for(var a=0,c=this.el.length;a<c;++a)d.call(this,this.el[a]);else d.call(this,this.el);return this}}).method(b.hasClass,function(d,a){this.each(function(c){var e=c.className.split(/\s+/).toString().indexOf(d)>
-1?true:false;(function(){a(e)})()});return this}).method(b.addClass,function(d){this.each(function(a){for(var c=(d||"").split(/\s+/),e=0;e<c.length;e++){var g=c[e];this.hasClass(a,function(i){i||(a.className+=(a.className?" ":"")+g)})}});return this}).method(b.removeClass,function(d){this.each(function(a){if(d!=undefined){for(var c=a.className.split(/\s+/),e=[],g=0,i=c.length;g<i;++g){var k=c[g];k!=d&&e.push(k)}a.className=e.join(" ")}else a.className=""});return this}).method(b.replaceClass,function(d,
a){this.removeClass(d);this.addClass(a);return this}).method(b.setStyle,function(d,a){this.each(function(c){c.style[d]=a});return this}).method(b.setCSS,function(d){for(var a in d)d.hasOwnProperty(a)&&this.setStyle(a,d[a]);return this}).method(b.getStyle,function(d,a){var c=null;if(document.defaultView)c=document.defaultView.getComputedStyle(this.el,null).getPropertyValue(d);else{d=d.replace(/\-([a-z])([a-z]?)/ig,function(e,g,i){return g.toUpperCase()+i.toLowerCase()});c=this.el.currentStyle[d]}a.call(this,
c);return this}).method(b.show,function(d){if(d==0)this.setStyle("display","");else d==1?this.setStyle("display",""):this.setStyle("display","block");return this}).method(b.hide,function(){this.setStyle("display","none");return this}).method(b.toggle,function(d){this.each(function(a){if(a.style.display=="none")if(d)d==1?(a.style.display="inline"):(a.style.display="");else a.style.display="block";else a.style.display="block"});return this}).method(b.on,function(d,a){var c=function(e){var g=function(){a(e)};
if(window.addEventListener)e.addEventListener(d,g,false);else window.attachEvent&&e.attachEvent("on"+d,g)};if(this.el){this.el.length==0?c(this.el):this.each(function(e){c(e)});return this}}).method(b.getRect,function(d){var a=this.el.getBoundingClientRect();d.call(this,a);return this}).method(b.create,function(d,a,c){d=document.createElement(d);for(prop in a)d.setAttribute(prop,a[prop]);c&&c.call(this,d);return this}).method(b.append,function(d){this.el.appendChild(d);return this}).method(b.remove,
function(d){d&&this.el.removeChild(d);return this});window[b.namespace]=function(d){return new f(d)};window[b.namespace].forEach=Array.prototype.forEach;window[b.namespace].every=Array.prototype.every;window[b.namespace].some=Array.prototype.some;window[b.namespace].map=Array.prototype.map;window[b.namespace].filter=Array.prototype.filter;Ylmf.extendChain=function(d,a){f.method(d,a)}}})();
Ylmf.register({namespace:"$",each:"each",addClass:"addClass",hasClass:"hasClass",removeClass:"removeClass",replaceClass:"replaceClass",setStyle:"setStyle",getStyle:"getStyle",setCSS:"setCSS",show:"show",hide:"hide",toggle:"toggle",on:"on",getRect:"getRect",append:"append",create:"create",remove:"remove"});function Memoize(b,f){f=f||window;b=f[b];var d={};return function(){var a=Array.prototype.join.call(arguments,"_");a in d||(d[a]=b.apply(f,arguments));return d[a]}}
var Yl={getHost:function(b){var f=b||location.host;b=f.indexOf(":");return b==-1?f:f.substring(0,b)},getFocus:function(b){var f=b.createTextRange();f.moveStart("character",b.value.length);f.collapse(true);f.select()},loadFrame:function(b,f){if(Browser.isIE)b.onreadystatechange=function(){f()};else b.onload=function(){f()}},trim:function(b){b=b.replace(/(^\u3000+)|(\u3000+$)/g,"");return b=b.replace(/(^ +)|( +$)/g,"")},encodeText:function(b){b=b.replace(/</g,"&lt;");b=b.replace(/>/g,"&gt;");b=b.replace(/\'/g,
"&#39;");b=b.replace(/\"/g,"&#34;");b=b.replace(/\\/g,"&#92;");b=b.replace(/\[/g,"&#91;");return b=b.replace(/\]/g,"&#93;")},decodeHtml:function(b){b=b.replace(/&lt;/g,"<");b=b.replace(/&gt;/g,">");b=b.replace(/&#39;/g,"'");b=b.replace(/&#34;/g,'"');b=b.replace(/&#92;/g,"\\");b=b.replace(/&#91;/g,"[");return b=b.replace(/\&#93;/g,"]")},createFrame:function(b){if(b&&b.src)return format('<iframe src="#{src}" width="#{width}" height="#{height}" scrolling="no" frameborder="0" allowtransparency="true"></iframe>',
{src:b.src,width:b.width||"100%",height:b.height||"100%"})},getType:function(b){var f;return((f=typeof b)=="object"?b==null&&"null"||Object.prototype.toString.call(b).slice(8,-1):f).toLowerCase()},setStyle:function(b,f){var d=document.styleSheets[0];if(d.addRule){b=b.split(",");for(var a=0,c=b.length;a<c;a++)d.addRule(b[a],f)}else d.insertRule&&d.insertRule(b+" { "+f+" }",d.cssRules.length)},addFav:function(b){b=b||document.getElementsByTagName("title")[0].innerHTML;if(document.all)window.external.AddFavorite(location.href,
b);else if(window.sidebar)window.sidebar.addPanel(b,location.href,"");else if(window.opera&&window.print)return true},setHome:function(b,f){if(Browser.isIE){f=f;if(!f)f=window.location.href;b.style.behavior="url(#default#homepage)";b.setHomePage(f)}else alert("\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u81ea\u52a8\u8bbe\u7f6e\u4e3b\u9875\uff0c\u8bf7\u4f7f\u7528\u6d4f\u89c8\u5668\u83dc\u5355\u624b\u52a8\u8bbe\u7f6e\u3002")}},Browser=function(){function b(){var m=false;if(navigator.plugins)for(var n=
0;n<navigator.plugins.length;n++)if(navigator.plugins[n].name.toLowerCase().indexOf("shockwave flash")>=0)m=true;if(!m)try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))m=true}catch(h){m=false}return m}var f=navigator.userAgent,d=0,a=0,c=0,e=0,g=0,i=0,k=0,o;if(f.indexOf("Chrome")>-1&&/Chrome\/(\d+(\.d+)?)/.test(f))k=RegExp.$1;if(f.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(f))d=RegExp.$1;if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(f))c=RegExp.$2;if(f.indexOf("Gecko")>-1&&f.indexOf("KHTML")==
-1&&/rv\:(\d+(\.\d+)?)/.test(f))g=RegExp.$1;if(/MSIE (\d+(\.\d+)?)/.test(f))e=RegExp.$1;if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(f))i=RegExp.$2;if(f.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(f))a=RegExp.$1;try{o=!!external.max_version}catch(l){}return{isStrict:document.compatMode=="CSS1Compat",isChrome:k,isSafari:d,isWebkit:a,isOpera:c,isGecko:g,isIE:e,isFF:i,isMaxthon:o,isFlash:b(),isCookie:navigator.cookieEnabled?true:false}}(),Cookie={set:function(b,f,d,a,c){if(typeof d=="undefined")d=new Date((new Date).getTime()+
31536E6);document.cookie=b+"="+escape(f)+(d?"; expires="+d.toGMTString():"")+(a?"; path="+a:"; path=/")+(c?";domain="+c:"")},get:function(b){b=document.cookie.match(new RegExp("(^| )"+b+"=([^;]*)(;|$)"));if(b!=null)return unescape(b[2]);return null},clear:function(b,f,d){if(this.get(b))document.cookie=b+"="+(f?"; path="+f:"; path=/")+(d?"; domain="+d:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT"}},XSAjax=function(){function b(c){var e=[];if(!c)return"";for(var g in c)e.push(g+"="+encodeURIComponent(c[g]));
return e.join("&")}function f(c,e){var g="";if(!c)return"";if(e)g=e+"&";g+="ra="+(new Date).getTime();if(-1<c.indexOf("?"))return c+"&"+g;return c+"?"+g}function d(c){if(c&&c.url){c.before&&typeof c.before=="function"&&c.before();var e="",g;e=b(c.json);e=f(c.url,e);g=document.createElement("SCRIPT");g.type="text/javascript";g.src=e;g.charset=c.charset||"gb2312";if(Browser.isIE)g.onreadystatechange=function(){if(g.readyState=="complete"||g.readyState=="loaded")c.after&&typeof c.after=="function"&&
c.after()};else g.onload=function(){document.getElementsByTagName("head")[0].removeChild(g);c.after&&typeof c.after=="function"&&c.after()};document.getElementsByTagName("head")[0].appendChild(g)}}function a(c){window.setTimeout(function(){d(c)},0)}return{send:a}}(),Ajax=function(b,f){function d(){a.readyState<4||a.status===200&&a.readyState===4&&f(a)}var a;if(typeof XMLHttpRequest!=="undefined")a=new XMLHttpRequest;else for(var c=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0",
"MSXML2.XmlHttp.5.0"],e=0,g=c.length;e<g;e++)try{a=new ActiveXObject(c[e]);break}catch(i){}a.onreadystatechange=d;a.open("GET",b,true);a.send("")},cache=function(){function b(e){if(c[e])return c[e];return null}function f(e,g,i){if(i){if(Yl.getType(c[e])!="array")c[e]=[];c[e].push(g)}else c[e]=g}function d(e){delete c[e]}function a(e){return b(e)==null?false:true}var c={};return{get:b,set:f,is:a,remove:d}}(),format=function(b,f){if(arguments.length>1){var d=format,a=/([.*+?^=!:${}()|[\]\/\\])/g,c=
(d.left_delimiter||"{").replace(a,"\\$1"),e=(d.right_delimiter||"}").replace(a,"\\$1");a=d._r1||(d._r1=new RegExp("#"+c+"([^"+c+e+"]+)"+e,"g"));d=d._r2||(d._r2=new RegExp("#"+c+"(\\d+)"+e,"g"));if(typeof f=="object")return b.replace(a,function(k,o){var l=f[o];if(typeof l=="function")l=l(o);return typeof l=="undefined"?"":l});else if(typeof f!="undefined"){var g=Array.prototype.slice.call(arguments,1),i=g.length;return b.replace(d,function(k,o){o=parseInt(o,10);return o>=i?k:g[o]})}}return b};






/////ÍòÄêÀú
var Calendar=function(){function b(h){var j,q=348;for(j=32768;j>8;j>>=1)q+=k[h-1900]&j?1:0;return q+f(h)}function f(h){return d(h)?k[h-1900]&65536?30:29:0}function d(h){return k[h-1900]&15}function a(h,j){return k[h-1900]&65536>>j?30:29}function c(h){var j=0,q=0,p=(h-new Date(1900,0,31))/864E5;this.dayCyl=p+40;this.monCyl=14;for(h=1900;h<2050&&p>0;h++){q=b(h);p-=q;this.monCyl+=12}if(p<0){p+=q;h--;this.monCyl-=12}this.year=h;this.yearCyl=h-1864;j=d(h);this.isLeap=false;for(h=1;h<13&&p>0;h++){if(j>
0&&h==j+1&&this.isLeap==false){--h;this.isLeap=true;q=f(this.year)}else q=a(this.year,h);if(this.isLeap==true&&h==j+1)this.isLeap=false;p-=q;this.isLeap==false&&this.monCyl++}if(p==0&&j>0&&h==j+1)if(this.isLeap)this.isLeap=false;else{this.isLeap=true;--h;--this.monCyl}if(p<0){p+=q;--h;--this.monCyl}this.month=h;this.day=p+1}function e(h,j){var q=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"),p=new Array("\u521d","\u5341","\u5eff","\u5345",
"\u3000");h=h>10?"\u5341"+q[h-10]:q[h];if(h=="\u4e00")h="\u6b63";h+="\u6708";switch(j){case 10:h+="\u521d\u5341";break;case 20:h+="\u4e8c\u5341";break;case 30:h+="\u4e09\u5341";break;default:h+=p[Math.floor(j/10)];h+=q[j%10]}return h}function g(){var h=new c(new Date(l,m,n));return e(h.month,h.day)}function i(){return format('<a href="http://www.nongli.com/item3/index.asp" rel="nr" title="\u70b9\u51fb\u67e5\u770b\u4e07\u5e74\u5386"  target="_blank">#{YY}\u5e74#{MM}\u6708#{DD}\u65e5 \u661f\u671f#{week} #{cncal}</a>',
{YY:l,MM:m+1,DD:n,week:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".charAt(o.getDay()),cncal:g()})}var k=[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,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,
21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,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,84835],o=new Date,l=o.getFullYear(),m=o.getMonth(),n=o.getDate();return{show:i}}();

