/*
* @preserve HTML5 Shiv 3.7.3-pre | https://github.com/afarkas/html5shiv | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3-pre",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);
/*
* css3-mediaqueries-js | https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js | MIT License
*/
if(typeof Object.create!=='function'){Object.create=function(o){function F(){}
F.prototype=o;return new F();};}
var ua={toString:function(){return navigator.userAgent;},test:function(s){return this.toString().toLowerCase().indexOf(s.toLowerCase())>-1;}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test('webkit');ua.gecko=ua.test('gecko')&&!ua.webkit;ua.opera=ua.test('opera');ua.ie=ua.test('msie')&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight==='undefined';ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!=='undefined'&&typeof XDomainRequest==='undefined';ua.ie8=ua.ie&&typeof XDomainRequest!=='undefined';var domReady=function(){var fns=[];var init=function(){if(!arguments.callee.done){arguments.callee.done=true;for(var i=0;i=200&&r.status<300)||r.status===304||navigator.userAgent.indexOf('Safari')>-1&&typeof r.status==='undefined'){fnSuccess(r.responseText);}
else{fnFailure();}
document.documentElement.style.cursor='';r=null;}};r.send('');};var sanitize=function(text){text=text.replace(regExp.REDUNDANT_COMPONENTS,'');text=text.replace(regExp.REDUNDANT_WHITESPACE,'$1');text=text.replace(regExp.WHITESPACE_IN_PARENTHESES,'($1)');text=text.replace(regExp.MORE_WHITESPACE,' ');text=text.replace(regExp.FINAL_SEMICOLONS,'}');return text;};var objects={stylesheet:function(el){var o={};var amqs=[],mqls=[],rs=[],rsw=[];var s=el.cssHelperText;var attr=el.getAttribute('media');if(attr){var qts=attr.toLowerCase().split(',')}
else{var qts=['all']}
for(var i=0;i-1&&link.href&&link.href.length!==0&&!link.disabled){linked[linked.length]=link;}}
if(linked.length>0){var c=0;var checkForFinish=function(){c++;if(c===linked.length){finish();}};var processLink=function(link){var href=link.href;requestText(href,function(text){text=sanitize(text).replace(regExp.RELATIVE_URLS,'url('+href.substring(0,href.lastIndexOf('/'))+'/$1)');link.cssHelperText=text;checkForFinish();},checkForFinish);};for(i=0;i0){el.setAttribute('media',mediaTypes.join(','));}
document.getElementsByTagName('head')[0].appendChild(el);if(el.styleSheet){el.styleSheet.cssText=s;}
else{el.appendChild(document.createTextNode(s));}
el.addedWithCssHelper=true;if(typeof process==='undefined'||process===true){cssHelper.parsed(function(parsed){var o=parseEmbedded(el,s);for(var n in o){if(o.hasOwnProperty(n)){addToCollection(n,o[n]);}}
broadcast('newStyleParsed',el);});}
else{el.parsingDisallowed=true;}
return el;},removeStyle:function(el){return el.parentNode.removeChild(el);},parsed:function(fn){if(parsing){wait(fn);}
else{if(typeof parsed!=='undefined'){if(typeof fn==='function'){fn(parsed);}}
else{wait(fn);parse();}}},stylesheets:function(fn){cssHelper.parsed(function(parsed){fn(collections.stylesheets||collect('stylesheets'));});},mediaQueryLists:function(fn){cssHelper.parsed(function(parsed){fn(collections.mediaQueryLists||collect('mediaQueryLists'));});},rules:function(fn){cssHelper.parsed(function(parsed){fn(collections.rules||collect('rules'));});},selectors:function(fn){cssHelper.parsed(function(parsed){fn(collections.selectors||collect('selectors'));});},declarations:function(fn){cssHelper.parsed(function(parsed){fn(collections.declarations||collect('declarations'));});},properties:function(fn){cssHelper.parsed(function(parsed){fn(collections.properties||collect('properties'));});},broadcast:broadcast,addListener:function(n,fn){if(typeof fn==='function'){if(!events[n]){events[n]={listeners:[]};}
events[n].listeners[events[n].listeners.length]=fn;}},removeListener:function(n,fn){if(typeof fn==='function'&&events[n]){var ls=events[n].listeners;for(var i=0;i=amount)||(max&&width0;}}
else if('device-height'===feature.substring(l-13,l)){height=screen.height;if(value!==null){if(valueType==='length'){return((min&&height>=amount)||(max&&height0;}}
else if('width'===feature.substring(l-5,l)){width=document.documentElement.clientWidth||document.body.clientWidth;if(value!==null){if(valueType==='length'){return((min&&width>=amount)||(max&&width0;}}
else if('height'===feature.substring(l-6,l)){height=document.documentElement.clientHeight||document.body.clientHeight;if(value!==null){if(valueType==='length'){return((min&&height>=amount)||(max&&height0;}}
else if('device-aspect-ratio'===feature.substring(l-19,l)){return valueType==='aspect-ratio'&&screen.width*amount[1]===screen.height*amount[0];}
else if('color-index'===feature.substring(l-11,l)){var colors=Math.pow(2,screen.colorDepth);if(value!==null){if(valueType==='absolute'){return((min&&colors>=amount)||(max&&colors0;}}
else if('color'===feature.substring(l-5,l)){var color=screen.colorDepth;if(value!==null){if(valueType==='absolute'){return((min&&color>=amount)||(max&&color0;}}
else if('resolution'===feature.substring(l-10,l)){var res;if(unit==='dpcm'){res=measure('1cm');}
else{res=measure('1in');}
if(value!==null){if(valueType==='resolution'){return((min&&res>=amount)||(max&&res0;}}
else{return false;}};var testMediaQuery=function(mq){var test=mq.getValid();var expressions=mq.getExpressions();var l=expressions.length;if(l>0){for(var i=0;i0){typeAllowed=false;for(var j=0;j0){s[c++]=',';}
s[c++]=n;}}
if(s.length>0){styles[styles.length]=cssHelper.addStyle('@media '+s.join('')+'{'+mql.getCssText()+'}',ts,false);}};var testMediaQueryLists=function(mqls,ts){for(var i=0;i0;}}
var ts=[],tswe=[];for(var n in t){if(t.hasOwnProperty(n)){ts[ts.length]=n;if(t[n]){tswe[tswe.length]=n}
if(n==='all'){allPassed=true;}}}
if(tswe.length>0){styles[styles.length]=cssHelper.addStyle(stsh.getCssText(),tswe,false);}
var mqls=stsh.getMediaQueryLists();if(allPassed){testMediaQueryLists(mqls);}
else{testMediaQueryLists(mqls,ts);}};var testStylesheets=function(stshs){for(var i=0;iscrollbarWidth||Math.abs(vph-cvph)>scrollbarWidth){cvpw=vpw;cvph=vph;clearTimeout(timer);timer=setTimeout(function(){if(!nativeSupport()){test();}
else{cssHelper.broadcast('cssMediaQueriesTested');}},500);}};window.onresize=function(){var x=window.onresize||function(){};return function(){x();resizeHandler();};}();};var docEl=document.documentElement;docEl.style.marginLeft='-32767px';setTimeout(function(){docEl.style.marginLeft='';},5000);return function(){if(!nativeSupport()){cssHelper.addListener('newStyleParsed',function(el){testStylesheet(el.cssHelperParsed.stylesheet);});cssHelper.addListener('cssMediaQueriesTested',function(){if(ua.ie){docEl.style.width='1px';}
setTimeout(function(){docEl.style.width='';docEl.style.marginLeft='';},0);cssHelper.removeListener('cssMediaQueriesTested',arguments.callee);});createMeter();test();}
else{docEl.style.marginLeft='';}
checkForResize();};}());try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}