$(document).ready(function(){


  $('.speakerPopout').live('click',
    function(e) {
      e.preventDefault();
      var url = $(this).attr('href');
      window.open(url, 'BotB_Radio', 'scrollbars=yes, menubar=no, height=180, width=560, resizable=1, toolbar=no, location=no, status=no');
    }
  );


  $('.searchInput').focus(function()  {
    if ($(this).attr('value')=='Search...') {
      $(this).removeClass('tb0');
      $(this).addClass('t0');
      $(this).attr('value','');
    }
  }).blur(function()  {
    if ($(this).attr('value')==='') {
      $(this).attr('value','Search...');
      $(this).removeClass('t0');
      $(this).addClass('tb0');
    }
  });


  $('a.LoginLink').click(
    function(event)  {
      event.preventDefault();
      $(this).css('cursor','pointer');
      if ($('#LoginForm').is(':hidden'))  {
        $('#StatusBoxBottomRow').slideUp('fast');
        $('#LoginForm').slideDown('fast');
      }
    }
  );

  $('a.LoginClose').css('cursor','pointer');
  $('a.LoginClose').click(
    function()  {
      $(this).css('cursor','pointer');
      if ($('#LoginForm').is(':visible'))  {
        $('#StatusBoxBottomRow').slideDown('fast');
        $('#LoginForm').slideUp('fast');
      }
    }
  );


  $('.closeTab').fadeIn(600).click(
    function(e) {
      e.preventDefault();
      $(this).fadeOut(100).parent().slideUp(400);
    }
  );


});
