qtool.cookie={};qtool.cookie.getRaw=function(a){if(a=(new RegExp("(^| )"+a+"=([^;]*)(;|$)")).exec(document.cookie))return a[2]||null;return null};qtool.cookie.get=function(a){a=qtool.cookie.getRaw(a);if("string"==typeof a)return a=decodeURIComponent(a);return null};qtool.cookie.setRaw=function(a,c,b){b=b||{};var d=b.expires;if("number"==typeof b.expires){d=new Date;d.setTime(d.getTime()+b.expires*864E5)}document.cookie=a+"="+c+(b.path?"; path="+b.path:"; path=/")+(d&&d instanceof Date?"; expires="+d.toGMTString():"")+(b.domain?"; domain="+b.domain:"")+(b.secure?"; secure":"")};qtool.cookie.set=function(a,c,b){qtool.cookie.setRaw(a,encodeURIComponent(c),b)};qtool.cookie.remove=function(a,c){c=c||{};c.expires=new Date(0);qtool.cookie.setRaw(a,"",c)};hao360.oldDocwrite=document.write;hao360.newDocwrite=function(str){};if(hao360.oldDocwrite.apply){hao360.docWrite=function(str){hao360.oldDocwrite.apply(document,arguments);}}else{hao360.docWrite=hao360.oldDocwrite;}document.write=hao360.newDocwrite;qtool.load=qtool.load||{},qtool.load=function(){var a=document,b=window,c={},d={},e=function(a){return a.constructor===Array},f={mods:{}},g=a.getElementsByTagName("script"),h=g[g.length-1],i,j=function(a){if(a.clearAttributes)a.clearAttributes();else for(var b in a)a.hasOwnProperty(b)&&delete a[b];a&&a.parentNode&&a.parentNode.removeChild(a),a=null},k=a.createElement("script").readyState?function(a,b){a.onreadystatechange=function(){var c=a.readyState;if(c==="loaded"||c==="complete")a.onreadystatechange=null,b.apply(this)}}:function(a,b){a.addEventListener("load",b,!1)},l=function(b,e,f,g,i,m){var n=h;if(!b)return;if(c[b]){d[b]=!1;if(!g){i&&i(b,m);return}}if(d[b]){setTimeout(function(){l(b,e,f,g,i,m)},1);return}d[b]=!0;var o,p=e||b.toLowerCase().substring(b.lastIndexOf(".")+1);p==="js"?(o=a.createElement("script"),o.setAttribute("type","text/javascript"),f&&(o.charset=f),o.setAttribute("src",b),o.setAttribute("async",!0)):p==="css"&&(o=a.createElement("link"),o.setAttribute("type","text/css"),f&&(o.charset=f),o.setAttribute("rel","stylesheet"),o.setAttribute("href",b),c[b]=!0);if(p==="css"){n.parentNode.insertBefore(o,n),i&&i(b,m);return}k(o,function(){c[b]=!0,i&&i(b,m),j(o)}),n.parentNode.insertBefore(o,n)},m=function(a){if(!a||!e(a))return;var b=0,c,d=[],g=f.mods,h=[],i={},j=function(a){var b=0,c,d;if(i[a])return h;i[a]=!0;if(g[a].requires){d=g[a].requires;for(;typeof(c=d[b++])!="undefined";)g[c]?(j(c),h.push(c)):h.push(c);return h}return h};for(;typeof(c=a[b++])!="undefined";)g[c]&&g[c].requires&&g[c].requires[0]&&(h=[],i={},d=d.concat(j(c))),d.push(c);return d},n=function(a){if(!a||!e(a))return;this.queue=a,this.current=null};return n.prototype={_interval:10,start:function(){var a=this;this.current=this.next();if(!this.current){this.end=!0;return}this.run()},run:function(){var a=this,b,c=this.current;if(typeof c=="function"){c(),this.start();return}typeof c=="string"&&(f.mods[c]?(b=f.mods[c],l(b.path,b.type,b.charset,b.force,function(b){a.start()},a)):/\.js|\.css/i.test(c)?l(c,"","","",function(a,b){b.start()},a):this.start())},next:function(){return this.queue.shift()}},i=function(){var a=[].slice.call(arguments),b;b=new n(m(a)),b.start()},i.add=function(a,b){if(!a||!b||!b.path)return;f.mods[a]=b},i.delay=function(){var a=[].slice.call(arguments),c=a.shift();b.setTimeout(function(){i.apply(this,a)},c)},i.done=function(){var a=[].slice.call(arguments),b=0,d;for(;d=a[b++];)typeof d=="string"&&(f.mods[d]?(mod=f.mods[d],c[mod.path]=!0):/\.js|\.css/i.test(d)&&(c[d]=!0))},i.css=function(b,c){c=c||"qtool-inline-css";var d=a.getElementById(c);d||(d=a.createElement("style"),d.type="text/css",d.id=c,a.getElementsByTagName("head")[0].appendChild(d)),d.styleSheet?d.styleSheet.cssText=d.styleSheet.cssText+b:d.appendChild(a.createTextNode(b))},i}();hao360.setIndex=function(url){if(/^http:\/\/hao\.360\.cn/i.test(url)){qtool.cookie.set(HAO360URLSAVER,url,{expires:90,path:"/"});location.replace(url);}};hao360.getFmtDate=function(dateObj){return dateObj.getFullYear()+'-'+("0"+(dateObj.getMonth()+1)).slice(-2)+'-'+("0"+dateObj.getDate()).slice(-2);};var JSON;JSON||(JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),qtool=qtool||{},qtool.createClass=function(a){function c(){}var b=Array.prototype.slice.call(arguments,1);c.prototype=a.prototype;var d=new c;return Object.prototype.toString.call(a)==="[object Function]"&&a.apply(d,b),d},qtool.instance=function(){var a={};return function(b){if(!b.constructor)return null;var c=Array.prototype.slice.call(arguments,1),d=Object.prototype.toString,e;if(b.getkey&&d.call(b.getkey)==="[object Function]"){var f=b.getkey.apply(null,c);return a[f]||(a[f]=qtool.createClass.apply(null,[b.constructor].concat(c))),a[f]}return qtool.createClass.apply(null,[b.constructor].concat(c))}}(),function(){var a={localStorage:{test:function(){try{return window.localStorage?!0:!1}catch(a){return!1}},methods:{init:function(a){},set:function(a,b,c){try{window.localStorage.setItem(a+b,c)}catch(d){this.clear(a)}},get:function(a,b){return window.localStorage.getItem(a+b)},remove:function(a,b){window.localStorage.removeItem(a+b)},clear:function(a){window.localStorage.clear()}}},userData:{test:function(){try{return window.ActiveXObject&&document.documentElement.addBehavior?!0:!1}catch(a){return!1}},methods:{owners:{},init:function(a){if(!this.owners[a]){if(document.getElementById(a))this.owners[a]=document.getElementById(a);else{var b=document.createElement("script");b.id=a,b.style.display="none",b.addBehavior("#default#userdata"),document.getElementsByTagName("head")[0].appendChild(b),this.owners[a]=b}var c=this;window.attachEvent("onunload",function(){c.owners[a]=null})}},set:function(a,b,c){if(this.owners[a])try{this.owners[a].setAttribute(b,c),this.owners[a].save(a)}catch(d){this.clear(a)}},get:function(a,b){return this.owners[a]?(this.owners[a].load(a),this.owners[a].getAttribute(b)):""},remove:function(a,b){this.owners[a]&&(this.owners[a].removeAttribute(b),this.owners[a].save(a))},clear:function(a){if(this.owners[a]){var b=this.owners[a].XMLDocument.documentElement.attributes;this.owners[a].load(a);for(var c=0,d;d=b[c];c++)this.owners[a].removeAttribute(d.name);this.owners[a].save(a)}}}}},b=function(){return a.localStorage.test()?a.localStorage.methods:a.userData.test()?a.userData.methods:{init:function(){},get:function(){},set:function(){},remove:function(){},clear:function(){}}}(),c=function(a){this._cache={},this._ns="ns_"+a+"_",this._inited=!1,b&&!this._inited&&b.init(this._ns)};c.serialize=function(a){return JSON.stringify(a)},c.unserialize=function(a){return JSON.parse(a)},c.prototype={set:function(a,d){try{b.set(this._ns,a,c.serialize(d))}catch(e){}this._cache[a]=d},get:function(a){if(this._cache[a])return this._cache[a];try{return this._cache[a]=c.unserialize(b.get(this._ns,a))}catch(d){return""}},remove:function(a){try{b.remove(this._ns,a)}catch(c){}this._cache[a]=null,delete this._cache[a]},clear:function(){try{b.clear(this._ns)}catch(a){}this._cache={}}},c.ins=function(a){return qtool.instance({getkey:function(a){return"qs_"+a},constructor:c},a)},qtool.cacheSvc=c}();(function(){var a=Object.prototype.toString,b={},c={once:"onceCallback",always:"alwaysCallback"},d=function(b){return a.call(b)==="[object Function]"},e=/(\=)\?(&|$)|\?\?/i,f=Array.prototype.slice,g=function(a,b,c){if(a&&b&&c){var d="smartload"+b,f="$1"+d+"$2";window[d]=function(a){c.apply(null,[a]),setTimeout(function(){window[d]=null},1)},a=a.replace(e,f),qtool.load.add(d,{path:a,charset:"utf-8",type:"js",force:!0}),qtool.load(d)}},h=function(a){var b=this;this.ns="slo_"+a.replace(/-/g,"").replace(/ /g,""),this.localStore=qtool.cacheSvc.ins(a),this.onceCallback=[],this.alwaysCallback=[],this.config={callUrl:"",dataFilter:null},this.serverLoad=function(a){var c=b.config,d=b.localStore,e=b.ns,f=a.replace(/-/g,"").replace(/ /g,"");g(c.callUrl,f,function(f){if(f){var g=d.get(e)||{};c.dataFilter&&(f=c.dataFilter(f,g[a]||null)),g[a]=f,d.set(e,g),b.loadCb(f,{from:"server"})}})},this.loadCb=function(a,c){var e=function(b){if(b.length>0){var e,f;for(f=0,e=b.length;f<e;f++)d(b[f])&&b[f].apply(null,[a,c])}},f=b.onceCallback;b.onceCallback=[],e(f),e(b.alwaysCallback)}};h.prototype={then:function(a,b){var d;(d=c[a])&&this[d].push(b)},setup:function(a){a.callUrl&&(this.config.callUrl=a.callUrl),a.dataFilter&&(this.config.dataFilter=a.dataFilter)},teardown:function(){this.onceCallback=[],this.alwaysCallback=[],this.config={callUrl:"",dataFilter:null}},update:function(a,b){var c=this;a&&(b=b,setTimeout(function(){c.serverLoad(a)},b))},remain:function(){var a=f.call(arguments),b=0,c,d={},e=this.localStore.get(this.ns)||{};for(;c=a[b++];)e[c]&&(d[c]=e[c]);this.localStore.set(this.ns,d)},remove:function(){var a=f.call(arguments),b=0,c,d=this.localStore.get(this.ns)||{};for(;c=a[b++];)d[c]&&delete d[c];this.localStore.set(this.ns,d)},fetch:function(a){var b,c;return a?(b=this.localStore.get(this.ns)||{},c=b[a],c?(this.loadCb(c,{from:"local"}),c):(this.update(a),null)):null}},h.ins=function(a){var c="load_"+a;return b[c]||(b[c]=new h(a)),b[c]},window.smartLoad=h})();hao360.lunar=function(a){var b=function(a){this.dateObj=a!=undefined?a:new Date,this.SY=this.dateObj.getFullYear(),this.SM=this.dateObj.getMonth(),this.SD=this.dateObj.getDate(),this.lunarInfo=[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],this.leapMonth=function(a){return this.lunarInfo[a-1900]&15},this.monthDays=function(a,b){return this.lunarInfo[a-1900]&65536>>b?30:29},this.leapDays=function(a){return this.leapMonth(a)?this.lunarInfo[a-1900]&65536?30:29:0},this.lYearDays=function(a){var b,c=348;for(b=32768;b>8;b>>=1)c+=this.lunarInfo[a-1900]&b?1:0;return c+this.leapDays(a)},this.Lunar=function(a){var b,c=0,d=0,e={},f=new Date(1900,0,31),g=(a-f)/864e5;e.dayCyl=g+40,e.monCyl=14;for(b=1900;b<2050&&g>0;b++)d=this.lYearDays(b),g-=d,e.monCyl+=12;g<0&&(g+=d,b--,e.monCyl-=12),e.year=b,e.yearCyl=b-1864,c=this.leapMonth(b),e.isLeap=!1;for(b=1;b<13&&g>0;b++)c>0&&b==c+1&&e.isLeap==0?(--b,e.isLeap=!0,d=this.leapDays(e.year)):d=this.monthDays(e.year,b),e.isLeap==1&&b==c+1&&(e.isLeap=!1),g-=d,e.isLeap==0&&e.monCyl++;return g==0&&c>0&&b==c+1&&(e.isLeap?e.isLeap=!1:(e.isLeap=!0,--b,--e.monCyl)),g<0&&(g+=d,--b,--e.monCyl),e.month=b,e.day=g+1,e},this.cDay=function(a,b){var c=["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],d=["\u521d","\u5341","\u5eff","\u5345","\u3000"],e;a>10?e="\u5341"+c[a-10]:e=c[a],e+="\u6708";switch(b){case 10:e+="\u521d\u5341";break;case 20:e+="\u4e8c\u5341";break;case 30:e+="\u4e09\u5341";break;default:e+=d[Math.floor(b/10)],e+=c[b%10]}return e},this.solarDay2=function(){var a=new Date(this.SY,this.SM,this.SD),b=this.Lunar(a),c=this.cDay(b.month,parseInt(b.day,10));return b=null,c}},c=new b(a);return c.solarDay2()};hao360.drawSkin=(function(){var nowSkinKey=hao360.defSkinKey;return function(skinKey){if(skinKey===nowSkinKey)return;if(!skinKey)return;nowSkinKey=skinKey;if(_d("custom-css")){var elem=_d("custom-css");if(elem.parentNode){elem.parentNode.removeChild(elem);}}if(hao360.skin[skinKey]){_d("skinCssFile").href="";qtool.load.css(hao360.skin[skinKey].css,'custom-css');}else{_d("skinCssFile").href="http://"+remoteHost+"/skin.php?output=css&skin="+skinKey+"&_"+skinTime+".css";}};})();hao360.confirmSkin=function(setKey){if(hao360.nowSkinKey!==setKey){hao360.nowSkinKey=setKey;qtool.cookie.set(EXPSKIN,setKey,{expires:365});}};
