var _gaq = _gaq || [];
//If we use this for stage then please uncomment lines 4 and 5 and comment the line 9 and 10

//_gaq.push(['_setAccount', 'UA-1341399-7']);
//_gaq.push(['_setDomainName', 'ektrondev.shcorp.com']);

//If we use this for production then please uncomment lines 9 and 10 and comment the line 4 and 5

_gaq.push(['_setAccount', 'UA-1341399-1']);
_gaq.push(['_setDomainName', 'sportandhealth.com']);

_gaq.push(['_trackPageview']);

if(!readCookie('__utmv'))
	_gaq.push(['_setCustomVar', 1, 'User Type', 'Non-Member',2]);
	
(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);
})();

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0)
			return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function set_member()
{
	_gaq.push(['_setCustomVar', 1, 'User Type', 'Member',2]);
}

