function slimstatAddLoadEvent(func) {
	window.attachEvent("onload", function(){
		func();
	});
}

if(!window.attachEvent && window.addEventListener) 
{ 
	Window.prototype.attachEvent = HTMLDocument.prototype.attachEvent= 
	HTMLElement.prototype.attachEvent=function(en, func, cancelBubble) 
	{
		var cb = cancelBubble ? true : false; 
		this.addEventListener(en.toLowerCase().substr(2), func, cb); 
	}; 
}

slimstatAddLoadEvent(function() {
	var ssSrc = 'http://ll.perk8.com/stats_js.php?ref=' + encodeURIComponent(document.referrer)
		+ '&url=' + encodeURIComponent(document.URL)
		+ '&res=' + encodeURIComponent(screen.width+'x'+screen.height)
		+ '&ttl=' + encodeURIComponent(document.title)
		+ '&ts=1283500442'
		+ '&site_id=' + ll_site_id;
	
	var ssImg = document.createElement('img');
	ssImg.setAttribute('id', 'll_stat1.1_img');
	ssImg.setAttribute('src', ssSrc);
	ssImg.setAttribute('style', 'position:absolute;top:-10px;left:0');
	ssImg.setAttribute('width', '1');
	ssImg.setAttribute('height', '1');
	ssImg.setAttribute('alt', '');
	document.body.appendChild(ssImg);
});
