var g_fIsSP2 = false;
function ventana(elque){
	g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
	   if (g_fIsSP2)
	   {
	   valor=59 
	   }
	   else
	   {
	   valor=34
	   }
	p=window.open("about:blank","_blank","width=10,height=10,scrollabar=0,status=no,toolbar=0")
	p.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">\n")
	p.document.write("<html>\n")
	p.document.write("\<script\>\n")
	p.document.write("function cen(){\n")
	p.document.write("ancho=imgn.offsetWidth+8;\n")
	p.document.write("alto=imgn.offsetHeight+"+valor+";\n")
	p.document.write("moveTo((screen.width-ancho)/2,(screen.height-alto)/2);\n")
	p.document.write("window.resizeTo (imgn.offsetWidth+8,imgn.offsetHeight+"+valor+");\n")
	p.document.write(" } \n ")
	p.document.write("\</script\>\n")
	p.document.write("<body topmargin=\"0\" leftmargin=\"0\" >\n")
	p.document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" name=\"imgn\" id=\"imgn\" >\n<tr>\n")
	p.document.write("<td><img src='"+elque+"' onload=\"cen()\"></td>\n</tr>\n</table>\n")
	p.document.write("</html>")
	ancho=p.document.all["imgn"].offsetWidth+8
	alto=p.document.all["imgn"].offsetHeight+valor
	//p.resizeTo(ancho,alto)
	//p.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);
	p.focus()	
}

function visualiza(x){
	info.style.top= event.clientY
	info.style.left= event.clientX + 30
	datos.innerHTML=x;
	info.style.visibility="visible";
}