function showgame(nombre){
	cubrir();
	switch(nombre){
		case "memoria":
			//juego.innerHTML = '<iframe src="memoria.html" width="650" height="423" frameborder="0" scrolling="no"></iframe>';
			loadDivByGET("memoria.html","juego");
			juego.style.width="700px";
			juego.style.height="600px";
			juego.style.visibility = "visible";
			
			y = (document.body.clientHeight - 700)/2;
			x = (document.body.clientWidth - 600)/2;
			
			juego.style.top = y;
			juego.style.left = x;
			
			juego.style.visibility = "visible";
			
			
			
			break;
		case "golpea":
			loadDivByGET("golpea.html","juego");
			juego.style.width="700px";
			juego.style.height="600px";
			juego.style.visibility = "visible";
			
			y = (document.body.clientHeight - 700)/2;
			x = (document.body.clientWidth - 600)/2;
			
			juego.style.top = y;
			juego.style.left = x;
			juego.style.visibility = "visible";
			
			break;
		case "simon":
			loadDivByGET("simon.html","juego");
			juego.style.width="700px";
			juego.style.height="600px";
			juego.style.visibility = "visible";
			
			y = (document.body.clientHeight - 700)/2;
			x = (document.body.clientWidth - 600)/2;
			
			juego.style.top = y;
			juego.style.left = x;
			juego.style.visibility = "visible";
			break;
	}
	
}

function closegame(){
	juego.innerHtml = "";
	juego.style.visibility = "hidden";
	apDiv1.style.visibility = "hidden";
	apDiv1.style.width = "10px";
	apDiv1.style.height = "10px";
}
function cubrir(){
	apDiv1.style.width = document.body.clientWidth;
	apDiv1.style.height = document.body.clientHeight+16;
	apDiv1.style.top = "0px";
	apDiv1.style.left = "0px";
	apDiv1.style.visibility = "visible";
	
}
