
jQuery(document).ready(function($) {
  jQuery.prompt.setDefaults( {
    top : "30%",
    opacity : 0.8,
    promptspeed : 'slow',
    persistent : false
  });

  $('#menu_search').click(function() {
    $('#menu_search').attr('value', '');
  });
  $('#menu ul li').hover(function() {
    $('ul', this).stop(true, true);
    $('ul', this).slideDown(0);
  }, function() {
    $('ul', this).stop(true, true);
    $('ul', this).delay(400).slideUp(0);
  });
  
  $('#top_info').hover(function() {
    $('#top_info #top_info_logo', this).stop(true, true);
    $('#top_info #top_info_logo').animate({opacity:1},1500);
  }, function() {
    $('#top_info #top_info_logo', this).stop(true, true);
    $('#top_info #top_info_logo').animate({opacity:0},1500);
  });
  
  $('#menu ul li ul li').hover(function() {
    $(this).addClass('visible');
  }, function() {
    $(this).removeClass('visible');
  });

  var tabContainers = $('div.tabs > div');
  tabContainers.hide().filter(':first').show();

  $('ul.tabNavigation a').click(function() {
    tabContainers.hide();
    tabContainers.filter(this.hash).show();
    $('ul.tabNavigation a').removeClass('selected');
    $(this).addClass('selected');
    return false;
  }).filter(':first').click();
  
  $('#same_game').click();
  
  $('.select_input').click(function() {
    this.select();
  });

});

