<!-- Begin
function ArrayImageLink(idImg,idLink)
{
   this.images=new Array();
   this.links=new Array();
   this.titles=new Array();
   this.rand=0;
   this.linkID=null;
   this.imageID=null;
   
   if (arguments.length==2)
   {
      this.linkID=arguments[1];
      this.imageID=arguments[0];
   }
   else if (arguments.length==1)
      this.imageID=arguments[0];
 
   this.addImageLink=function(src,link,title)
   {
      this.images[this.images.length]=src;
      if (arguments.length>1) 
         this.links[this.links.length]=link;
      if (arguments.length==3) 
         this.titles[this.titles.length]=title;
   }
   this.random=function()
   {
      var imgnum = this.images.length;
      var randnum = Math.random();
      this.rand = Math.round((imgnum - 1) * randnum);
   }
   this.modifyImage=function()
   {
      
      if (this.imageID==null) return false;
 
      var img = document.getElementById(this.imageID);
      img.src = this.images[this.rand];
      img.title = this.titles[this.rand];
      return true;
   }
   this.modifyLink=function()
   { 
      if (this.linkID==null) return false;
 
      var eleA = document.getElementById(this.linkID);
      eleA.href=this.links[this.rand];
      return true;
   }
}
//arImgLink.addImageLink("images/bola_###.gif","###.htm","###");
 
function swapPic() {
arImgLink=new ArrayImageLink("randimg","link");
arImgLink.addImageLink("fotos/fotocapa01.jpg","","Imag&eacute;tica Photo Press");
arImgLink.addImageLink("fotos/fotocapa02.jpg","","Imag&eacute;tica Photo Press");
arImgLink.addImageLink("fotos/fotocapa03.jpg","","Imag&eacute;tica Photo Press");
arImgLink.addImageLink("fotos/fotocapa04.jpg","","Imag&eacute;tica Photo Press");
arImgLink.random();
arImgLink.modifyImage();
//arImgLink.modifyLink();
}
//  End -->
