$(document).ready(function() {
  $("#menu img").each(function() {
    rollsrc = $(this).attr("src");
    rollON = rollsrc.replace(/.jpg$/ig,"Over.jpg");
    $("<img>").attr("src", rollON);
  });
  $("#menu a").mouseover(function(){
    imgsrc = $(this).children("img").attr("src");
    if (imgsrc) {
      matches = imgsrc.match(/Over/);
    }
    else {
      matches = true;
    }
    if (!matches) {
      imgsrcON = imgsrc.replace(/.jpg$/ig,"Over.jpg"); // strip off extension
      $(this).children("img").attr("src", imgsrcON);
    }
  });
  $("#menu a").mouseout(function(){
    $(this).children("img").attr("src", imgsrc);
  });

  /*
  $("#td_NewInventory").mouseover(function(){
  	$("#dd_NewInventory").animate({height:"show",opacity:"show"},"slow"); return false;
  });
  $("#td_NewInventory").mouseout(function(){
    $("#dd_NewInventory").animate({height:"hide",opacity:"hide"},"slow"); return false;
  });
  $('#td_NewInventory').mouseover(function() {$(this).children("div").show();});
  $('#td_NewInventory ul li').mouseover(function() {$('#dd_NewInventory ul').show();}).mouseout(function(){$("#dd_NewInventory").hide();});
  */
  
  $('#td_NewInventory').hover(function() {$('#dd_NewInventory', this).show();}, function() {$('#dd_NewInventory', this).hide();});
	
	$('#td_UsedInventory').hover(function() {$('#dd_UsedInventory', this).show();}, function() {$('#dd_UsedInventory', this).hide();});

});