

// 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) + "_s.gif";
        if (oTarget.style.cursor != 'pointer')
        {
          oTarget.className = 'iselect';
          oTarget.width = oTarget.width + 20;
          oTarget.height = oTarget.height + 20;
        }
        oTarget.style.cursor = 'pointer';
        //oTarget.style.position = 'absolute';
     break;

     case "mouseout":
        //oTarget.src = szDir + "/" + FileName(oTarget.src, 5) + ".gif";
        if (oTarget.style.cursor = 'default')
        {
          oTarget.className = 'inormal';
          oTarget.width = oTarget.width - 20;
          oTarget.height = oTarget.height - 20;
        }
        oTarget.style.cursor = 'default';
        //oTarget.style.position = 'relative';
     break;
  }
  window.status = '';
}
