
jQuery.noConflict(); 

function ajaxEffect(content){
	jQuery(content).css({visibility:"hidden"}).fadeIn(1000).css({visibility:"visible"}).animate({opacity: 1.0}, 3000).fadeOut(1000);
}

function ajaxEffectIn(content){
	jQuery(content).css({visibility:"hidden"}).fadeIn(1000).css({visibility:"visible"});
}

jQuery(document).ready(function() {

  jQuery('#menu li').hover(function() {
    jQuery(this).addClass('sfhover');
  }, function() {
    jQuery(this).removeClass('sfhover'); 
  });

  jQuery('#menu a').removeAttr("title");
  
  jQuery('#comment').one('focus',function() { //Live Comments
    jQuery('.formcontainer').prepend('<div id="comment-live-preview"></div>');
  });
  
  var $comment = ''; // that's two single quotation-marks at the end
  jQuery('#comment').keyup(function() {
    $comment = jQuery(this).val();
    $comment = $comment.replace(/\n/g, "<br />").replace(/\n\n+/g, '<br /><br />').replace(/(<\/?)script/g,"$1noscript").replace(/\[quote[^>]*?]/, "<blockquote>").replace(/\[\/quote\]/, "</blockquote>");
    jQuery('#comment-live-preview').html( $comment );
  });

	
});
