// JavaScript Document

<!-- This script may be freely distributed. -->
<!-- as long as these headers are left in place. -->

<!-- Momp's Web Design -->
<!-- http://www.mompswebdesign.com -->

var gAutoPrint = false; // Flag for whether or not to automatically call the print function

function printFriendly()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		html += '<title>' + document.title + '</title><style>body, div, li, td {font-size:15px;}body, li, h1, h2, h3, h4, h5, h6, td, div {color: #666666;}h1{font-size:19px;font-variant:small-caps;}h2,h3,h5{font-size:15px}h6{font-size:16px}#addresses {margin: 15px 0 10px 0;}#addresses td {padding: 0 10px 0 10px;width: 50%;}#tools{display:none;}</style>';
		
		html += '\n</HE' + 'AD>\n<BODY>\n' + '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="240"><img src="/images/printer_friendly.gif" width="240" height="72" alt="Arts & Business Council of New York logo"></td><td align="right"></td></tr></table><hr />';
		
		var printPageElem = document.getElementById("text");

var url = document.location.href;
		
		if (printPageElem != null)
		{
				html += printPageElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '<HR><center>' + url + '</center><table width="100%" id="addresses" cellpadding="0" cellspacing="0" border="0"><tr><td align="center"><strong>Arts &amp; Business Council of New York</strong><br />One East 53rd Street, 3rd Floor<br />New York, NY 10022<br />T 212.279.5910<br />F 212.279.5915<br />info@artsandbusiness-ny.org</td></tr></table>' + '\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.");
	}
}

