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

//jQuery stuff here...

//Comment preview:
jQuery('#comment').one("focus", function() {
    	jQuery('#comment').parent().after('<div id="preview-box"><div class="comment-by">Live Comment Preview</div><div id="live-preview"></div></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 />');
		jQuery('#live-preview').html( $comment );

   });
   
	jQuery('#comment').blur(function(){
		jQuery('#preview-box').hide('fast');
   		});
		
	jQuery('#comment').focus(function(){
		jQuery('#preview-box').show('fast');
   		});

 });

