$(document).ready(function() {
	$('p#shareThis').hide();
	$('#iframeContainer').hide();
});
   
$(document).ready(function() {
   
	$('a#share').click(function(){
		$('#shareThis').slideToggle('fast');
     	return false;
  	});

	var $comment = ''; // that's two single quotation-marks at the end
 	$('#addComment').keyup(function() {
    	$comment = $(this).val();
	    $comment = $comment.replace(/\n/g, "<br />").replace(/\n\n+/g, '<br /><br />').replace(/(&lt;\/?)script/g,"$1noscript");
    	$('#livePreview').html( $comment );
    });

	$('#emailThis').click(function(){
		$('#iframeContainer').slideToggle('fast');
		return false;
	});
	
	$('.pullquote').each(function() { 
		$(this.parentNode).before('<blockquote class="pullquote"><p>' + $(this).html() + '<\/p><\/blockquote>');
	});
	

if(getCookie('commented')=='true'){deleteCookie('commented');document.getElementById('commented').style.display='block';}

});

function closeSend() {
$('#iframeContainer').hide('fast'); 
}

