var statsloaded = 1;
function blogworksload(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

blogworksload(function() {
	var bwsrc = 'http://stats.goblog.com/p/stats.cgi?'
		+ 'id=1'
		+ '&ref=' + encodeURIComponent(document.referrer)
		+ '&url=' + encodeURIComponent(document.URL)
		+ '&res=' + encodeURIComponent(screen.width+'x'+screen.height)
		+ '&ttl=' + encodeURIComponent(document.title)
		+ '&ts=1280440700';
	
	var bws = document.createElement('img');
	bws.setAttribute('id', 'blogworkstatsimg');
	bws.setAttribute('src', bwsrc);
	bws.setAttribute('style', 'position:absolute;top:-10px;left:0');
	bws.setAttribute('width', '1');
	bws.setAttribute('height', '1');
	bws.setAttribute('alt', '');
	document.body.appendChild(bws);
});
