$(document).ready(function() {
	
  $('.fadeclass').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop(true, true).fadeTo(300, 1);
	  }, function () {
	    $span.stop(true, true).fadeTo(300, 0);
	  });
	});
  
  $('.fadeclassnav').append('<span class="hovernav"></span>').each(function () {
	  var $span = $('> span.hovernav', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop(true, true).fadeTo(300, 1);
	  }, function () {
	    $span.stop(true, true).fadeTo(300, 0);
	  });
	});
  
  $('#bottom_links').mouseover(function() {
    $('#bottom_links_expand').slideDown("slow");
  });
  
  $('body').dblclick(function() {
    $('#bottom_links_expand').slideUp('slow');
  });
  
  /* nav mouseover
  $('.nav_ele').hover(function () {
    $(this).css('background', 'url(images/nav_bg_over.jpg) repeat-x');
  }, function () {
    if ($(this).attr("id") != 'nav_table_first_ele')
      $(this).css('background', 'url(images/nav_break.jpg) no-repeat');
    else
      $(this).css('background', 'none');
  });
  */
});

