//
// Google Analytics Placeholder Script
//
// This version should be used for all *NON* production sites
//

var debug	= false;

if ( debug ) {
	alert( "In google-analytics.js:\n" +
			"location.hostname = [" + location.hostname + "]\n" +
			"" );
}

if ( location.hostname == PROD_DOMAIN ) {
	if ( debug ) {
		alert( "Running in production, adding google analytics code" );
	}

		// This code is taken from Google's analytics site

	var _gaq = _gaq || [];
	_gaq.push([ '_setAccount', 'UA-8209770-1' ]);
	_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 );
	})();

		// End google code

} else {
	if ( debug ) {
		alert( "Not running in production" );
	}

	var _gaq = [];
}

if ( debug ) {
	alert( "Done google-analytics.js" );
}
