var plstart = new Date();

if (window.attachEvent) {window.attachEvent('onload', track_page_loaded);}
else if (window.addEventListener) {window.addEventListener('load', track_page_loaded, false);}
else {document.addEventListener('load', track_page_loaded, false);}

function track_page_loaded()
{
	var plend = new Date();
	var plload = plend.getTime() - plstart.getTime();

	// determine the thresholds
	if(plload<2000)
	lc = "Very Fast";
	else if (plload<5000)
	lc = "Fast";
	else if (plload<10000)
	lc = "Medium";
	else if (plload<30000)
	lc = "Sluggish";
	else if (plload<45000)
	lc = "Slow";
	else
	lc="Very Slow";
	var fn = document.location.pathname;
	if( document.location.search)
	fn += document.location.search;

	try
	{
		pageTracker._trackEvent("Page Load",lc + " Loading Pages", fn, Math.round(plload/1000));
	}
	catch(err){}
}