

var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printFriendly()

{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD><link href=Style.css rel=stylesheet media=all type=text/css>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td width=275 valign="top"><a href=index.php><img src=images/logo-print.jpg width=275 height=73 border=0></a></td><td valign="top"><div align="right"><table border="0" cellpadding="0" cellspacing="0" class="elevenTop"><tr><td height="37" align="left" valign="bottom"><font color="#0D5E57" class="twelve"><strong>Philadelphia</strong></font><br>215.979.8200</td><td width="10" align="right" valign="bottom"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td><td align="left" valign="bottom"><font color="#0D5E57" class="twelve"><strong>York</strong></font><br>717.854.9506</td><td width="10" align="right" valign="bottom"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td><td align="left" valign="bottom"><font color="#0D5E57" class="twelve"><strong>Lancaster</strong></font><br>717.285.2005</td><td width="10" align="right" valign="bottom">&nbsp;</td><td align="left" valign="bottom"><font color="#0D5E57" class="twelve"><strong>Wilmington</strong></font><br />302.656.3301</td><td width="10" align="right" valign="bottom">&nbsp;</td><td align="left" valign="bottom"><font color="#0D5E57" class="twelve"><strong>New York</strong></font><br>212.791.0340</td><td width="3"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td></tr></table></div></td></tr><tr><td valign="top">&nbsp;</td><td valign="top">&nbsp;</td></tr></table>\n';

		
		var printPageElem = document.getElementById("printFriendly");
		
		if (printPageElem != null)
		{
				html += printPageElem.innerHTML;
		}
		else
		{
			alert("Could not find the printFriendly section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printFriendly");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the printer friendly feature works\nonly in javascript enabled browsers.");
	}
}

