// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

jQuery.noConflict();

function switchWith(item1, id)
{
  jQuery(item1).slideUp('slow');
  jQuery('#'+id).slideDown('slow');
}

function toggleFade(item)
{
  if (jQuery(item).css('display') == 'none')
  {
    jQuery(item).fadeIn('slow');
  }
  else
  {
    jQuery(item).fadeOut('slow');
  }
}

function toggleSlide(item)
{
  if (jQuery(item).css('display') == 'none')
  {
    jQuery(item).slideDown('slow');
  }
  else
  {
    jQuery(item).slideUp('slow');
  }
}

jQuery(function() {
  jQuery('.help').fadeIn('slow');
  jQuery('.success').fadeIn('slow');
  jQuery('.error').fadeIn('slow');
  jQuery('.notice').fadeIn('slow');
  jQuery('#errorExplanation').fadeIn('slow');

  jQuery('#classified-images .classified-thumbnail a').lightBox({fixedNavigation:true});
});