var _gaq = _gaq || [];

// if this is production:
if(window.location.host.toLowerCase() == 'virgingaming.com') {
	_gaq.push(['_setAccount', 'UA-16091178-2']);
} else {
	//... else, it's staging
	_gaq.push(['_setAccount', 'UA-16091178-3']);
}

_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setDetectFlash', false]);
_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);
})();

// marketing pages should be non-ssl
if (window.top.location.protocol == 'https:') {
	window.top.location = 'http' + window.top.location.href.substr(5);
}
