PositionX = 0;
PositionY = 0;
defaultWidth  = 200;
defaultHeight = 200;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=200,height=150,left='+PositionX+',top='+PositionY;
function popupImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>loading ...</title><style>body  {margin:0px;} </style>');
writeln('<sc'+'ript>');
writeln(' var message="";');
writeln(' function clickIE() {if (document.all) {(message);return false;}}');
writeln(' function clickNS(e) {if ');
writeln(' (document.layers||(document.getElementById&&!document.all)) {');
writeln(' if (e.which==2||e.which==3) {(message);return false;}}}');
writeln(' if (document.layers) ');
writeln(' {document.captureEvents(Event.MOUSEDOWN);');writeln(' document.onmousedown=clickNS;}');
writeln(' else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}');
writeln(' document.oncontextmenu=new Function("return false")');
writeln('</sc'+'ript>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["ELMS"].width;');writeln('window.innerHeight=document.images["ELMS"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
writeln('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="yes" onload="reSizeToImage();doTitle();self.focus()"  onClick="self.close()" >')
else writeln('</head><body bgcolor=000000 scroll="yes" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()" onClick="self.close()" >');
writeln('<img name="ELMS" src='+imageURL+' style="display:black">');
writeln('<sc'+'ript>');
writeln('var message = "Imprimir/Print";');
writeln('function printpage() {');
writeln('window.print();  ');
writeln('}');
writeln('document.write("<form><input type=button "');
writeln('+"value=\""+message+"\" onClick=\"printpage()\"></form>");');
writeln('</sc'+'ript>');
writeln('</body></html>');
close();
}}
function xp(obj){
	var aux;
	aux=eval(obj);
	aux.style.display = (aux.style.display == "none" ) ? "inline" : "none";
}
function ejs_img_fx(img){
        if(img && img.filters && img.filters[0]){
                img.filters[0].apply();
                img.filters[0].play();
        }
}
