
function AddLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

AddLoadEvent(function() {
	var csrc = 'http://www.blog-tweets.de/js/js.php?referrer=' + encodeURIComponent(document.referrer)
		+ '&site=' + encodeURIComponent(document.URL)
		+ '&resulution=' + encodeURIComponent(screen.width+'x'+screen.height)
		+ '&title=' + encodeURIComponent(document.title)
		+ '&uid=123456';
	
	var img = document.createElement('img');
	img.setAttribute('id', 'clicktracking');
	img.setAttribute('src', csrc);
	img.setAttribute('style', 'position:absolute;top:-10px;left:0');
	img.setAttribute('width', '1');
	img.setAttribute('height', '1');
	img.setAttribute('alt', '');
	document.body.appendChild(img);
	
});
