// JavaScript Document
// Gets an Images Filename without the path and extension.
function FileName( szFile, iTrim )
{ 

return szFile.substring(szFile.lastIndexOf("/") + 0, 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) + ".jpg";
			 
     break;

     case "mouseout":
        oTarget.src = szDir + "/" + FileName(oTarget.src, 4) + ".jpg";
	  break;
  }
}
