﻿//	
// 	Define googleAnalyticId to run google analytics in the page
//	and call the script in the end of <head>
// 	if self.usegoogleanalytics():
// 		self.script()
// 		self.text("googleAnalyticId='%s';" % self.GOOGLEANALYTICID[self.e['server']])
// 		self._script()
//		self.script(src="/_root/_lib2/javascripts/googleanalytic.js")
//
// 	... Done automatically with SiteBuilder
// 

var _gaq = _gaq || [];
if (typeof(googleAnalyticId)!='undefined') {
	_gaq.push(['_setAccount', googleAnalyticId]);
	_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);
	})();
}