"undefined"==typeof console&&(console={log:function(){}}),function(){if(Function.prototype.method=function(t,e){this.prototype[t]||(this.prototype[t]=e)},!window.XMLHttpRequest&&window.ActiveXObject)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(t){}var e={rgbtoHex:function(){var t=this.match(/\d{1,3}/g);if(!t)return null;if(4==t.length&&0==t[3])return"transparent";for(var e=[],n=0,o=t.length;o>n;n++)t[n]=(t[n]-0).toString(16),e.push(1==t[n].length?"0"+t[n]:t[n]);return"#"+e.join("")},camelCase:function(){return this.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(t){return"-"+t.charAt(0).toLowerCase()})}};for(var n in e)e.hasOwnProperty(n)&&String.method(n,e[n])}();var Element={create:function(){},hasClass:function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")>-1?!0:!1},addClass:function(t,e){this.hasClass(t,e)||(t.className+=" "+e)},removeClass:function(t,e){t.className=t.className.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)"),"$1").replace(/\s{1,}/g," ")},getStyle:function(t,e){function n(e){if(t.currentStyle)return t.currentStyle[e.camelCase()];var n=window.getComputedStyle(t,null);return n?n.getPropertyValue(e.hyphenate()):null}var o;if("padding"==e||"margin"==e){o="";for(var r in{top:0,right:0,bottom:0,left:0})o+=Element.getStyle(t,e+"-"+r)+" ";return o=o.replace(/\s$/,"")}if("opacity"==e)return window.ActiveXObject?(o=n("filter").replace(/[^0-9\.]/g,""),o=""==o?1:parseInt(100*o)/1e4):(o=parseFloat(n(e)),o=o||0==o?o:1);if(e=e.camelCase(),o=t.style[e],o||0===o||(o=n(e)),o){if(/^(width)|(height)$/.test(e)){var i="width"==e?["left","right"]:["top","bottom"],a=0;return a=(parseInt(this.getStyle(t,"padding-"+i[0]))||0)+(parseInt(this.getStyle(t,"padding-"+i[1]))||0)+(parseInt(this.getStyle(t,"border-"+i[0]+"-width"))||0)+(parseInt(this.getStyle(t,"border-"+i[1]+"-width"))||0),o=t["offset"+e.replace(/\b[a-z]/,function(t){return t.toUpperCase()})]-a}if("auto"==o&&"zIndex"==e)return o=0}return o},setStyle:function(t,e){var n=";";for(var o in e)if(e.hasOwnProperty(o)){if("opacity"==o){n+=o+":"+e[o]+";filter:alpha(opacity="+100*e[o]+");";continue}if(/(rgb)|(#)/i.test(e[o])||!parseInt(e[o])||/(scroll)|(index)/i.test(o)){n+=o+":"+e[o]+";";continue}n+=o+":"+Math.round(e[o])+"px;"}t.style.cssText+=n,n=null},getPosition:function(t){for(var e="string"==typeof t?document.getElementById(t):t,n=0,o=0;e;)n+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;return{x:n,y:o}},getChild:function(t,e){for(var n="string"==typeof t?document.getElementById(t):t,o=n.childNodes,r=[],i=0,a=o.length;a>i;i++)e?o[i].nodeName==e.toUpperCase()&&r.push(o[i]):1==o[i].nodeType&&r.push(o[i]);return n=null,o=null,r}},Event={add:function(){return document.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:function(t,e,n){t.attachEvent("on"+e,n)}}(),remove:function(){return document.removeEventListener?function(t,e,n){t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent("on"+e,n)}}(),stop:function(t){t&&t.stopPropagation?(t.stopPropagation(),t.preventDefault()):(window.event.cancelBubble=!0,window.event.returnValue=!1)},target:function(t){t=t||window.event;var e=t.target||t.srcElement;return e}},Cookie={read:function(t){var e=document.cookie.match("(?:^|;)\\s*"+t+"=([^;]*)");return e?decodeURIComponent(e[1]):null},write:function(t){var e=t.name+"="+encodeURIComponent(t.value);if(t.domain&&(e+="; domain="+t.domain),e+="; path="+(t.path||"/"),t.day){var n=new Date;n.setTime(n.getTime()+24*t.day*60*60*1e3),e+="; expires="+n.toGMTString()}document.cookie=e},dispose:function(t,e){var n=e||{};n.name=t,n.day=-1,n.value="a",this.write(n)}};!function(){function t(t,n){var o=e(),r=n||{};return g[o]={uid:o,obj:"string"==typeof t?document.getElementById(t):t,styles:{name:[],from:[],to:[]},time:r.time||500,transition:r.trans||1,transFn:m(this.transition),complete:null,state:!1},o}function e(){return"xxxxxxx-xxxx-yxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)})}function n(){return(new Date).getTime()}function o(t){var e=this.uid;g[e].begintime=n(),g[e].endtime=1*g[e].begintime+1*g[e].time,g[e].state=!0,g[e].styles={name:[],from:[],to:[]};for(var o in t)if(t.hasOwnProperty(o)){if(g[e].styles.name.push(o.hyphenate()),"object"==typeof t[o]){g[e].styles.from.push(parseFloat(t[o][0])),g[e].styles.to.push(parseFloat(t[o][1]));continue}var i=Element.getStyle(g[e].obj,o);i="undefind"==typeof i?t[o]:i,g[e].styles.from.push(i),g[e].styles.to.push(t[o]),i=null}v||(v=setInterval(r,15))}function r(){y=n(),w=0,x=0;for(var t in g)g.hasOwnProperty(t)&&(w++,g[t].state===!0?i(t):x++);return a(),w==x?(clearInterval(v),v=null,w=0,void(x=0)):void 0}function i(t){g[t].m=(y-g[t].begintime)/g[t].time,g[t].m>=1&&(g[t].m=1);for(var e={},n="",o=g[t].styles,r=g[t].transFn(g[t].m),i=0,a=o.name.length;a>i;i++){if(/(rgb)|(#)/i.test(o.from[i])){for(var s=d(o.from[i]),c=d(o.to[i]),l=[],u=0,p=s.length;p>u;u++)l.push(Math.round(h(s[u]-0,c[u]-0,r)));n=l.join(",").rgbtoHex()}else n=parseFloat(h(parseFloat(o.from[i]),parseFloat(o.to[i]),r));e[o.name[i]]=n}g[t].cssText=e}function a(){for(var t in g)if(g.hasOwnProperty(t)&&g[t].state===!0&&(Element.setStyle(g[t].obj,g[t].cssText),1==g[t].m)){if(g[t].complete)try{g[t].complete()}catch(e){}s(t)}}function s(t){g[t].state=!1,g[t].complete=null,g[t].m=0,g[t].styles={name:[],from:[],to:[]}}function c(t){var e=this.uid;g[e].complete=t}function l(t){var t=t||this.uid;s(t)}function u(t){var e=this.uid;g[e].state&&(l(e),t&&t())}function p(){var t=this.uid,e=n();g[t].fixTime=e-g[t].begintime,g[t].state=!1}function f(){var t=this.uid,e=n();g[t].begintime=e-g[t].fixTime,g[t].state=!0}function h(t,e,n){return t+(e-t)*n}function d(t){var e;return t.indexOf("#")>-1?(t=t.replace(/#/,""),3==t.length&&(t=t.replace(/(\w)(\w)(\w)/,"$1$1$2$2$3$3")),e=t.replace(/\w{2}/g,function(t){return parseInt(t.replace(/^0{1}/g,""),16)+","}).replace(/\,$/g,"").split(",")):(t.indexOf("rgb")>-1&&(e=t.match(/\d{1,3}/g)),e)}function m(t){switch(t){case"0":return function(t){return t};case"2":return function(t){return Math.pow(t,2)*(2.618*t-1.618)};case"3":return function(t){return.5>=t?Math.pow(t,2)*(2.618*t-1.618):1-Math.pow(1-t,2)*(2.618*(1-t)-1.618)};case"1":default:return function(t){return(1-Math.cos(Math.PI*t))/2}}}var y,v=null,g={},w=0,x=0;window.Anima=function(e,n){var r=t(e,n);return{start:o,stop:l,cancel:u,pause:p,reStart:f,complete:c,uid:r}}}(),function(){function t(e,n,o){if(r[e])return i[e]=!1,void setTimeout(function(){o&&o(e)},4);if(i[e])return void setTimeout(function(){t(e,n,o)},10);i[e]=!0;var a,s,c=function(){r[e]=1,setTimeout(function(){o&&o(e),o=null},4)};if(s=e.toLowerCase().indexOf(".css")>-1?"css":"js","css"===s){a=document.createElement("link"),a.setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.setAttribute("href",e);var l=new Image;l.onerror=function(){try{c()}catch(t){}l.onerror=null,l=null},l.src=e}else a=document.createElement("script"),a.setAttribute("type","text/javascript"),a.src=e,a.async=!0,a.onerror=function(){console.log(e+" is load fail;");try{c()}catch(t){}a.onerror=null};n&&(a.charset=n),a.readyState?a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&(c(),a.onreadystatechange=null)}:a.onload=function(){c(),a.onload=null},u.parentNode.insertBefore(a,u)}function e(n,o){function r(){--c||(a[l]=1,o&&o())}var i,c=n.length,l=n.join("");if(a[l])return void(o&&o());for(var u=0,p=n.length;p>u;u++)i="string"==typeof n[u]?s[n[u]]?s[n[u]]:{path:n[u]}:n[u],i.requires?e(i.requires,function(e,n){return function(){t(e.path,e.charset,function(){e.callback&&(e.callback(),s[n].callback=null),r()})}}(i,n[u])):t(i.path,i.charset,function(t,e){return function(){t.callback&&(t.callback(),s[e].callback=null),r()}}(i,n[u]))}function n(t){var e=!1,n=!0,o=window,r=o.document,i=r.documentElement,a=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",c=r.addEventListener?"":"on",l=function(n){("readystatechange"!=n.type||"complete"==r.readyState)&&(("load"==n.type?o:r)[s](c+n.type,l,!1),!e&&(e=!0)&&t.call(o,n.type||n))},u=function(){try{i.doScroll("left")}catch(t){return void setTimeout(u,50)}l("poll")};if("complete"==r.readyState)t.call(o,"lazy");else{if(r.createEventObject&&i.doScroll){try{n=!o.frameElement}catch(p){}n&&u()}r[a](c+"DOMContentLoaded",l,!1),r[a](c+"readystatechange",l,!1),o[a](c+"load",l,!1)}}function o(){var t=0,e=l.length;if(e)for(;l[t];t++)l[t]()}var r={},i={},a={},s={},c=!1,l=[],u=document.getElementsByTagName("script")[0],p=function(){var t,n,o=[].slice.call(arguments);return"function"==typeof o[o.length-1]&&(t=o.pop()),0===o.length?void(t&&t()):(n=o.join(""),a[n]?void(t&&t()):void e(o,function(){t&&t()}))};p.add=function(t,n){if(t&&n){var o=[];if("mods"===t)for(var r in n)n.hasOwnProperty(r)&&n[r].path&&(s[r]=n[r],o.push(r));else n.path&&(s[t]=n,o.push(t));e(o),o=null}},window.Y=p,n(function(){c=!0,o()}),window.Domready=function(t){return c?void(t&&t()):void l.push(t)}}(),function(){function t(){this.openTag="<@",this.closeTag="@>",this.frontStr="var ",this.repeatDictionary={},this.stop=!1,this.templateData={},this.keys={htmlString:!0,$data:!0};for(var t=0,e=o.length;e>t;t++)this.keys[o[t]]=!0}var e=["htmlString='';","htmlString+=",";","htmlString"],n="break,delete,function,return,typeof,length,case,do,if,switch,var,catch,else,in,this,void,continue,false,instanceof,throw,while,debugger,finally,new,true,with,default,for,null,try,abstract,double,goto,native,static,boolean,enum,implements,package,super,byte,export,import,private,synchronized,char,extends,int,protected,throws,class,final,interface,public,transient,const,float,long,short,volatile,parseInt,console,log,echo",o=n.split(",");t.prototype={exported:function(t){function n(t,e){for(var n=0,o=t.length;o>n;n++)e.call(this,t[n],n)}function o(t){var t=t.split(i.closeTag);1===t.length?r+=i.htmlStr(t[0]):(r+=i.logicStr(t[0]),t[1]&&(r+=i.htmlStr(t[1])))}var r="",i=this,t=t;return n(t.split(this.openTag),o),this.frontStr+e[0]+r+"this.template="+e[3]},htmlStr:function(t){return t=t.replace(/>[^<]*<|[^>]*<|>[^<]*/g,function(t){return t.replace(/\s/g,"")}),""==t.replace(/\s/g,"")?"":e[1]+"'"+t.replace(/('|"|\\)/g,"\\$1")+"'"+e[2]+"\n"},logicStr:function(t){if(0===t.indexOf("="))t=e[1]+t.substring(1).replace(/[\s;]*$/,"")+e[2];else if(t.split("echo").length>1){for(var n=t.split("echo"),o=n.length,r=n[0],i=1;o>i;i++)r+=this.setLogicHtml(n[i],t);t=r+n[o-1].replace(n[o-1].split(";")[0],"")}return this.getKeys(t),t+"\n"},setLogicHtml:function(t,n){var o=t.split(";")[0];return n.replace("echo"+o,""),n=e[1]+o+e[2]},getKeys:function(t){function e(t){if(n.repeatDictionary[t]!==!0){var e='$data["'+t+'"]';n.repeatDictionary[t]=!0,n.frontStr+=t+"="+e+","}}for(var n=this,o=t.split(/[^\$\w\d]+/),r=0,i=o.length;i>r;r++)""==o[r]||/^\d/.test(o[r])||this.keys[o[r]]||this.repeatDictionary[o[r]]===!0||1==t.split(o[r-1]+"."+o[r]).length&&e(o[r])},str2Fn:function(t,e){var n=new Function("$data",e),t=t||{};this.repeatDictionary={};for(var o in this.templateData)t[o]=this.templateData[o];this.templateData={},n.call(this,t)},assign:function(t,e){if(null!=e)this.repeatDictionary[t]=e,this.templateData[t]=e;else{if("object"!=typeof t||t.length)return this.stop=!0,void console.error("Wrong data:"+typeof t+":"+t);for(var n in t)this.repeatDictionary[n]=t[n],this.templateData[n]=t[n]}},showLogic:function(){this.show=!0},render:function(t,e){if(!this.stop){if(!t||!e)return void console.error("data or template is lost!");var e=e||[],n=this.exported(t);return this.show&&console.log(n),this.str2Fn(e,n),this.frontStr="var ",this.template}},display:function(t){if(!this.stop){if(!t)return void console.error("template is lost!");var e=this.exported(t);return this.show&&console.log(e),this.str2Fn(null,e),this.frontStr="var ",this.template}},setTag:function(t,e){this.openTag=t,this.closeTag=e}},window.TE=function(){return new t}}(),function(){function t(t,e){switch(arguments.length){case 1:return parseInt(Math.random()*t);case 2:return parseInt(Math.random()*(e-t+1))+parseInt(t);default:return 0}}function e(){}e.prototype={ajax:function(t){return this.options={type:"GET",dataType:"text",async:!0,avatar:null,contentType:"application/x-www-form-urlencoded",url:"about:blank",data:{},success:{},error:{}},t?t.url?t.success&&"function"==typeof t.success?(this.shift(this.options,t),void this.send()):void console.error("the callback function is lost!"):void console.error("url is required parameters, please check your parameters!"):void console.error("please fill in any parameters first!")},jsonp:function(e){return this.options={type:"JSONP",jsonpName:"",dataType:"text",async:!0,avatar:null,url:"about:blank",success:function(){},data:{}},e?e.url?(e.jsonpName||(e.jsonpName="jsonpCallbackFunctionNo"+(new Date).getTime()+t(0,9999)),this.shift(this.options,e),window[this.options.jsonpName]&&window[this.options.jsonpName]!==this.options.success?void console.error("jsonpName already exists!"):(window[this.options.jsonpName]=this.options.success,void this.create())):void console.error("url is required parameters, please check your parameters!"):void console.error("please fill in any parameters first!")},create:function(){var t=document.createElement("script"),e=/[\?]/g.test(this.options.url)?"&":"?";for(var n in this.options.data)e+=n+"="+this.options.data[n]+"&";e=e+"callback="+this.options.jsonpName,t.async=this.options.async,t.src=this.options.url+("?"==e?"":e),document.getElementsByTagName("head")[0].appendChild(t)},XmlHttp:function(){var t;try{xmlhttp=new XMLHttpRequest}catch(e){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){t=new ActiveXObject("Microsoft.XMLHTTP")}}return xmlhttp?xmlhttp:!1},send:function(){{var t=this.XmlHttp(),e=/[\?]/g.test(this.options.url)?"&":"?",n="",o=this;this.options.data?this.options.data.length:0}for(var r in this.options.data)n+=r+"="+this.options.data[r]+"&";n=n.replace(/\&$/g,""),"GET"==this.options.type.toUpperCase()?t.open(this.options.type,this.options.url+(""==n?"":e+n),this.options.async):t.open(this.options.type,this.options.url,this.options.async),t.setRequestHeader("Content-Type",this.options.contentType),t.onreadystatechange=function(){if(4==t.readyState)if(200==t.status||0==t.status){if("function"==typeof o.options.success){var e="text"==o.options.dataType?t.responseText:t.responseXML;o.options.success(e,o.options.dataType,o.options.avatar)}t=null}else"function"==typeof o.options.error&&o.options.error("Server Status: "+t.status)},t.send("POST"==this.options.type.toUpperCase()?n:null)},shift:function(t,e){for(var n in e)t[n]=e[n];return t}},window.Request=function(){return new e}}();