function loadlogo(){
	var topImg = document.getElementById('imgTop');
	if (screen.width<=1024){
		 topImg.style.backgroundImage = 'url("http://www.2dgames.eu/images/top1024.jpg")';
		 topImg.style.height = "203px"; 
	} else {
		topImg.style.backgroundImage = "url('http://www.2dgames.eu/images/top1280.jpg')";
		topImg.style.height = "249px"; 
	}
}
function voted(){alert("Your vote has been send to 2dgames.eu");}
function Vote(what,how){
	if(document.getElementById('vote'+how+'Id'+what)){
		document.getElementById('vote1Id'+what).onclick=voted;
		document.getElementById('vote2Id'+what).onclick=voted;
		document.getElementById('vote'+how+'Id'+what).src="http://www.2dgames.eu/images/smile"+how+"b.gif";
	}
	p= new Image();p.src="http://www.2dgames.eu/include/vote.php?Vgid="+what+"&Vhow="+how;
return;
}
function Report(Rgid){
	var RWork 	= '';
	var	RCid 	= '';
	var Rage	= '';
	var Rcijfer	= '';
	if(document.getElementById('report')){
		if(document.getElementById('RWorkYes')){if(document.getElementById('RWorkYes').checked){RWork='true';}else{RWork='false';}}
		if(document.getElementById('Rcid')){RCid = document.getElementById('Rcid').value;}
		if(document.getElementById('Rage')){Rage = document.getElementById('Rage').value;}
		if(document.getElementById('Rcijfer')){Rcijfer = document.getElementById('Rcijfer').value;}
		r= new Image();r.src='http://www.2dgames.eu/include/report.php?RWork='+RWork+'&RCid='+RCid+'&Rage='+Rage+'&Rcijfer='+Rcijfer+'&Rgid='+Rgid;
		document.getElementById('report').innerHTML = 'Thanks for helping this website !';
	}
}
function ShowHide(what,how){
	if(document.getElementById(what)){
		document.getElementById(what).style.visibility = how;
	}
}