// lyteboxTitleReplace.js

// CODE BELOW REPLACES LYTEBOX 'title' ATTRIBUTES WITH  
// 'alt' ATTRIBUTES

function createImageTooltips()
{
var imgList = document.getElementsByTagName('img');
for( var i = 0; i < imgList.length; i++ )
{
  // See if there's alt we can use for title - this "fixes" FF displaying the title and not the alt!
  var alt= imgList[i].getAttribute("alt");
  if( alt )
  {
  // Use alt text to modify title
  imgList[i].setAttribute("title",alt);
  }
}
}
function attachBehaviors()
{
// Create image tooltips
createImageTooltips();
}
window.onload = attachBehaviors;