/*
 * respond.js - A small and fast polyfill for min/max-width CSS3 Media Queries
 * Copyright 2011, Scott Jehl, scottjehl.com
 * Dual licensed under the MIT or GPL Version 2 licenses. 
 * Usage: Check out the readme file or github.com/scottjehl/respond
 *
 * Special thanks to https://github.com/Kingsquare for IE8 fix
*/
(function(L,I){L.respond={};respond.update=function(){};respond.mediaQueriesSupported=I;if(I){return}var v=L.document,y=v.documentElement,H=[],F=[],A=[],B={},J=30,K=v.getElementsByTagName("head")[0]||y,O=K.getElementsByTagName("link"),M=[],P=function(){var g=O,c=g.length;for(var e=0;e<c;e++){var f=g[e],b=f.href,a=f.media,d=f.rel&&f.rel.toLowerCase()==="stylesheet";if(!!b&&d&&!B[b]){if(!/^([a-zA-Z]+?:(\/\/)?)/.test(b)||b.replace(RegExp.$1,"").split("/")[0]===L.location.host){M.push({href:b,media:a})}else{B[b]=true}}}w()},w=function(){if(M.length){var a=M.shift();C(a.href,function(b){D(b,a.href,a.media);B[a.href]=true;w()})}},D=function(k,j,g){var m=k.match(/@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi),i=m&&m.length||0,j=j.substring(0,j.lastIndexOf("/")),h=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+j+"$2$3")},f=!i&&g;if(j.length){j+="/"}if(f){i=1}for(var c=0;c<i;c++){var b;if(f){b=g;F.push(h(k))}else{b=m[c].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;F.push(RegExp.$2&&h(RegExp.$2))}var e=b.split(","),l=e.length;for(var d=0;d<l;d++){var a=e[d];H.push({media:a.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:F.length-1,minw:a.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:a.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}G()},E,z,G=function(l){var i="clientWidth",g=y[i],a=v.compatMode==="CSS1Compat"&&g||v.body[i]||g,e={},b=v.createDocumentFragment(),c=O[O.length-1],h=(new Date()).getTime();if(l&&E&&h-E<J){clearTimeout(z);z=setTimeout(G,J);return}else{E=h}for(var f in H){var k=H[f];if(!k.minw&&!k.maxw||(!k.minw||k.minw&&a>=k.minw)&&(!k.maxw||k.maxw&&a<=k.maxw)){if(!e[k.media]){e[k.media]=[]}e[k.media].push(F[k.rules])}}for(var f in A){if(A[f]&&A[f].parentNode===K){K.removeChild(A[f])}}for(var f in e){var j=v.createElement("style"),d=e[f].join("\n");j.type="text/css";j.media=f;if(j.styleSheet){j.styleSheet.cssText=d}else{j.appendChild(v.createTextNode(d))}b.appendChild(j);A.push(j)}K.insertBefore(b,c.nextSibling)},C=function(c,a){var b=N();if(!b){return}b.open("GET",c,true);b.onreadystatechange=function(){if(b.readyState!=4||b.status!=200&&b.status!=304){return}a(b.responseText)};if(b.readyState==4){return}b.send()},N=(function(){var c=false,b=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest()}],d=b.length;while(d--){try{c=b[d]()}catch(a){continue}break}return function(){return c}})();P();respond.update=P;function x(){G(true)}if(L.addEventListener){L.addEventListener("resize",x,false)}else{if(L.attachEvent){L.attachEvent("onresize",x)}}})(this,(function(m){if(m.matchMedia){return true}var n,j=document,p=j.documentElement,l=p.firstElementChild||p.firstChild,k=!j.body,o=j.body||j.createElement("body"),q=j.createElement("div"),r="only all";q.id="mq-test-1";q.style.cssText="position:absolute;top:-99em";o.appendChild(q);q.innerHTML='_<style media="'+r+'"> #mq-test-1 { width: 9px; }</style>';if(k){p.insertBefore(o,l)}q.removeChild(q.firstChild);n=q.offsetWidth==9;if(k){p.removeChild(o)}else{o.removeChild(q)}return n})(this));(function(a){a.fn.AwesomeNav=function(){return this.each(function(){var c=a(this),b=c.height();a("body").prepend('<div id="overlay"></div>');a("#sub-nav, #overlay").hide();c.hover(function(){a("#overlay").height(a(window).height()-90).animate({opacity:"show"});if(a.browser.msie){a("#overlay").css("filter","alpha(opacity=60)")}a("#sub-nav").animate({height:"show",opacity:"show"},"slow")});a("#overlay").live("hover",function(){c.height(b);a("#overlay").animate({opacity:"hide"});a("#sub-nav").animate({height:"hide",opacity:"hide"},"slow")})})}}(jQuery));$(document).ready(function(){$("#content").css("margin","75px auto 0");$("#nav").AwesomeNav();$("#lang li").hover(function(){var a=this.id;$("#lang a").each(function(){var b=$(this);b.css({filter:"alpha(opacity=10)",opacity:"0.1"});if(a===b.attr("class")){b.css({filter:"alpha(opacity=100)",opacity:"1"})}})},function(){$("#lang a").css({filter:"alpha(opacity=100)",opacity:"1"})});if($("#container").length>0){$("#ticker").NewsTicker();$(".dot").LightTip()}});
