var mini=function(){function a(i,l){l=l||document;if(!/^[\w\-_#]+$/.test(i)&&l.querySelectorAll)return c(l.querySelectorAll(i));if(i.indexOf(",")>-1){i=i.split(/,/g);for(var m=[],j=0,k=i.length;j<k;++j)m=m.concat(a(i[j],l));return s(m)}i=i.match(e);k=i.pop();m=(k.match(h)||q)[1];j=!m&&(k.match(f)||q)[1];k=!m&&(k.match(o)||q)[1];if(j&&!k&&l.getElementsByClassName)k=c(l.getElementsByClassName(j));else{k=!m&&c(l.getElementsByTagName(k||"*"));if(j)k=d(k,"className",RegExp("(^|\\s)"+j+"(\\s|$)"));if(m)return(l=
l.getElementById(m))?[l]:[]}return i[0]&&k[0]?b(i,k):k}function c(i){try{return Array.prototype.slice.call(i)}catch(l){for(var m=[],j=0,k=i.length;j<k;++j)m[j]=i[j];return m}}function b(i,l,m){var j=i.pop();if(j===">")return b(i,l,true);var k=[],g=-1,n=(j.match(h)||q)[1],p=!n&&(j.match(f)||q)[1];j=!n&&(j.match(o)||q)[1];var r=-1,v,t,u;for(j=j&&j.toLowerCase();v=l[++r];){t=v.parentNode;do{u=(u=(u=!j||j==="*"||j===t.nodeName.toLowerCase())&&(!n||t.id===n))&&(!p||RegExp("(^|\\s)"+p+"(\\s|$)").test(t.className));
if(m||u)break}while(t=t.parentNode);if(u)k[++g]=v}return i[0]&&k[0]?b(i,k):k}function d(i,l,m){for(var j=-1,k,g=-1,n=[];k=i[++j];)if(m.test(k[l]))n[++g]=k;return n}var e=/(?:[\w\-\\.#]+)+(?:\[\w+?=([\'"])?(?:\\\1|.)+?\1\])?|\*|>/ig,f=/^(?:[\w\-_]+)?\.([\w\-_]+)/,h=/^(?:[\w\-_]+)?#([\w\-_]+)/,o=/^([\w\*\-_]+)/,q=[null,null],s=function(){var i=+new Date,l=function(){var m=1;return function(j){var k=j[i],g=m++;if(!k){j[i]=g;return true}return false}}();return function(m){for(var j=m.length,k=[],g=-1,
n=0,p;n<j;++n){p=m[n];if(l(p))k[++g]=p}i+=1;return k}}();return a}();if(typeof Ylmf=="undefined")var Ylmf={};Function.prototype.method=function(a,c){this.prototype[a]=c;return this};
Array.prototype.forEach||Array.method("forEach",function(a,c){c=c||window;for(var b=0,d=this.length;b<d;++b)a.call(c,this[b],b,this)}).method("every",function(a,c){c=c||window;for(var b=0,d=this.length;b<d;++b)if(!a.call(c,this[b],b,this))return false;return true}).method("some",function(a,c){c=c||window;for(var b=0,d=this.length;b<d;++b)if(a.call(c,this[b],b,this))return true;return false}).method("map",function(a,c){c=c||window;for(var b=[],d=0,e=this.length;d<e;++d)b.push(a.call(c,this[d],d,this));
return b}).method("filter",function(a,c){c=c||window;for(var b=[],d=0,e=this.length;d<e;++d)a.call(c,this[d],d,this)&&b.push(this[d]);return b}).method("indexOf",function(a,c){c=c=c||0;for(var b=this.length;c<b;++c)if(this[c]===a)return c;return-1}).method("lastIndexOf",function(a,c){c=c||this.length;if(c>=this.length)c=this.length;if(c<0)c=this.length+c;for(c=c;c>=0;--c)if(this[c]===a)return c;return-1});
(function(){Ylmf.register=function(a){function c(b){if(typeof b=="string"){b=mini(b);if(!b||b==""||typeof b=="undefined"=="undefined")return false;if(b.length==1)this.el=b[0];else if(b.length>1)this.el=b}else if(b.nodeType==1)this.el=b}c.method(a.each,function(b){if(this.el){if(this.el.length)for(var d=0,e=this.el.length;d<e;++d)b.call(this,this.el[d]);else b.call(this,this.el);return this}}).method(a.hasClass,function(b,d){this.each(function(e){var f=e.className.split(/\s+/).toString().indexOf(b)>
-1?true:false;(function(){d(f)})()});return this}).method(a.addClass,function(b){this.each(function(d){for(var e=(b||"").split(/\s+/),f=0;f<e.length;f++){var h=e[f];this.hasClass(d,function(o){o||(d.className+=(d.className?" ":"")+h)})}});return this}).method(a.removeClass,function(b){this.each(function(d){if(b!=undefined){for(var e=d.className.split(/\s+/),f=[],h=0,o=e.length;h<o;++h){var q=e[h];q!=b&&f.push(q)}d.className=f.join(" ")}else d.className=""});return this}).method(a.replaceClass,function(b,
d){this.removeClass(b);this.addClass(d);return this}).method(a.setStyle,function(b,d){this.each(function(e){e.style[b]=d});return this}).method(a.setCSS,function(b){for(var d in b)b.hasOwnProperty(d)&&this.setStyle(d,b[d]);return this}).method(a.getStyle,function(b,d){var e=null;if(document.defaultView)e=document.defaultView.getComputedStyle(this.el,null).getPropertyValue(b);else{b=b.replace(/\-([a-z])([a-z]?)/ig,function(f,h,o){return h.toUpperCase()+o.toLowerCase()});e=this.el.currentStyle[b]}d.call(this,
e);return this}).method(a.show,function(b){if(b==0)this.setStyle("display","");else b==1?this.setStyle("display",""):this.setStyle("display","block");return this}).method(a.hide,function(){this.setStyle("display","none");return this}).method(a.toggle,function(b){this.each(function(d){if(d.style.display=="none")if(b)b==1?(d.style.display="inline"):(d.style.display="");else d.style.display="block";else d.style.display="block"});return this}).method(a.on,function(b,d){var e=function(f){var h=function(){d(f)};
if(window.addEventListener)f.addEventListener(b,h,false);else window.attachEvent&&f.attachEvent("on"+b,h)};if(this.el){this.el.length==0?e(this.el):this.each(function(f){e(f)});return this}}).method(a.getRect,function(b){var d=this.el.getBoundingClientRect();b.call(this,d);return this}).method(a.create,function(b,d,e){b=document.createElement(b);for(prop in d)b.setAttribute(prop,d[prop]);e&&e.call(this,b);return this}).method(a.append,function(b){this.el.appendChild(b);return this}).method(a.remove,
function(b){b&&this.el.removeChild(b);return this});window[a.namespace]=function(b){return new c(b)};window[a.namespace].forEach=Array.prototype.forEach;window[a.namespace].every=Array.prototype.every;window[a.namespace].some=Array.prototype.some;window[a.namespace].map=Array.prototype.map;window[a.namespace].filter=Array.prototype.filter;Ylmf.extendChain=function(b,d){c.method(b,d)}}})();
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"});
var Yl={getHost:function(a){var c=a||location.host;a=c.indexOf(":");return a==-1?c:c.substring(0,a)},getFocus:function(a){var c=a.createTextRange();c.moveStart("character",a.value.length);c.collapse(true);c.select()},loadFrame:function(a,c){if(Browser.isIE)a.onreadystatechange=function(){c()};else a.onload=function(){c()}},trim:function(a){a=a.replace(/(^\u3000+)|(\u3000+$)/g,"");return a=a.replace(/(^ +)|( +$)/g,"")},encodeText:function(a){a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");a=a.replace(/\'/g,
"&#39;");a=a.replace(/\"/g,"&#34;");a=a.replace(/\\/g,"&#92;");a=a.replace(/\[/g,"&#91;");return a=a.replace(/\]/g,"&#93;")},decodeHtml:function(a){a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");a=a.replace(/&#39;/g,"'");a=a.replace(/&#34;/g,'"');a=a.replace(/&#92;/g,"\\");a=a.replace(/&#91;/g,"[");return a=a.replace(/\&#93;/g,"]")},createFrame:function(a){if(a&&a.src)return format('<iframe src="#{src}" width="#{width}" height="#{height}" scrolling="no" frameborder="0" allowtransparency="true"></iframe>',
{src:a.src,width:a.width||"100%",height:a.height||"100%"})},getType:function(a){var c;return((c=typeof a)=="object"?a==null&&"null"||Object.prototype.toString.call(a).slice(8,-1):c).toLowerCase()},setStyle:function(a,c){var b=document.styleSheets[0];if(b.addRule){a=a.split(",");for(var d=0,e=a.length;d<e;d++)b.addRule(a[d],c)}else b.insertRule&&b.insertRule(a+" { "+c+" }",b.cssRules.length)},addFav:function(a){a=a||document.getElementsByTagName("title")[0].innerHTML;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},setHome:function(a,c){if(Browser.isIE){c=c;if(!c)c=window.location.href;a.style.behavior="url(#default#homepage)";a.setHomePage(c)}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 a(){var l=false;if(navigator.plugins)for(var m=
0;m<navigator.plugins.length;m++)if(navigator.plugins[m].name.toLowerCase().indexOf("shockwave flash")>=0)l=true;if(!l)try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))l=true}catch(j){l=false}return l}var c=navigator.userAgent,b=0,d=0,e=0,f=0,h=0,o=0,q=0,s;if(c.indexOf("Chrome")>-1&&/Chrome\/(\d+(\.d+)?)/.test(c))q=RegExp.$1;if(c.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(c))b=RegExp.$1;if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(c))e=RegExp.$2;if(c.indexOf("Gecko")>-1&&c.indexOf("KHTML")==
-1&&/rv\:(\d+(\.\d+)?)/.test(c))h=RegExp.$1;if(/MSIE (\d+(\.\d+)?)/.test(c))f=RegExp.$1;if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(c))o=RegExp.$2;if(c.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(c))d=RegExp.$1;try{s=!!external.max_version}catch(i){}return{isStrict:document.compatMode=="CSS1Compat",isChrome:q,isSafari:b,isWebkit:d,isOpera:e,isGecko:h,isIE:f,isFF:o,isMaxthon:s,isFlash:a(),isCookie:navigator.cookieEnabled?true:false}}(),Cookie={set:function(a,c,b,d,e){if(typeof b=="undefined")b=new Date((new Date).getTime()+
31536E6);document.cookie=a+"="+escape(c)+(b?"; expires="+b.toGMTString():"")+(d?"; path="+d:"; path=/")+(e?";domain="+e:"")},get:function(a){a=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));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"}},Ajax=function(a,c){function b(){d.readyState<4||d.status===200&&d.readyState===4&&c(d)}var d;if(typeof XMLHttpRequest!==
"undefined")d=new XMLHttpRequest;else for(var e=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.5.0"],f=0,h=e.length;f<h;f++)try{d=new ActiveXObject(e[f]);break}catch(o){}d.onreadystatechange=b;d.open("GET",a,true);d.send("")},cache=function(){function a(f){if(e[f])return e[f];return null}function c(f,h,o){if(o){if(Yl.getType(e[f])!="array")e[f]=[];e[f].push(h)}else e[f]=h}function b(f){delete e[f]}function d(f){return a(f)==null?false:true}var e={};
return{get:a,set:c,is:d,remove:b}}(),format=function(a,c){if(arguments.length>1){var b=format,d=/([.*+?^=!:${}()|[\]\/\\])/g,e=(b.left_delimiter||"{").replace(d,"\\$1"),f=(b.right_delimiter||"}").replace(d,"\\$1");d=b._r1||(b._r1=new RegExp("#"+e+"([^"+e+f+"]+)"+f,"g"));b=b._r2||(b._r2=new RegExp("#"+e+"(\\d+)"+f,"g"));if(typeof c=="object")return a.replace(d,function(q,s){var i=c[s];if(typeof i=="function")i=i(s);return typeof i=="undefined"?"":i});else if(typeof c!="undefined"){var h=Array.prototype.slice.call(arguments,
1),o=h.length;return a.replace(b,function(q,s){s=parseInt(s,10);return s>=o?q:h[s]})}}return a};function DOMReady(a){/(?!.*?compatible|.*?webkit)^mozilla|opera/i.test(navigator.userAgent)?document.addEventListener("DOMContentLoaded",a,false):window.setTimeout(a,0)}
var skinSelector=function(){function a(e,f){switch(e){case "style":e=["blue","green","pink","orange"];var h="";if(f<1){b("","style");Cookie.clear("style")}else{h="themes/114la10.7/home/style/"+e[f]+"/style.css";b(h,"style")}break;case "sidebar":e=["left","right"];h=document.getElementsByTagName("html")[0];if(f>0)h.className=e[f];else{h.className="";Cookie.clear("sidebar")}break;case "font":h="themes/114la10.7/css/font/"+Yl.trim(f)+".css";if(Yl.trim(f)=="default"){Cookie.clear("font");b("","font")}else b(h,
"font");break;case "bg":e="themes/114la10.7/images/bg/"+Yl.trim(f);h=$("#temp-css").el;var o="";if(Yl.trim(f)!=="default")o="body {background:url("+e+")}";else{o="";Cookie.clear("bg")}if(h.styleSheet)h.styleSheet.cssText=o;else h.innerHTML=o;break}}var c={style:"",sidebar:"",font:"",bg:""},b=function(e,f){if(document.getElementById(f))$("#"+f).el.href=e;else $("head").create("link",{id:f,href:e,rel:"stylesheet",type:"text/css"},function(h){this.append(h)})},d=function(){for(var e in c)c[e]&&a(e,c[e])};
return{set:a,init:function(){for(var e in c)if(Cookie.get(e))c[e]=Cookie.get(e);d()}}}();skinSelector.init();Browser.isIE=="6.0"&&document.execCommand("BackgroundImageCache",false,true);
var Calendar=function(){function a(g){var n,p=348;for(n=32768;n>8;n>>=1)p+=i[g-1900]&n?1:0;return p+c(g)}function c(g){return b(g)?i[g-1900]&65536?30:29:0}function b(g){return i[g-1900]&15}function d(g,n){return i[g-1900]&65536>>n?30:29}function e(g){var n=0,p=0,r=(g-new Date(1900,0,31))/864E5;this.dayCyl=r+40;this.monCyl=14;for(g=1900;g<2050&&r>0;g++){p=a(g);r-=p;this.monCyl+=12}if(r<0){r+=p;g--;this.monCyl-=12}this.year=g;this.yearCyl=g-1864;n=b(g);this.isLeap=false;for(g=1;g<13&&r>0;g++){if(n>
0&&g==n+1&&this.isLeap==false){--g;this.isLeap=true;p=c(this.year)}else p=d(this.year,g);if(this.isLeap==true&&g==n+1)this.isLeap=false;r-=p;this.isLeap==false&&this.monCyl++}if(r==0&&n>0&&g==n+1)if(this.isLeap)this.isLeap=false;else{this.isLeap=true;--g;--this.monCyl}if(r<0){r+=p;--g;--this.monCyl}this.month=g;this.day=r+1}function f(g,n){var p=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"),r=new Array("\u521d","\u5341","\u5eff","\u5345",
"\u3000");g=g>10?"\u5341"+p[g-10]:p[g];if(g=="\u4e00")g="\u6b63";g+="\u6708";switch(n){case 10:g+="\u521d\u5341";break;case 20:g+="\u4e8c\u5341";break;case 30:g+="\u4e09\u5341";break;default:g+=r[Math.floor(n/10)];g+=p[n%10]}return g}function h(){var g=new e(new Date(m,j,k));return f(g.month,g.day)}function o(){return format('<a href="http://tool.115.com/live/calendar/" rel="nr" title="\u70b9\u51fb\u67e5\u770b\u4e07\u5e74\u5386">#{YY}\u5e74#{MM}\u6708#{DD}\u65e5 \u661f\u671f#{week} </a>',{YY:m,MM:j+
1,DD:k,week:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".charAt(l.getDay())})}function q(){k+=1;return m+"-"+(j<9?"0"+(j+1):j+1)+"-"+(k+1<10?"0"+k:k)}function s(){return'<a href="http://tool.115.com/live/calendar/" rel="nr" title="\u70b9\u51fb\u67e5\u770b\u4e07\u5e74\u5386">\u519c\u5386 '+h()+"</a>"}var i=[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],l=new Date,m=l.getFullYear(),j=l.getMonth(),k=l.getDate();return{day:o,cnday:s,date:q}}();
