function loaded()
{
	var GAAccount = 'UA-2847858-1';
	//insert the first script tag
	var InsertGC1 = document.body.lastChild;
	var GoogCode1 = document.createElement('script');
	GoogCode1.src = 'http://www.google-analytics.com/urchin.js'
	GoogCode1.type = 'text/javascript';
	InsertGC1.parentNode.insertBefore(GoogCode1, InsertGC1.nextSibling); //same as insertAfter
	//insert the second script tag
	var InsertGC2 = document.body.lastChild;
	var GoogCode2 = document.createElement('script');
	GoogCode2.type = 'text/javascript';
	
	var text = '_uacct = "'+GAAccount+'"; urchinTracker();';
	if (null == GoogCode2.canHaveChildren || GoogCode2.canHaveChildren) {
    		GoogCode2.appendChild(document.createTextNode(text));
  	} else {
    		GoogCode2.text = text;
  	} 
	InsertGC2.parentNode.insertBefore(GoogCode2, InsertGC2.nextSibling);
}

