<!--

var gdsImageArray = new Array;
gdsImageArray['Button1'] = new gdsObjImg('Button1','images/rh/home.jpg','images/rh/home1.jpg','images/rh/home1.jpg');
gdsImageArray['Button2'] = new gdsObjImg('Button2','images/rh/servicios.jpg','images/rh/servicios1.jpg','images/rh/servicios1.jpg');
gdsImageArray['Button3'] = new gdsObjImg('Button3','images/rh/clientes.jpg','images/rh/clientes1.jpg','images/rh/clientes1.jpg');
gdsImageArray['Button4'] = new gdsObjImg('Button4','images/rh/busquedas.jpg','images/rh/busquedas1.jpg','images/rh/busquedas1.jpg');
gdsImageArray['Button5'] = new gdsObjImg('Button5','images/rh/articulos.jpg','images/rh/articulos1.jpg','images/rh/articulos1.jpg');
gdsImageArray['Button6'] = new gdsObjImg('Button6','images/rh/seleccion.jpg','images/rh/seleccion1.jpg','images/rh/seleccion1.jpg');
gdsImageArray['Button7'] = new gdsObjImg('Button7','images/rh/clima.jpg','images/rh/clima1.jpg','images/rh/clima1.jpg');
gdsImageArray['Button8'] = new gdsObjImg('Button8','images/rh/cultura.jpg','images/rh/cultura1.jpg','images/rh/cultura1.jpg');


function gdsLoadImg(URL)
{
  if (document.images) 
  {
    newImg = new Image();
    newImg.src = URL;
    return newImg;
  }
}

function gdsObjImg(imgName,offImgURL,overImgURL,onImgURL)
{
  this.name = imgName
  this.state = "off";
  if (offImgURL) {this.offImg = gdsLoadImg(offImgURL);}
  if (overImgURL) {this.overImg = gdsLoadImg(overImgURL);}
  if (onImgURL) {this.onImg = gdsLoadImg(onImgURL);}
}

function gdsSwapImg(imgArray,imgName,newState)
{
  var thisState = imgArray[imgName].state;
  if(newState=="over" && thisState != "on" && imgArray[imgName].overImg)
  {
    document.images[imgName].src = imgArray[imgName].overImg.src;
    imgArray[imgName].state = "over";
  }
  if(newState=="off" && thisState != "on" && imgArray[imgName].offImg)
  {
    document.images[imgName].src = imgArray[imgName].offImg.src;
    imgArray[imgName].state = "off";
  }
  if(newState=="on")
  {
    for(i=0;i<imgArray.length;i++)
    {
      thisImage = imgArray[i].name;
      thisState = imgArray[i].state;
      if(thisImage == imgName.name)
      {
        document.images[thisImage].src = imgArray[i].onImg.src;
        imgArray[i].state = "on";
      }
      else
      {
        document.images[thisImage].src = imgArray[i].offImg.src;
        imgArray[i].state = "off";
      }
    }
  }
}

function gdsMakeImgArray(n)
{
	this.length = n;
	for (var i = 1; i <= n; i++)
	{
		this[i] = 0
	}
	return this
}
//-->
