﻿var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


// google analytics scripts must be in 2 separate files or 2 separate script blocks


/*function InitGoogleAnalytics()
{
    if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName("a");

	// loop through all anchor tags
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];

		if (anchor.getAttribute("href") && (anchor.getAttribute("target") == "tracking"))
		{
		    anchor.onclick = function() {GoogleAnalytics(this.getAttribute("href")); }
	
		}
	}
}
*/
//
// addThisLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//

/*
function addThisLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}


addThisLoadEvent(InitGoogleAnalytics);// run InitGoogleAnalytics onLoad
*/
