// Printer-friendly format script written by Jamahl Epsicokhan


function printerFriendly() {
	if (document.getElementById("printarea")) {
		var content = document.getElementById("printarea").innerHTML;
		var printWindow = window.open('','printwindow','menubar=yes,toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no');
		printWindow.document.open();
		printWindow.document.write('<html><head><title>' + document.title + '<\/title>\n'
			+'<style type="text/css">\n'
			+'a:hover { color: red }\n'
			+'a:active { color: maroon }\n'
			+'.bodyCopy { font-size: 12pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.headLg  { font-size: 24pt; font-family: "Times New Roman", Times, serif }\n'
			+'.headMed  { font-weight: bold; font-size: 16pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.headSm { font-weight: bold; font-size: 12pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.headDrop { font-weight: bold; font-size: 14pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.headFeat  { font-size: 30pt; font-style: italic; font-family: "Times New Roman", Times, serif }\n'
			+'.headFeatDrop { font-weight: bold; font-size: 16pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.infoBox { font-size: 10pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'.pageDate { font-size: 12pt; font-family: Arial, Helvetica, sans-serif }\n'
			+'<\/style><\/head>\n'
			+'<body class="bodyCopy" bgcolor="white" text="black" link="navy" vlink="#696969" alink="red">\n'
			+'<img src="http://www.pantagraph.com/images/primary2001/printicon.gif" align="middle" width="15" height="12" border="0" alt=""> ');
		if (window.print) printWindow.document.write('<b><a href="javascript:window.print();">Print this page now<\/a><\/b><p>');
		else printWindow.document.write('<b>Select the <font color="maroon">File &gt; Print<\/font> menu option on your browser to print this page.<\/b><p>');
		printWindow.document.write(content
			+'<hr noshade size="1">Copyright &copy; 2004, Pantagraph Publishing Co. All rights reserved.'
			+'<img src="http://www.pantagraph.com/images/primary2001/print_tracker.gif" width="1" height="1" border="0" alt=""><p>'
			+'<a href="javascript:window.close()">Close window<\/a><\/body><\/html>');
		printWindow.document.close();
	}
}

if (document.getElementById) {
	if (window.location.href.indexOf("/ent/") != -1) {
		document.write('<a href="http://www.pantagraph.com/includes/printer_friendly.js"'
			+' onclick="printerFriendly(); return false;">'
		+'<img src="http://www.pantagraph.com/images/primary2001/printicon_blk.gif" align="middle" width="15" height="12" border="0" alt=""><\/a> ');
	}	
	else {
		document.write('<a href="http://www.pantagraph.com/includes/printer_friendly.js"'
			+' onclick="printerFriendly(); return false;">'
		+'<img src="http://www.pantagraph.com/images/primary2001/printicon.gif" align="middle" width="15" height="12" border="0" alt=""><\/a> ');
	}	

	document.write('<a href="http://www.pantagraph.com/includes/printer_friendly.js"'
		+' onclick="printerFriendly(); return false;">Printer-friendly format<\/a>');
}
