// JavaScript Document
function iniciarFotoEntrada(){	
	//alert("inicio");
	
	var h = document.body.clientHeight;
	var w = document.body.clientWidth;
		 //an = Math.round(w/2-320);
		 //al = Math.round(h/2-214);
		 an = Math.round(1*h/7);
		 al = Math.round(1*h/7);
		// imagen centrada 
				 document.getElementById("foto").innerHTML =
		 "<img class=\"drag\" id=\"rebecavalls\" src=\"img/rebecavalls21.jpg\" alt=\"Rebeca Valls\" border=\"0\" style=\"position:absolute; top:"+al+"; left:"+an+"; z-index:1\"/>";
		/* document.getElementById("corazon").style.top = Math.round(1*h/5);
		 document.getElementById("corazon").style.left = Math.round(2*w/9);	
		 document.getElementById("nombreRV").style.top = Math.round(5*h/7);
		 document.getElementById("nombreRV").style.left = Math.round(2*w/9);*/
		 var bord =214-50;
		 document.getElementById("cor").innerHTML=""
		 //document.getElementById("corazon").style.top = bord;
		 //document.getElementById("corazon").style.left = w/2;	
		 //alert("antes");
		 document.getElementById("nombreRV").style.top = Math.round(h/2 - 40);
		 document.getElementById("nombreRV").style.left = Math.round(w/2);
		 //alert("despues");
	
	/*
	var ay = document.body.clientHeight;
	var ax = document.body.clientWidth;
	
	document.getElementById("foto").innerHTML = 
	"<img id =\"rebecavalls\" src=\"img/rebecavalls.jpg\" alt=\"Rebeca Valls\" border=\"3\" style=\"top:20; left:20; position:absolute\" />";
	
	img = new Image();
		img.src = "img/rebecavalls3.jpg";
		var ww = Math.round(ax/2-img.width/2);
		var hh = Math.round((ay/2-img.height/2)/2);
	document.getElementById("rebecavalls").style.top = hh;
	document.getElementById("rebecavalls").style.left = ww;	
		 document.getElementById("corazon").style.top = Math.round(1*ay/5);
		 document.getElementById("corazon").style.left = Math.round(2*ax/9);	
		 document.getElementById("nombreRV").style.top = Math.round(5*ay/7);
		 document.getElementById("nombreRV").style.left = Math.round(2*ax/9);*/
}
