window.onload=function(){
	var e=document.createElement("div");
	e.id="shadow";
	document.body.appendChild(e);
	
	var shadow=document.getElementById("shadow");
	shadow.style.position="absolute";
	shadow.style.display="none";
	
	var d=document.createElement("div");
	d.id="tip";shadow.appendChild(d);
	
	var tip=document.getElementById("tip");
	
	if(!document.all){
		document.captureEvents(Event.MOUSEMOVE)
	}
	
	document.onmousemove=function(e){
		if(document.all){
			shadow.style.left=event.clientX+document.documentElement.scrollLeft+"px"
			shadow.style.top=event.clientY+document.documentElement.scrollTop+21+"px"
		}else{
			shadow.style.left=e.pageX+"px";shadow.style.top=e.pageY+21+"px"
		};
		return true
	}

	var anchors=document.getElementsByTagName('a');
	
	for(var i=0;i<anchors.length;i++){
		var anchor=anchors[i];
		text=anchor.title;
		if(text!=""){
			anchor.onmouseover=function(){
				text = this.title;
				var data = this.title.split(";");
				if(text!="" && !isNaN(data[0])){
					var tempHtml = "<table class='thumbinfo'>";
					tempHtml += "<tr><td rowspan='2' class='foto'><img src='pics/"+data[0]+".gif' alt=''/></td>";
					tempHtml += "<td class='titel'>"+data[1]+"</td></tr>";
					tempHtml += "<tr><td class='stats'>Gespeeld: "+data[2]+" keer<br />Cijfer: "+data[3]+"</td></tr></table>";
					this.title="";
					tip.innerHTML=tempHtml;
					document.getElementById("shadow").style.display="block"
				}
			};
			
			anchor.onmouseout=function(){
				this.title=text;shadow.style.display="none";tip.innerHTML=""
			}
		}
	}
}