window.Modernizr=function(ap,ao,an){function O(){}function Q(f,e){var h=f.charAt(0).toUpperCase()+f.substr(1),g=(f+" "+Z.join(h+" ")+h).split(" ");return !!S(g,e)}function S(e,c){for(var f in e){if(af[e[f]]!==an&&(!c||c(e[f],ag))){return !0}}}function U(d,c){return(""+d).indexOf(c)!==-1}function W(d,c){return typeof d===c}function Y(d,c){return aa(ab.join(d+";")+(c||""))}function aa(b){af.cssText=b}var am="1.7",al={},ak=!0,aj=ao.documentElement,ai=ao.head||ao.getElementsByTagName("head")[0],ah="modernizr",ag=ao.createElement(ah),af=ag.style,ae=ao.createElement("input"),ad=":)",ac=Object.prototype.toString,ab=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),Z="Webkit Moz O ms Khtml".split(" "),X={svg:"http://www.w3.org/2000/svg"},V={},T={},R={},P=[],N,M=function(b){var h=ao.createElement("style"),g=ao.createElement("div"),f;h.textContent=b+"{#modernizr{height:3px}}",ai.appendChild(h),g.id="modernizr",aj.appendChild(g),f=g.offsetHeight===3,h.parentNode.removeChild(h),g.parentNode.removeChild(g);return !!f},K=function(){function c(h,g){g=g||ao.createElement(b[h]||"div");var a=(h="on"+h) in g;a||(g.setAttribute||(g=ao.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(h,""),a=W(g[h],"function"),W(g[h],an)||(g[h]=an),g.removeAttribute(h))),g=null;return a}var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c}(),J=({}).hasOwnProperty,I;W(J,an)||W(J.call,an)?I=function(d,c){return c in d&&W(d.constructor.prototype[c],an)}:I=function(d,c){return J.call(d,c)},V.textshadow=function(){return ao.createElement("div").style.textShadow===""},V.csstransitions=function(){return Q("transitionProperty")};for(var L in V){I(V,L)&&(N=L.toLowerCase(),al[N]=V[L](),P.push((al[N]?"":"no-")+N))}al.input||O(),al.crosswindowmessaging=al.postmessage,al.historymanagement=al.history,al.addTest=function(d,c){d=d.toLowerCase();if(!al[d]){c=!!c(),aj.className+=" "+(c?"":"no-")+d,al[d]=c;return al}},aa(""),ag=ae=null,al._enableHTML5=ak,al._version=am,aj.className=aj.className.replace(/\bno-js\b/,"")+" js "+P.join(" ");return al}(this,this.document);var bg,bg_img,main;window.addEventListener("load",page_load,false);window.addEventListener("resize",page_resize,false);if(window.opera){window.opera.addEventListener("load",page_load(),false)}function page_load(){bg=document.getElementById("bg");bg_img=document.getElementById("bg_img");main=document.getElementById("main");if(Modernizr.csstransitions){setTimeout(function(){bg.style.opacity=1;setTimeout(function(){main.style.opacity=1},750)},250)}page_resize()}function page_resize(){var a=window.innerWidth;var b=window.innerHeight;if((a/4)<(b/3)){bg_img.style.width="auto";bg_img.style.height="100%";bg_img.style.marginLeft=bg_img.style.marginRight="-"+((bg_img.width-a)/2)+"px"}else{bg_img.style.width="100%";bg_img.style.height="auto";bg_img.style.marginLeft=bg_img.style.marginRight="0px"}};
