/*! * domready (c) dustin diaz 2012 - license mit */ !function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&typeof define.amd=="object"?define(b):this[a]=b()}("domready",function(a){function m(a){l=1;while(a=b.shift())a()}var b=[],c,d=!1,e=document,f=e.documentelement,g=f.doscroll,h="domcontentloaded",i="addeventlistener",j="onreadystatechange",k="readystate",l=/^loade|c/.test(e[k]);return e[i]&&e[i](h,c=function(){e.removeeventlistener(h,c,d),m()},d),g&&e.attachevent(j,c=function(){/^c/.test(e[k])&&(e.detachevent(j,c),m())}),a=g?function(c){self!=top?l?c():b.push(c):function(){try{f.doscroll("left")}catch(b){return settimeout(function(){a(c)},50)}c()}()}:function(a){l?a():b.push(a)}}), /*! matchmedia() polyfill - test a css media type/query in js. authors & copyright (c) 2012: scott jehl, paul irish, nicholas zakas. dual mit/bsd license */ /*! note: if you're already including a window.matchmedia polyfill via modernizr or otherwise, you don't need this part */ window.matchmedia=window.matchmedia||function(a,b){var c,d=a.documentelement,e=d.firstelementchild||d.firstchild,f=a.createelement("body"),g=a.createelement("div");return g.id="mq-test-1",g.style.csstext="position:absolute;top:-100em",f.appendchild(g),function(a){return g.innerhtml='­',d.insertbefore(f,e),c=g.offsetwidth==42,d.removechild(f),{matches:c,media:a}}}(document), /*! respond.js v1.1.0: min/max-width media query polyfill. (c) scott jehl. mit/gplv2 lic. j.mp/respondjs */ function(a){function w(){t(!0)}a.respond={},respond.update=function(){},respond.mediaqueriessupported=a.matchmedia&&a.matchmedia("only all").matches;if(respond.mediaqueriessupported)return;var b=a.document,c=b.documentelement,d=[],e=[],f=[],g={},h=30,i=b.getelementsbytagname("head")[0]||c,j=b.getelementsbytagname("base")[0],k=i.getelementsbytagname("link"),l=[],m=function(){var b=k,c=b.length,d=0,e,f,h,i;for(;d-1,minw:m.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parsefloat(regexp.$1)+(regexp.$2||""),maxw:m.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parsefloat(regexp.$1)+(regexp.$2||"")})}t()},p,q,r=function(){var a,d=b.createelement("div"),e=b.body,f=!1;return d.style.csstext="position:absolute;font-size:1em;width:1em",e||(e=f=b.createelement("body")),e.appendchild(d),c.insertbefore(e,c.firstchild),a=d.offsetwidth,f?c.removechild(e):e.removechild(d),a=s=parsefloat(a),a},s,t=function(a){var g="clientwidth",j=c[g],l=b.compatmode==="css1compat"&&j||b.body[g]||j,m={},n=k[k.length-1],o=(new date).gettime();if(a&&p&&o-p-1?s||r():1)),!x||(x=parsefloat(x)*(x.indexof(a)>-1?s||r():1));if(!v.hasquery||(!y||!z)&&(y||l>=w)&&(z||l<=x))m[v.media]||(m[v.media]=[]),m[v.media].push(e[v.rules])}for(var u in f)f[u]&&f[u].parentnode===i&&i.removechild(f[u]);for(var u in m){var b=b.createelement("style"),c=m[u].join("\n");b.type="text/css",b.media=u,i.insertbefore(b,n.nextsibling),b.stylesheet?b.stylesheet.csstext=c:b.appendchild(b.createtextnode(c)),f.push(b)}},u=function(a,b){var c=v();if(!c)return;c.open("get",a,!0),c.onreadystatechange=function(){if(c.readystate!=4||c.status!=200&&c.status!=304)return;b(c.responsetext)};if(c.readystate==4)return;c.send(null)},v=function(){var a=!1;try{a=new xmlhttprequest}catch(b){a=new activexobject("microsoft.xmlhttp")}return function(){return a}}();m(),respond.update=m,a.addeventlistener?a.addeventlistener("resize",w,!1):a.attachevent&&a.attachevent("onresize",w)}(this), /*! * hijs - javascript syntax highlighter * * copyright (c) 2010 alexis sellier */ function(a){function l(a){return a.replace(//g,">")}function m(a,b){return g[b=a.split("").map(function(a){return a.charcodeat(0)>127?a:string.fromcharcode(a.charcodeat(0)+10240)}).join("")]=a,b}function n(a){return a in g?g[a]:a.trim().split("").map(function(a){return a.charcodeat(0)-10240>127?a:string.fromcharcode(a.charcodeat(0)-10240)}).join("")}var b=a||"code",c="var function if else for while break switch case do new null in with void continue delete return this true false throw catch typeof with instanceof".split(" "),d="eval window document undefined nan infinity parseint parsefloat encodeuri decodeuri encodeuricomponent decodeuricomponent".split(" "),e=[["comment",/(\/\*(?:[^*\n]|\*+[^\/*])*\*+\/)/g],["comment",/(\/\/[^\n]*)/g],["string",/("(?:(?!")[^\\\n]|\\.)*"|'(?:(?!')[^\\\n]|\\.)*')/g],["regexp",/(\/.+\/[mgi]*)(?!\s*\w)/g],["class",/\b([a-z][a-za-z]+)\b/g],["number",/\b([0-9]+(?:\.[0-9]+)?)\b/g],["keyword",new regexp("\\b("+c.join("|")+")\\b","g")],["special",new regexp("\\b("+d.join("|")+")\\b","g")]],f,g={};/^[a-z]+$/.test(b)?f=document.getelementsbytagname(b):/^\.[\w-]+$/.test(b)?f=document.getelementsbyclassname(b.slice(1)):document.queryselectorall?f=document.queryselectorall(b):f=[];for(var h=0,i;h=0&&(/^\$\s/.test(code.nodevalue.trim())||e.foreach(function(a){var b=a[0],c=a[1];code.nodevalue=code.nodevalue.replace(c,function(a,c){return"«"+m(b)+"·"+m(c)+"·"+m(b)+"»"})}))}for(var h=0;h'+l(n(c))+""})}(window.hijs)