// 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, 4) + "_.png";
         oTarget.style.cursor = 'pointer';
      break;

      case "mouseout":
         oTarget.src = szDir + "/" + FileName(oTarget.src, 5) + ".png";
         oTarget.style.cursor = 'default';
      break;
   }
   window.status = '';
} 
