1
0

2k11: Updated bundled JS plugins to latest versions.

Also better minification for bundled JS plugins.
This commit is contained in:
Matthias Mees
2014-01-08 18:22:59 +01:00
parent ba1c0e4a7b
commit 22ba423e36

View File

@ -1,89 +1,22 @@
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function(e){var t={};e.respond=t;t.update=function(){};
t.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(t.mediaQueriesSupported){return;}var x=e.document,s=x.documentElement,i=[],k=[],q=[],o={},h=30,f=x.getElementsByTagName("head")[0]||s,g=x.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){for(var B=0;
B<b.length;B++){var A=b[B],z=A.href,C=A.media,y=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&y&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);
o[z]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C});}}}}v();},v=function(){if(d.length){var y=d.shift();
n(y.href,function(z){m(z,y.href,y.media);o[y.href]=true;e.setTimeout(function(){v();},0);});}},m=function(J,y,A){var H=J.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),K=H&&H.length||0;
y=y.substring(0,y.lastIndexOf("/"));var z=function(L){return L.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+y+"$2$3");},B=!K&&A;if(y.length){y+="/";
}if(B){K=1;}for(var E=0;E<K;E++){var F,G,C,I;if(B){F=A;k.push(z(J));}else{F=H[E].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&z(RegExp.$2));
}C=F.split(",");I=C.length;for(var D=0;D<I;D++){G=C[D];i.push({media:G.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:G.indexOf("(")>-1,minw:G.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:G.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
}}j();},l,r,w=function(){var A,B=x.createElement("div"),y=x.body,z=false;B.style.cssText="position:absolute;font-size:1em;width:1em";if(!y){y=z=x.createElement("body");
y.style.background="none";}y.appendChild(B);s.insertBefore(y,s.firstChild);A=B.offsetWidth;if(z){s.removeChild(y);}else{y.removeChild(B);}A=p=parseFloat(A);
return A;},p,j=function(K){var P="clientWidth",B=s[P],z=x.compatMode==="CSS1Compat"&&B||x.body[P]||B,N={},O=b[b.length-1],A=(new Date()).getTime();if(K&&l&&A-l<h){e.clearTimeout(r);
r=e.setTimeout(j,h);return;}else{l=A;}for(var I in i){if(i.hasOwnProperty(I)){var L=i[I],E=L.minw,H=L.maxw,J=E===null,M=H===null,y="em";if(!!E){E=parseFloat(E)*(E.indexOf(y)>-1?(p||w()):1);
}if(!!H){H=parseFloat(H)*(H.indexOf(y)>-1?(p||w()):1);}if(!L.hasquery||(!J||!M)&&(J||z>=E)&&(M||z<=H)){if(!N[L.media]){N[L.media]=[];}N[L.media].push(k[L.rules]);
}}}for(var G in q){if(q.hasOwnProperty(G)){if(q[G]&&q[G].parentNode===f){f.removeChild(q[G]);}}}for(var F in N){if(N.hasOwnProperty(F)){var D=x.createElement("style"),C=N[F].join("\n");
D.type="text/css";D.media=F;f.insertBefore(D,O.nextSibling);if(D.styleSheet){D.styleSheet.cssText=C;}else{D.appendChild(x.createTextNode(C));}q.push(D);
}}},n=function(y,A){var z=c();if(!z){return;}z.open("GET",y,true);z.onreadystatechange=function(){if(z.readyState!==4||z.status!==200&&z.status!==304){return;
}A(z.responseText);};if(z.readyState===4){return;}z.send(null);},c=(function(){var y=false;try{y=new e.XMLHttpRequest();}catch(z){y=new e.ActiveXObject("Microsoft.XMLHTTP");
}return function(){return y;};})();a();t.update=a;function u(){j(true);}if(e.addEventListener){e.addEventListener("resize",u,false);}else{if(e.attachEvent){e.attachEvent("onresize",u);
}}})(this);
/*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto. MIT / GPLv2 License. */
(function(n){var d=navigator.userAgent;
if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(d)&&d.indexOf("AppleWebKit")>-1)){return;}var m=n.document;if(!m.querySelector){return;
}var o=m.querySelector("meta[name=viewport]"),a=o&&o.getAttribute("content"),l=a+",maximum-scale=1",e=a+",maximum-scale=10",h=true,k,j,i,c;if(!o){return;
}function g(){o.setAttribute("content",e);h=true;}function b(){o.setAttribute("content",l);h=false;}function f(p){c=p.accelerationIncludingGravity;k=Math.abs(c.x);
j=Math.abs(c.y);i=Math.abs(c.z);if((!n.orientation||n.orientation===180)&&(k>7||((i>6&&j<8||i<8&&j>6)&&k>5))){if(h){b();}}else{if(!h){g();}}}n.addEventListener("orientationchange",g,false);
n.addEventListener("devicemotion",f,false);})(this);
/*! Respond.js v1.4.2: min/max-width media query polyfill
* Copyright 2013 Scott Jehl * Licensed under MIT * http://j.mp/respondjs */
!function(a){"use strict";function y(){u(!0)}var b={};a.respond=b,b.update=function(){};var c=[],d=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),e=function(a,b){var c=d();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},f=function(a){return a.replace(b.regex.minmaxwh,"").match(b.regex.other)};if(b.ajax=e,b.queue=c,b.unsupportedmq=f,b.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},b.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!b.mediaQueriesSupported){var q,r,s,g=a.document,h=g.documentElement,i=[],j=[],k=[],l={},m=30,n=g.getElementsByTagName("head")[0]||h,o=g.getElementsByTagName("base")[0],p=n.getElementsByTagName("link"),t=function(){var a,b=g.createElement("div"),c=g.body,d=h.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=g.createElement("body"),c.style.background="none"),h.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&h.insertBefore(c,h.firstChild),a=b.offsetWidth,f?h.removeChild(c):c.removeChild(b),h.style.fontSize=d,e&&(c.style.fontSize=e),a=s=parseFloat(a)},u=function(b){var c="clientWidth",d=h[c],e="CSS1Compat"===g.compatMode&&d||g.body[c]||d,f={},l=p[p.length-1],o=(new Date).getTime();if(b&&q&&m>o-q)return a.clearTimeout(r),r=a.setTimeout(u,m),void 0;q=o;for(var v in i)if(i.hasOwnProperty(v)){var w=i[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?s||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?s||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(j[w.rules]))}for(var C in k)k.hasOwnProperty(C)&&k[C]&&k[C].parentNode===n&&n.removeChild(k[C]);k.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=g.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,n.insertBefore(E,l.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(g.createTextNode(F)),k.push(E)}},v=function(a,c,d){var e=a.replace(b.regex.comments,"").replace(b.regex.keyframes,"").match(b.regex.media),g=e&&e.length||0;c=c.substring(0,c.lastIndexOf("/"));var h=function(a){return a.replace(b.regex.urls,"$1"+c+"$2$3")},k=!g&&d;c.length&&(c+="/"),k&&(g=1);for(var l=0;g>l;l++){var m,n,o,p;k?(m=d,j.push(h(a))):(m=e[l].match(b.regex.findStyles)&&RegExp.$1,j.push(RegExp.$2&&h(RegExp.$2))),o=m.split(","),p=o.length;for(var q=0;p>q;q++)n=o[q],f(n)||i.push({media:n.split("(")[0].match(b.regex.only)&&RegExp.$2||"all",rules:j.length-1,hasquery:n.indexOf("(")>-1,minw:n.match(b.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:n.match(b.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(c.length){var b=c.shift();e(b.href,function(c){v(c,b.href,b.media),l[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<p.length;b++){var d=p[b],e=d.href,f=d.media,g=d.rel&&"stylesheet"===d.rel.toLowerCase();e&&g&&!l[e]&&(d.styleSheet&&d.styleSheet.rawCssText?(v(d.styleSheet.rawCssText,e,f),l[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!o||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),c.push({href:e,media:f})))}w()};x(),b.update=x,b.getEmValue=t,a.addEventListener?a.addEventListener("resize",y,!1):a.attachEvent&&a.attachEvent("onresize",y)}}(this);
/*! A fix for the iOS orientationchange zoom bug.
Script by @scottjehl, rebound by @wilto. * MIT / GPLv2 License. */
!function(a){function m(){d.setAttribute("content",g),h=!0}function n(){d.setAttribute("content",f),h=!1}function o(b){l=b.accelerationIncludingGravity,i=Math.abs(l.x),j=Math.abs(l.y),k=Math.abs(l.z),a.orientation&&180!==a.orientation||!(i>7||(k>6&&8>j||8>k&&j>6)&&i>5)?h||m():h&&n()}var b=navigator.userAgent;if(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(b)&&b.indexOf("AppleWebKit")>-1){var c=a.document;if(c.querySelector){var i,j,k,l,d=c.querySelector("meta[name=viewport]"),e=d&&d.getAttribute("content"),f=e+",maximum-scale=1",g=e+",maximum-scale=10",h=!0;d&&(a.addEventListener("orientationchange",m,!1),a.addEventListener("devicemotion",o,!1))}}}(this);
/*global jQuery */
/*jshint multistr:true browser:true */
/*!
* FitVids 1.0
*
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
* Date: Thu Sept 01 18:00:00 2011 -0500
*/
(function(a){a.fn.fitVids=function(b){var c={customSelector:null};
if(!document.getElementById("fit-vids-style")){var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];
e.className="fit-vids-style";e.id="fit-vids-style";e.style.display="none";e.innerHTML="&shy;<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";
d.parentNode.insertBefore(e,d);}if(b){a.extend(c,b);}return this.each(function(){var f=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];
if(c.customSelector){f.push(c.customSelector);}var g=a(this).find(f.join(","));g=g.not("object object");g.each(function(){var l=a(this);if(this.tagName.toLowerCase()==="embed"&&l.parent("object").length||l.parent(".fluid-width-video-wrapper").length){return;
}var h=(this.tagName.toLowerCase()==="object"||(l.attr("height")&&!isNaN(parseInt(l.attr("height"),10))))?parseInt(l.attr("height"),10):l.height(),i=!isNaN(parseInt(l.attr("width"),10))?parseInt(l.attr("width"),10):l.width(),j=h/i;
if(!l.attr("id")){var k="fitvid"+Math.floor(Math.random()*999999);l.attr("id",k);}l.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(j*100)+"%");
l.removeAttr("height").removeAttr("width");});});};})(jQuery);
/*! <details> crossbrowser support
* @author Manuel Bieh
* @url http://www.manuel-bieh.de/
* @version 0.9
* @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPL
* Date $LastChangedDate: 2011-08-03 08:43:30 +0200 (Mi, 03 Aug 2011) $
*/
jQuery(function(a){(function(){var c=this;
this.hideDetailChildren=function(h){var f=h instanceof jQuery?h[0].childNodes:h.childNodes,j=f.length;a(h).attr("open",false);if(a.browser.safari==true){for(var e=0;
e<j;e++){if(f[e].nodeType==3&&f[e].textContent!=""){var g=a("<span />");g.text(f[e].textContent).hide();a(f[e]).after(g);f[e].textContent="";j++;}}}a.each(f,function(i,l){if(a(l)[0].nodeType==1&&l==a(l).parent().find("> summary:first-of-type")[0]){if(a(l).data("processed")!=true){a(l).css({display:"block",cursor:"pointer"}).data("processed",true).addClass("detailHidden").bind("click",function(){c.toggleDetailChildren(a(this));
});a(h).prepend(a(l));}}else{if(a(l)[0].nodeType==3&&!l.isElementContentWhitespace&&!!a.browser.safari==false){var m=a("<span />");m.text(l.textContent).hide();
a(l).after(m);l.textContent="";}else{if(a(h).find("> summary").length==0){var k=a("<summary />").text("Details").css({display:"block",cursor:"pointer"}).data("processed",true).addClass("detailHidden").bind("click",function(){c.toggleDetailChildren(a(this));
});a(h).prepend(k);}}}a(h).find("> :visible:not(summary:first-child)").hide();});};this.showDetailChildren=function(e){a(e).attr("open",true);a.each(a(e).find("> *"),function(g,f){a(f).show();
});};this.toggleDetailChildren=function(e){if(e.hasClass("detailHidden")){e.removeClass("detailHidden");c.showDetailChildren(e.parents("details")[0]);}else{e.addClass("detailHidden");
c.hideDetailChildren(e.parents("details")[0]);}};var d=(function(i){var g=i.createElement("details"),f,e,h;if(!("open" in g)){return false;}e=i.body||(function(){var j=i.documentElement;
f=true;return j.insertBefore(i.createElement("body"),j.firstElementChild||j.firstChild);}());g.innerHTML="<summary>a</summary>b";g.style.display="block";
e.appendChild(g);h=g.offsetHeight;g.open=true;h=h!=g.offsetHeight;e.removeChild(g);if(f){e.parentNode.removeChild(e);}return h;}(document));if(d==false){if(a("details").length!==0){var b=a("<style />").text('summary {-webkit-text-size-adjust: none;} details > summary:first-child:before {content: "▼"; font-size:.9em;padding-right:6px;font-family:"Courier New";} details > summary.detailHidden:first-child:before {content: "►";font-size:.9em;padding-right:6px;font-family:"Courier New";}');
a("head").append(b);}a.each(a("details"),function(f,e){c.hideDetailChildren(e);});}})();});var AccessifyHTML5=function(e,a){var o={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},main:{role:"main"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}},j,b,m,p,r,h,g,d,l,c,n=/aria-[a-z]+|role|tabindex|title|alt|data-[\w\-]+|lang|style|maxlength|placeholder|pattern|type/,f="acfy-id-",k=0,q=document;
if(q.querySelectorAll){if(e){if(e.header){o[e.header]={role:"banner"};}if(e.footer){o[e.footer]={role:"contentinfo"};}if(e.main){o[e.main]={role:"main"};
o.main={role:""};}}for(d in a){o[d]=a[d];}for(j in o){if(o.hasOwnProperty(j)){b=q.querySelectorAll(j);h=o[j];for(g=0;g<b.length;g++){for(r in h){if(h.hasOwnProperty(r)){m=r;
p=h[r];if(!m.match(n)){continue;}if(!(typeof p).match(/string|number/)){continue;}l=m.match(/(describ|label)l?edby/);if(l){c=q.querySelector(p);if(!c){continue;
}if(!c.id){c.id=f+k;}p=c.id;m="aria-"+("label"===l[1]?"labelledby":"describedby");k++;}if(!b[g].hasAttribute(m)){b[g].setAttribute(m,p);}}}}}}}};
* FitVids 1.0.3
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * Date: Thu Sept 01 18:00:00 2011 -0500 */
!function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null};if(!document.getElementById("fit-vids-style")){var d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0],f="&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>";d.className="fit-vids-style",d.id="fit-vids-style",d.style.display="none",d.innerHTML=f,e.parentNode.insertBefore(d,e)}return b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d=d.not("object object"),d.each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),d=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),e=c/d;if(!b.attr("id")){var f="fitvid"+Math.floor(999999*Math.random());b.attr("id",f)}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),b.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto);
/**
* <details> crossbrowser support
* @author Manuel Bieh * @url http://www.manuel-bieh.de/ * @version 0.9 * @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPL * Date $LastChangedDate: 2011-08-03 08:43:30 +0200 (Mi, 03 Aug 2011) $ */
jQuery(function(a){!function(){var b=this;this.hideDetailChildren=function(c){var d=c instanceof jQuery?c[0].childNodes:c.childNodes,e=d.length;if(a(c).attr("open",!1),1==a.browser.safari)for(var f=0;e>f;f++)if(3==d[f].nodeType&&""!=d[f].textContent){var g=a("<span />");g.text(d[f].textContent).hide(),a(d[f]).after(g),d[f].textContent="",e++}a.each(d,function(d,e){if(1==a(e)[0].nodeType&&e==a(e).parent().find("> summary:first-of-type")[0])1!=a(e).data("processed")&&(a(e).css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){b.toggleDetailChildren(a(this))}),a(c).prepend(a(e)));else if(3!=a(e)[0].nodeType||e.isElementContentWhitespace||0!=!!a.browser.safari){if(0==a(c).find("> summary").length){var g=a("<summary />").text("Details").css({display:"block",cursor:"pointer"}).data("processed",!0).addClass("detailHidden").bind("click",function(){b.toggleDetailChildren(a(this))});a(c).prepend(g)}}else{var f=a("<span />");f.text(e.textContent).hide(),a(e).after(f),e.textContent=""}a(c).find("> :visible:not(summary:first-child)").hide()})},this.showDetailChildren=function(b){a(b).attr("open",!0),a.each(a(b).find("> *"),function(b,c){a(c).show()})},this.toggleDetailChildren=function(a){a.hasClass("detailHidden")?(a.removeClass("detailHidden"),b.showDetailChildren(a.parents("details")[0])):(a.addClass("detailHidden"),b.hideDetailChildren(a.parents("details")[0]))};var c=function(a){var c,d,e,b=a.createElement("details");return"open"in b?(d=a.body||function(){var b=a.documentElement;return c=!0,b.insertBefore(a.createElement("body"),b.firstElementChild||b.firstChild)}(),b.innerHTML="<summary>a</summary>b",b.style.display="block",d.appendChild(b),e=b.offsetHeight,b.open=!0,e=e!=b.offsetHeight,d.removeChild(b),c&&d.parentNode.removeChild(d),e):!1}(document);if(0==c){if(0!==a("details").length){var d=a("<style />").text('summary {-webkit-text-size-adjust: none;} details > summary:first-child:before {content: "\u25bc"; font-size:.9em;padding-right:6px;font-family:"Courier New";} details > summary.detailHidden:first-child:before {content: "\u25ba";font-size:.9em;padding-right:6px;font-family:"Courier New";}');a("head").append(d)}a.each(a("details"),function(a,c){b.hideDetailChildren(c)})}}()});
/* Accessifyhtml5.js * Source: https://github.com/yatil/accessifyhtml5.js */
var AccessifyHTML5=function(a,b){"use strict";var f,g,h,i,j,k,l,m,n,o,c={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},main:{role:"main"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}},d={ok:[],warn:[],fail:[]},e=d.fail,p=new RegExp("aria-[a-z]+|role|tabindex|title|alt|data-[\\w-]+|lang|style|maxlength|placeholder|pattern|required|type|target|accesskey|longdesc"),q="acfy-id-",r=0,s=document;if(s.querySelectorAll){if(a&&(a.header&&(c[a.header]={role:"banner"}),a.footer&&(c[a.footer]={role:"contentinfo"}),a.main&&(c[a.main]={role:"main"},c.main={role:""})),b&&b._CONFIG_&&b._CONFIG_.ignore_defaults)c=b;else for(m in b)c[m]=b[m];for(f in c)if(!f.match(/^_(CONFIG|[A-Z]+)_/)&&c.hasOwnProperty(f)){try{g=s.querySelectorAll(f)}catch(t){e.push({sel:f,attr:null,val:null,msg:"Invalid syntax for `document.querySelectorAll` function",ex:t})}for(k=c[f],(!g||g.length<1)&&d.warn.push({sel:f,attr:null,val:null,msg:"Not found"}),l=0;l<g.length;l++)for(j in k)if(k.hasOwnProperty(j)){if(h=j,i=k[j],h.match(/_?note/))continue;if(!h.match(p)){e.push({sel:f,attr:h,val:null,msg:"Attribute not allowed",re:p});continue}if(!(typeof i).match(/string|number|boolean/)){e.push({sel:f,attr:h,val:i,msg:"Value-type not allowed"});continue}if(n=h.match(/(describ|label)l?edby/)){try{o=s.querySelector(i)}catch(t){e.push({sel:f,attr:h,val:i,msg:"Invalid selector syntax (2) - see 'val'",ex:t})}if(!o){e.push({sel:f,attr:h,val:i,msg:"Labelledby ref not found - see 'val'"});continue}o.id||(o.id=q+r),i=o.id,h="aria-"+("label"===n[1]?"labelledby":"describedby"),r++}g[l].hasAttribute(h)?d.warn.push({sel:f,attr:h,val:i,msg:"Already present, skipped"}):(g[l].setAttribute(h,i),d.ok.push({sel:f,attr:h,val:i,msg:"Added"}))}}}return d.input=c,d};
/*! http://mths.be/placeholder v2.0.7 by @mathias */
(function(g,i,d){var a="placeholder" in i.createElement("input"),e="placeholder" in i.createElement("textarea"),j=d.fn,c=d.valHooks,l,k;
if(a&&e){k=j.placeholder=function(){return this;};k.input=k.textarea=true;}else{k=j.placeholder=function(){var m=this;m.filter((a?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":b,"blur.placeholder":f}).data("placeholder-enabled",true).trigger("blur.placeholder");
return m;};k.input=a;k.textarea=e;l={get:function(n){var m=d(n);return m.data("placeholder-enabled")&&m.hasClass("placeholder")?"":n.value;},set:function(n,o){var m=d(n);
if(!m.data("placeholder-enabled")){return n.value=o;}if(o==""){n.value=o;if(n!=i.activeElement){f.call(n);}}else{if(m.hasClass("placeholder")){b.call(n,true,o)||(n.value=o);
}else{n.value=o;}}return m;}};a||(c.input=l);e||(c.textarea=l);d(function(){d(i).delegate("form","submit.placeholder",function(){var m=d(".placeholder",this).each(b);
setTimeout(function(){m.each(f);},10);});});d(g).bind("beforeunload.placeholder",function(){d(".placeholder").each(function(){this.value="";});});}function h(n){var m={},o=/^jQuery\d+$/;
d.each(n.attributes,function(q,p){if(p.specified&&!o.test(p.name)){m[p.name]=p.value;}});return m;}function b(n,o){var m=this,p=d(m);if(m.value==p.attr("placeholder")&&p.hasClass("placeholder")){if(p.data("placeholder-password")){p=p.hide().next().show().attr("id",p.removeAttr("id").data("placeholder-id"));
if(n===true){return p[0].value=o;}p.focus();}else{m.value="";p.removeClass("placeholder");m==i.activeElement&&m.select();}}}function f(){var r,m=this,q=d(m),n=q,p=this.id;
if(m.value==""){if(m.type=="password"){if(!q.data("placeholder-textinput")){try{r=q.clone().attr({type:"text"});}catch(o){r=d("<input>").attr(d.extend(h(this),{type:"text"}));
}r.removeAttr("name").data({"placeholder-password":true,"placeholder-id":p}).bind("focus.placeholder",b);q.data({"placeholder-textinput":r,"placeholder-id":p}).before(r);
}q=q.removeAttr("id").hide().prev().attr("id",p).show();}q.addClass("placeholder");q[0].value=q.attr("placeholder");}else{q.removeClass("placeholder");
}}}(this,document,jQuery));
!function(a,b,c){function k(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function l(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==n()&&d.select()}function m(){var a,b=this,d=c(b),e=this.id;if(""==b.value){if("password"==b.type){if(!d.data("placeholder-textinput")){try{a=d.clone().attr({type:"text"})}catch(f){a=c("<input>").attr(c.extend(k(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":d,"placeholder-id":e}).bind("focus.placeholder",l),d.data({"placeholder-textinput":a,"placeholder-id":e}).before(a)}d=d.removeAttr("id").hide().prev().attr("id",e).show()}d.addClass("placeholder"),d[0].value=d.attr("placeholder")}else d.removeClass("placeholder")}function n(){try{return b.activeElement}catch(a){}}var i,j,d="placeholder"in b.createElement("input"),e="placeholder"in b.createElement("textarea"),f=c.fn,g=c.valHooks,h=c.propHooks;d&&e?(j=f.placeholder=function(){return this},j.input=j.textarea=!0):(j=f.placeholder=function(){var a=this;return a.filter((d?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":m}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},j.input=d,j.textarea=e,i={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),e=d.data("placeholder-password");return e?e[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=n()&&m.call(a)):d.hasClass("placeholder")?l.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},d||(g.input=i,h.value=i),e||(g.textarea=i,h.value=i),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(l);setTimeout(function(){a.each(m)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);
/*! 2k11 main JS */
jQuery(document).ready(function(c){AccessifyHTML5({header:"#banner",footer:"#colophon"});c("input[type=search]").parents("form").attr("role","search");
var d=c("<select/>");c("#primary-nav li").each(function(){var a=c(this);if(a.find("span").length){c("<option/>",{selected:"selected",value:"",text:a.text()}).appendTo(d);
}else{c("<option/>",{value:a.find("a").attr("href"),text:a.text()}).appendTo(d);}});if(d.children().size()>0){d.appendTo("#primary-nav").change(function(){window.location=c(this).find("option:selected").val();
});}if(typeof(lsbase)=="string"){c('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div");}c("input, textarea").placeholder();
c("#content>article").fitVids();c("#trackback_url>a,.short-url").click(function(){var a=c(this).attr("title");alert(a);return false;});c(".comment_reply").click(function(){var a=c(this).attr("id").replace(/serendipity_reply_/g,"");
c("#serendipity_replyTo").val(a);});c(".comment_source_ownerlink").click(function(){var a=c(this).attr("title");return confirm(a);});c("#c").insertAfter("#feedback");
c(".comment_reply").click(function(){c("#reply-to-comment").remove();var a='<p id="reply-to-comment">'+c("#reply-to-hint").text()+" "+c("#serendipity_replyTo :selected").text()+"</p>";
c("#serendipity_replyTo").after(a);});c("#reply-to-hint,#serendipity_replyTo").addClass("visuallyhidden");c(".reply_origin").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=c(this.hash);
a=a.length&&a||c("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;c("html,body").animate({scrollTop:b},700);return false;}}});});
jQuery(document).ready(function(a){AccessifyHTML5({header:"#banner",footer:"#colophon"}),a("input[type=search]").parents("form").attr("role","search");var b=a("<select/>");a("#primary-nav li").each(function(){var c=a(this);c.find("span").length?a("<option/>",{selected:"selected",value:"",text:c.text()}).appendTo(b):a("<option/>",{value:c.find("a").attr("href"),text:c.text()}).appendTo(b)}),b.children().size()>0&&b.appendTo("#primary-nav").change(function(){window.location=a(this).find("option:selected").val()}),"string"==typeof lsbase&&a('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div"),a("input, textarea").placeholder(),a("#content>article").fitVids(),a("#trackback_url>a,.short-url").click(function(){var b=a(this).attr("title");return alert(b),!1}),a(".comment_reply").click(function(){var b=a(this).attr("id").replace(/serendipity_reply_/g,"");a("#serendipity_replyTo").val(b)}),a(".comment_source_ownerlink").click(function(){var b=a(this).attr("title");return confirm(b)}),a("#c").insertAfter("#feedback"),a(".comment_reply").click(function(){a("#reply-to-comment").remove();var b='<p id="reply-to-comment">'+a("#reply-to-hint").text()+" "+a("#serendipity_replyTo :selected").text()+"</p>";a("#serendipity_replyTo").after(b)}),a("#reply-to-hint,#serendipity_replyTo").addClass("visuallyhidden"),a(".reply_origin").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);if(b=b.length&&b||a("[name="+this.hash.slice(1)+"]"),b.length){var c=b.offset().top;return a("html,body").animate({scrollTop:c},700),!1}}})});