// JavaScript Document

function $(strId){
	return document.getElementById(strId);
}

function hoverImages(context){
  var img = $(context).getElementsByTagName('img');
  for (i = 0; i<img.length; i++) {
   
    var myimages=new Array()
    myimages[i]=new Image()
    myimages[i].src=img[i].src.replace(".gif", "_hover.gif");

    img[i].onmouseover = function(){
      this.src = (this.src.indexOf("_hover") == -1)? this.src.replace(".gif", "_hover.gif"):this.src;     
    }
    img[i].onmouseout = function(){
      this.src = (this.src.indexOf("_hover") != -1)? this.src.replace("_hover.gif", ".gif"):this.src;    
    }
  }
}
