$(document).ready(function(){
	/*share pop-up*/
	$('.breadCrumbsShareDiv #shareThisLink a').click(function(event){
		event.preventDefault();
		$('.breadCrumbsShareDiv #messageForm').slideDown('slow', function() {
			// Animation complete.
		});
	});
	
	$('.breadCrumbsShareDiv #closeBox').click(function(event){
		event.preventDefault();
		$('.breadCrumbsShareDiv #messageForm').slideUp('slow', function() {
			// Animation complete.
		});
	});
	

	$('#thankYouCloseBox').click(function(event){
		event.preventDefault();
		$('#thankYouMessageForm').slideUp('slow', function() {
			// Animation complete.
		});
	});
	
	/*FAQ share pop-up*/
	$('.faqShareThisLink a').click(function(event){
		event.preventDefault();
		$(this).parents('.answerFooter').find('.faqMessageForm').slideDown('slow', function() {
			// Animation complete.
		});
	});
	
	$('.faqCloseBox').click(function(event){
		event.preventDefault();
		$(this).parents('.answerFooter').find('.faqMessageForm').slideUp('slow', function() {
			// Animation complete.
		});
	});
});

function displayHTML(printContent) {
var htmlHead = "<html><head>" +
	"<link rel='stylesheet' type='text/css' href='/Sites/NewListerine/Styles/NewListerine.css' />" +
	"<link rel='stylesheet' type='text/css' href='/Sites/NewListerine/Styles/Print.css' />" +
	"</head><body onLoad='window.print()'>";
var logo = document.getElementById('printLogo').innerHTML;
var heading = "<h1>" + document.getElementsByTagName('h1')[0].innerHTML + "</h1>";
var inf = printContent;
var printFooter = document.getElementById('printFooter').innerHTML;
var htmlFooter = "</body></html>";

var newHTML = htmlHead + logo +heading + inf + printFooter + htmlFooter;

win = window.open("print.htm", 'popup', 'toolbar = no, status = no,width=800,height=600, scrollbars=yes');
win.document.write(newHTML);
win.document.close();
};
