$(function() {	
	
	// when the print button is clicked, show all tabs, print, then hide what was hidden before
	$("#productPrint").click(function() {
		var state = null;
		//save the current state of the tabs
		if ($('#productFeatures').css("display") == "none") {
			state = true;
		} else {
			state = false;
		}

		//show both
		$('#productFeatures').show();
		$('#productSpecifications').show();
		
		//print
		javascript:window.print()
		
		//hide the one that was hidden before the print		
		if (state == true) {
			$('#productFeatures').hide();
		} else {
			$('#productSpecifications').hide();
		}

	});
	
});
