﻿var _gaq = _gaq || [];

var jGoogle = new function()
{
	this.init = function(pAccount, pIncludeHome)
	{
		var cont = true,
			page = self.location.toString().toLowerCase();
		
		if (page.indexOf(".home") > 0 && !pIncludeHome) cont = false;
		
		if (cont)
		{
			_gaq.push(["_setAccount", pAccount]);
			_gaq.push(["_trackPageview"]);
			
			var ga = document.createElement("script"),
				s = document.getElementsByTagName("script")[0];
				
			ga.type = "text/javascript";
			ga.async = true;
			ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
			
			s.parentNode.insertBefore(ga, s);
		}
	};
};