// Gets an Images Filename without the path and extension.
function FileName( szFile, iTrim )
{   return szFile.substring(szFile.lastIndexOf("/") + 1, szFile.length - iTrim);
}

// Image Mouse Over/Out Effects
function MEffect( oEvent, szDir )
{  var oTarget;
  if( oEvent.srcElement ) oTarget = oEvent.srcElement;
  else if( oEvent.target ) oTarget = oEvent.target;

  switch( oEvent.type )
  {
     case "mouseover":
        oTarget.src = szDir + "/" + FileName(oTarget.src, 6) + "_1.png";
        oTarget.style.cursor = 'default';
     break;

     case "mouseout":
        oTarget.src = szDir + "/" + FileName(oTarget.src, 6) + "_0.png";
        oTarget.style.cursor = 'default';
     break;
  }
  window.status = '';
}