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