
var i 

function LoadImage(src) {
preview = window.open("", "preview", "left=0,top=0,resizable=yes,width=200,height=1");
preview.document.write("Cargando imágenes... un momento por favor");
i = new Image
i.onload = doLoad;
i.src = src
}
function doLoad() {
Start(i.src, this.width-20, this.height-20)
}
function Start(URL, WIDTH, HEIGHT) {

text = "<html><head><title>Imágenes Espartero y Sagasta<\/title><\/head><body onload='focus(); select()' bgcolor='d0e0f0'";
text += "><center><a href='javascript:window.close()'><img src='" + URL + "' name='pop' border=0 alt='Con clic se cierra la ventana' onload='window.resizeTo(" + (WIDTH+50) + "," + (HEIGHT+80) + ")'><\/A>";
text += "<\/center><\/body><\/html>";

preview.document.open();
preview.document.write(text);
}

function FocusModalWin(){
if (ModalWin && !ModalWin.closed) {
	ModalWin.focus();
	}	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("##")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


if (document.all)
{
document.onmousedown=new Function("if (event.button==2) alert('bermemar.com')")
}

