// JavaScript Document
window.onload = function(){iconswap();}
// if the above function dont work then calll the function from body tag like below
// <body onload="iconswap()">

function iconswap()
{

  var coll = document.getElementsByTagName("img");
   var divParent;
   var imgNew;
  for(var i=0; i<coll.length; i++)
  {
	  //For first image
      //place the absolute URL of the icon has to be swapped in this place (OLD ICON)

     if(coll[i].src == "http://image.coldwatercreek.com/Footer/rightArrow.gif")
     {
	imgNew = document.createElement('img');

     //place the URL of the icon that is going to swap the existing icon (NEW ICON)
      imgNew.src = 'http://image.coldwatercreek.com/Footer/rightArrow_Trans.gif';
   
      // give it an id
      imgNew.id = 'mainimage';
	  imgNew.border = '0';
	   imgNew.align = "absmiddle";

      // replace image
      divParent = coll[i].parentNode;
      divParent.replaceChild(imgNew, coll[i]);
	
     }
	 
	 

  }
}


