// Embeds navigation/standard divs (header, sidebar, footer)

$(function () {    
    $("body").prepend("<div class='headerEnvelope' id='headerEnvelope'></div>");
    $("#headerEnvelope").load("header.html");
    
    $("body").append("<div class='footerEnvelope' id='footerEnvelope'></div>");
    $("#footerEnvelope").load("footer.html");
    
    /*if (document.body.clientWidth>=1000) {
        $("link[rel=stylesheet]:not(:first)").attr({href : "forLargeScreens.css"});
    }
    else  {
        $("link[rel=stylesheet]:not(:first)").attr({href : "forSmallScreens.css"});
    }*/

});
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21912056-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

