// Add 'js' class to allow for pre-hiding and graceful introductions.
document.documentElement.className += ' js';

// Add 'retina' class to the document.
if (window.devicePixelRatio > 1 && document.documentElement) {
  document.documentElement.className +=  ' retina';
}

// Setup Google Analytics placeholder object
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26467332-1']);

// Brille.router will push this message onto Analytics' queue.
// We don't want to be accidentally juking the stats.
// _gaq.push(['_trackPageview']);

// Only actually load analytics on the production domain
if (window.location.host.indexOf('brillerecords.com') !== -1) {
  (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);
  })();
}


