// setup google analytics account 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23579926-1']);

// fetch ga tracking js
(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);
})();

// register hashchange handler with SWFAddress
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleChange);

// handle address changes
function handleChange(event)
{
	// strip analytics_ from path (not useful for tracking info)
	var track = event.path.replace('analytics_', '');
	// push to asynchronous tracking queue
	_gaq.push(['_trackPageview', track]);
}
