// 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;}.gray_heading_left,.gray_heading_center,.heading_cell_div{background-color: #cccccc; margin-top: 1em;}</style>';
		
		html += '\n</HE' + 'AD>\n<BODY>\n' + '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="150"><img src="/images/logos/afta/printer_friendly.gif" width="150" height="109" alt="Americans for the Arts logo"></td><td align="right">SERVING COMMUNITIES.  ENRICHING LIVES.</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="right"><strong>Washington DC Office</strong><br />1000 Vermont Avenue NW<br />6th Floor<br />Washington DC 20005<br />T 202.371.2830<br />F 202.371.0424</td><td align="left"><strong>New York City Office</strong><br />One East 53rd Street<br />2nd Floor<br />New York, NY 10022<br />T 212.223.2787<br />F 212.980.4857</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.");
	}
}

