jQuery(document).ready(function($) {

	//Info Preview
	$('#session_list li').hover(function(){
    $(".hidden_block", this).slideDown('fast');
	}, function() {
		$(".hidden_block", this).stop(true, true).slideUp('fast');
	});
	
	// Comment Images
  $('#addCommentImage').click(function(){
  	var imageLoc = prompt('Enter the Image URL:');
  	if ( imageLoc ) {
      var img = new Image();
      img.src = imageLoc;
      if (img.width > 0) {
        $('#comment').val($('#comment').val() + '[img]' + imageLoc + '[/img] \n\n').focus();
      } else {
        alert('Please add a valid image');
      }
  	}
  	return false;
  });
  
  $(".fancybox").parents('div').addClass("fancy_div");
  $(".fancybox").parent('p').addClass("fancy_p");

	
});

