function click() 
 {
 if (event.button==2) 
 {
 alert('© www.JAPONOLOGIA.com')
 }
 }
 document.onmousedown=click


 
 
function winOpencon(url,name,width,height) {
    window.open(url,name,'location=no,resizable=no,scrollbars=yes,status=no,height='+height+',width='+width);
}



function winOpensin(url,name,width,height) {
    window.open(url,name,'location=no,resizable=no,scrollbars=no,status=no,height='+height+',width='+width);
}


function foto(imagen,titulo,anchura,altura,texto1,texto2)

 {
        anchura = parseInt (anchura) ;
        altura = parseInt (altura) ;

        var medidas = "" ;
        medidas    += "height=" + (altura+130) ;
        medidas    += ",width=" + (anchura+55) ;

        var newVentana = parent.window.open("","ventana",medidas);

        if (newVentana != null) {
  var donde=window.location.href;
  var donde2=unescape(donde.substring(0,(donde.lastIndexOf("b")) + 0)) // Miro el path de la p·gina para darle el mismo a la imagen.

                var newContenido = '<HTML><HEAD><TITLE>' + titulo + '</TITLE></HEAD>' ;
                newContenido += '<BODY BGCOLOR="white" TEXT="#427BFF"><BR><CENTER><IMG SRC="' ;

     if ((navigator.userAgent.indexOf("Mac")) == -1) 
     {
                   /* newContenido += donde2 */
     }

                newContenido += '';                 
                newContenido += imagen ;
     newContenido += '" ' ;
     newContenido += 'width=' + anchura + 'height=' + altura ;
                newContenido += "><br><table><tr><td><FONT face='Arial, Helvetica, sans-serif' size='2'>" +texto1 +"<br>" +texto2 + "</FONT></td></tr></table></CENTER></BODY>" ;
                newContenido += '<FORM><CENTER><INPUT TYPE="button" VALUE="Cerrar" ONCLICK="self.close()"></FORM></CENTER></HTML>' ;

                newVentana.document.write(newContenido) ;
                newVentana.document.close() ;
        }
}


function addBookmark() {
  if (window.external)
    external.AddFavorite(location.href)
  else
    alert("Tu explorador no tiene esta función.");
}



