(function(n){function l(){var n=window.outerWidth||u.clientWidth;u.className=u.className.replace(/ (w|lt)-\d+/g,""),r("w-"+Math.round(n/100)*100),h(f.screens,function(t){n<=t&&r("lt-"+t)}),i.feature()}function h(n,t){for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}function c(n){var t=new RegExp("\\b"+n+"\\b");u.className=u.className.replace(t,"")}function r(n){s[s.length]=n}var u=n.documentElement,f={screens:[320,480,640,768,1024,1280,1440,1680,1920],section:"-section",page:"-page",head:"head"},s=[],o,i,t,e;if(window.head_conf)for(o in head_conf)head_conf[o]!==undefined&&(f[o]=head_conf[o]);i=window[f.head]=function(){i.ready.apply(null,arguments)},i.feature=function(n,t,f){if(n)return Object.prototype.toString.call(t)=="[object Function]"&&(t=t.call()),r((t?"":"no-")+n),i[n]=!!t,f||(c("no-"+n),c(n),i.feature()),i;u.className+=" "+s.join(" "),s=[]},t=navigator.userAgent.toLowerCase(),t=/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||!/compatible/.test(t)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(t)||[],t[1]=="msie"&&(t[1]="ie",t[2]=document.documentMode||t[2]),r(t[1]),i.browser={version:t[2]},i.browser[t[1]]=!0;if(i.browser.ie){for(r("ie"+parseFloat(t[2])),e=3;e<11;e++)parseFloat(t[2])<e&&r("lt-ie"+e);h("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),function(t){n.createElement(t)})}h(location.pathname.split("/"),function(n,t){if(this.length>2&&this[t+1]!==undefined)t&&r(this.slice(1,t+1).join("-")+f.section);else{var i=n||"index",e=i.indexOf(".");e>0&&(i=i.substring(0,e)),u.id=i+f.page,t||r("root"+f.section)}}),l(),window.onresize=l,i.feature("js",!0).feature()})(document),function(){function t(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+s.join(t+" ")+t).split(" ");return!!h(i)}function h(t){for(var i in t)if(n[t[i]]!==undefined)return!0}var e=document.createElement("i"),n=e.style,u=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),s="Webkit Moz O ms Khtml".split(" "),o=window.head_conf&&head_conf.head||"head",f=window[o],r={gradient:function(){var t="background-image:",r="gradient(linear,left top,right bottom,from(#9f9),to(#fff));",i="linear-gradient(left top,#eee,#fff);";return n.cssText=(t+u.join(r+t)+u.join(i+t)).slice(0,-t.length),!!n.backgroundImage},rgba:function(){return n.cssText="background-color:rgba(0,0,0,0.5)",!!n.backgroundColor},opacity:function(){return e.style.opacity===""},textshadow:function(){return n.textShadow===""},multiplebgs:function(){return n.cssText="background:url(//:),url(//:),red url(//:)",new RegExp("(url\\s*\\(.*?){3}").test(n.background)},boxshadow:function(){return t("boxShadow")},borderimage:function(){return t("borderImage")},borderradius:function(){return t("borderRadius")},cssreflections:function(){return t("boxReflect")},csstransforms:function(){return t("transform")},csstransitions:function(){return t("transition")},fontface:function(){var t=navigator.userAgent,n;return(n=t.match(/Chrome\/(\d+\.\d+\.\d+\.\d+)/))?n[1]>="4.0.249.4"||1*n[1].split(".")[0]>5:(n=t.match(/Safari\/(\d+\.\d+)/))&&!/iPhone/.test(t)?n[1]>="525.13":/Opera/.test({}.toString.call(window.opera))?opera.version()>="10.00":(n=t.match(/rv:(\d+\.\d+\.\d+)[^b].*Gecko\//))?n[1]>="1.9.1":!1}},i;for(i in r)r[i]&&f.feature(i,r[i].call(),!0);f.feature()}(),function(n){function u(){o||(o=!0,i(k,function(n){r(n)}))}function nt(t,i){var r=n.createElement("script");r.type="text/"+(t.type||"javascript"),r.src=t.src||t,r.async=!1,r.onreadystatechange=r.onload=function(){var n=r.readyState;!i.done&&(!n||/loaded|complete/.test(n))&&(i.done=!0,i())},(n.body||v).appendChild(r)}function s(n,u){if(n.state==l)return u&&u();if(n.state==w)return t.ready(n.name,u);if(n.state==p)return n.onpreload.push(function(){s(n,u)});n.state=w,nt(n.url,function(){n.state=l,u&&u(),i(e[n.name],function(n){r(n)}),c()&&o&&i(e.ALL,function(n){r(n)})})}function it(n){n.state===undefined&&(n.state=p,n.onpreload=[],nt({src:n.url,type:"cache"},function(){tt(n)}))}function tt(n){n.state=ut,i(n.onpreload,function(n){n.call()})}function c(n){var i,t;n=n||h;for(t in n){if(n.hasOwnProperty(t)&&n[t].state!=l)return!1;i=!0}return i}function f(n){return Object.prototype.toString.call(n)=="[object Function]"}function i(n,t){if(!!n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0;i<n.length;i++)t.call(n,n[i],i)}}function a(n){var t,r,i;if(typeof n=="object")for(r in n)n[r]&&(t={name:r,url:n[r]});else t={name:ft(n),url:n};return i=h[t.name],i&&i.url===t.url?i:(h[t.name]=t,t)}function ft(n){var r=n.split("/"),t=r[r.length-1],i=t.indexOf("?");return i!=-1?t.substring(0,i):t}function r(n){n._done||(n(),n._done=1)}var v=n.documentElement,d,o,k=[],g=[],e={},h={},rt=n.createElement("script").async===!0||"MozAppearance"in n.documentElement.style||window.opera,b=window.head_conf&&head_conf.head||"head",t=window[b]=window[b]||function(){t.ready.apply(null,arguments)},ut=1,p=2,w=3,l=4,y;t.js=rt?function(){var u=arguments,n=u[u.length-1],e={};return f(n)||(n=null),i(u,function(t,i){t!=n&&(t=a(t),e[t.name]=t,s(t,n&&i==u.length-2?function(){c(e)&&r(n)}:null))}),t}:function(){var n=arguments,u=[].slice.call(n,1),r=u[0];return d?(r?(i(u,function(n){f(n)||it(a(n))}),s(a(n[0]),f(r)?r:function(){t.js.apply(null,u)})):s(a(n[0])),t):(g.push(function(){t.js.apply(null,n)}),t)},t.ready=function(i,u){var a,s;if(i==n)return o?r(u):k.push(u),t;f(i)&&(u=i,i="ALL");if(typeof i!="string"||!f(u))return t;return a=h[i],a&&a.state==l||i=="ALL"&&c()&&o?(r(u),t):(s=e[i],s?s.push(u):s=e[i]=[u],t)},t.ready(n,function(){c()&&i(e.ALL,function(n){r(n)}),t.feature&&t.feature("domloaded",!0)});if(window.addEventListener)n.addEventListener("DOMContentLoaded",u,!1),window.addEventListener("load",u,!1);else if(window.attachEvent){n.attachEvent("onreadystatechange",function(){n.readyState==="complete"&&u()}),y=1;try{y=window.frameElement}catch(et){}!y&&v.doScroll&&function(){try{v.doScroll("left"),u()}catch(n){setTimeout(arguments.callee,1);return}}(),window.attachEvent("onload",u)}!n.readyState&&n.addEventListener&&(n.readyState="loading",n.addEventListener("DOMContentLoaded",handler=function(){n.removeEventListener("DOMContentLoaded",handler,!1),n.readyState="complete"},!1)),setTimeout(function(){d=!0,i(g,function(n){n()})},300)}(document)
