//  This Code is subject to the terms, conditions, warranties, and disclaimers of the Webmonkey Public License, Version 1.0 located at http://www.hotwired.com/webmonkey/javascript/code_library/license/wpl.html. Original Code is (c) 1998 Wired Digital Inc. (and, if applicable, Modifications are (c) Date: _______________ Author: ________________; Author URL: ______________; Author Email:___________________). All Rights Reserved. This Code came from the Webmonkey Code Library located at http://www.hotwired.com/webmonkey/javascript/code_library/. Webmonkey is a registered trademark of Wired Ventures Inc.

function WM_preloadImages() {
  /*
  WM_preloadImages()
  Loads images into the browser's cache for later use.
  Source: Webmonkey Code Library
  (http://www.hotwired.com/webmonkey/javascript/code_library/)
  Author: Nadav Savio
  Author Email: nadav@wired.com
  Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
  */

    // Don't bother if there's no document.images
    if (document.images) {
      if (typeof(document.WM) == 'undefined'){
        document.WM = new Object();
      }
      document.WM.loadedImages = new Array();
      // Loop through all the arguments.
      var argLength = WM_preloadImages.arguments.length;
      for(arg=0;arg<argLength;arg++) {
        // For each arg, create a new image.
        document.WM.loadedImages[arg] = new Image();
        // Then set the source of that image to the current argument.
        document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
      }
    }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function AlternarImag (nombre, fuente) { 
     var VersionNav= navigator.appVersion
     var star=null;
    if (((navigator.appName == "Netscape") & (VersionNav.substring(0,1) >=3)) || (VersionNav.substring (0,1) >= 4)) {
     imagen = new Object();
     imagen = nombre;
     imagen.src = fuente;
    }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
