/*! jRespond.js v 0.9 | Author: Jeremy Fields [jeremy.fields@viget.com], 2013 | License: MIT */ /*! viewportSize | Author: Tyson Matanich, 2013 | License: MIT */ (function(b,a,c){b.jRespond=function(k){var e=[];var g=[];var n=k;var r="";var m;var d=0;var l=100;var o=500;var i=o;var h=function(u){var t=u.breakpoint;var s=u.enter||c;e.push(u);g.push(false);if(j(t)){if(s!==c){s.call()}g[(e.length-1)]=true}};var p=function(){var z=[];var y=[];for(var x=0;x=n[s]["enter"]&&t<=n[s]["exit"]){u=true;break}}if(u&&r!==n[s]["label"]){r=n[s]["label"];p()}else{if(!u&&r!==""){r="";p()}}};var j=function(s){if(typeof s==="object"){if(s.join().indexOf(r)>=0){return true}}else{if(s==="*"){return true}else{if(typeof s==="string"){if(r===s){return true}}}}};var f=function(){var s=viewportSize.getWidth();if(s!==d){i=l;q(s)}else{i=o}d=s;setTimeout(f,i)};f();return{addFunc:function(s){h(s)},getBreakpoint:function(){return r}}}}(this,this.document)); /*! viewportSize | Author: Tyson Matanich, 2013 | License: MIT */ (function(b){b.viewportSize={},b.viewportSize.getHeight=function(){return a("Height")},b.viewportSize.getWidth=function(){return a("Width")};var a=function(g){var j,l=g.toLowerCase(),k=b.document,d=k.documentElement,h,c;return b["inner"+g]===undefined?j=d["client"+g]:b["inner"+g]!=d["client"+g]?(h=k.createElement("body"),h.id="vpw-test-b",h.style.cssText="overflow:scroll",c=k.createElement("div"),c.id="vpw-test-d",c.style.cssText="position:absolute;top:-1000px",c.innerHTML="",h.appendChild(c),d.insertBefore(h,k.head),j=c["offset"+g]==7?d["client"+g]:b["inner"+g],d.removeChild(h)):j=b["inner"+g],j}})(this);