<!--
// JavaScript Document
// Written by andys adaptation of ga tracking code sent in via email. Original:
//<script type="text/javascript">
//
//  var _gaq = _gaq || [];
//  _gaq.push(['_setAccount', 'UA-12098895-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);
//  })();
//
//</script>
-->

function writeAnalytics() {
	// _gaq object is the Google Analytics API queue. See http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html for more details.
	// Once the queue has been built, calling sendAnalytics will execute the queue.
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-12098895-1']);
	_gaq.push(['_setDomainName', 'none']);
	_gaq.push(['_setAllowLinker', true]);
	_gaq.push(['_trackPageview']);		
}
function sendAnalytics() {
	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);
}
