
document.write("<"+"img name=rama1 width=1 height=1 border=0>");
var rama1="http:/"+"/wreport.weborama.fr/fcgi-bin/comptage_wreport.fcgi?WRP_ID="+WRP_ID+"&WRP_SECTION='"+WRP_SECTION+"'&WRP_SUBSECTION='"+WRP_SUBSECTION+"'&WRP_CONTENT='"+WRP_CONTENT+"'&WRP_SECTION_GRP='"+WRP_SECTION_GRP+"'&WRP_SUBSECTION_GRP='WRP_ID'&MEDIA=MAIL";

function muestra_grande(foto)
	{
	document.images.rama1.src=rama1;
	document.images.cambia.src = foto;
	}

function siguiente()
	{
	document.images.rama1.src=rama1;
	var rutaimagen = document.images.cambia.src;
	var partesimg = rutaimagen.split('/');
	var ultimo = partesimg.length;
	var cargaimg = partesimg[ultimo-1];
	cargaimg = "/imgsed/" + cargaimg;
	for(i=0; i < array_fotosgrandes.length; i++)
		{
		if(cargaimg==array_fotosgrandes[i])
			{
			var pos = i;
			break;
			}
		}
	if (pos==array_fotosgrandes.length-1){pos=0;} else {pos = pos+1;}
	document.images.cambia.src = "" + array_fotosgrandes[pos];
	}
function anterior()
	{
	document.images.rama1.src=rama1;
	var rutaimagen = document.images.cambia.src;
	var partesimg = rutaimagen.split('/');
	var ultimo = partesimg.length;
	var cargaimg = partesimg[ultimo-1];
	cargaimg = "/imgsed/" + cargaimg;
	for(i=0; i < array_fotosgrandes.length; i++)
		{
		if(cargaimg==array_fotosgrandes[i])
			{
			var pos = i;
			break;
			}
		}
	if (pos==0){pos=array_fotosgrandes.length-1;} else {pos = pos-1;}
	document.images.cambia.src = "" + array_fotosgrandes[pos];
	}

if ((typeof resizeMotor=="undefined")&&(typeof window.frames.newsLite!="undefined")) {
document.write("<"+"script src='http://www.telecinco.es/images/motor_generico/motor_generico.js'><"+"/script>");
document.write("<"+"script>f"+"unction resizeFrame(fr) {");
document.write("	var h;");
document.write("	var w = fr.contentWindow;");
document.write("	if (w && w.document && w.document.body && w.document.body.scrollHeight) {");
document.write("	  escribeMotor(this);");
document.write("	  h = w.document.body.scrollHeight;");
document.write("	}");
document.write("	    if ( h ) {");
document.write("			fr.style.height = h;");
document.write("			emspy.reload(logDomain,logChannel,logPath,logPage+\"_motor\");");
document.write("		} else {");
document.write("			window.setTimeout(\"window.resizeFrame(window.document.getElementById('newsLite'))\", 3000);");
document.write("	}");
document.write("}<"+"/script>");
}
