// include Google Analytics Async Version - replace 'your-google-analytics-account-id-here' below with your Google Analytics Account ID
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6702233-1']);
(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);
})();

			

// outbound link tracking handler
// link - url to be tracked
// cat - google analytics category (Link, Event etc)
// act - action that is tracked	- in this case click
// opt - any additional info you want GA to record from the tracked event		
function trackOutboundLink(link, cat, act, opt) {
	trackGAEvent(cat,act,opt);
	// we need to set a timer so that GA can track the link before the window location changes
	setTimeout('navToURL("'+link+'")', 500);
}

// after the timeout - let's go to the link - can't be in new window due to js pop up blocking in some browsers
function navToURL(link)
{
	window.location.href = link;
}

// event tracking handler - can be used for clicks on page tabs, accordions, form submissions etc.
// cat - google analytics category (Event etc)
// act - action that is tracked	- in this case click
// opt - any additional info you want GA to record from the tracked event
function trackGAEvent(cat,act,opt){
	//alert(cat + ' | ' + act + ' | ' + opt);
	_gaq.push(['_trackEvent', cat, act, opt]);
}

