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