//PRINT PAGE
var gAutoPrint = false; // Flag for whether or not to automatically call the print function
function printSpecial()
{
	if (document.getElementById != null)
	{
		var csspath = ""

		// For getting current year
		var time = new Date();
		var year = time.getFullYear();

		// Print Variable
		var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HEAD>\n';
		html += '\n<LIN' + 'K REL="stylesheet" HREF="'+csspath+'print.css" TYPE="text/css">';
		html += '\n</HE' + 'AD>\n<BODY class="print">\n';
		html += '\n<TABLE cellpadding="5" cellspacing="5" border="0" width="100%" align="center">\n<TR><TD bgcolor="#FFFFFF">\n';

		// For adding logo to Print Page
		html += '\n<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">\n<TR><TD bgcolor="#FFFFFF"><div style="margin-bottom: 5px; border-bottom: 1px solid #333; font-size: 20px;  font-weight: bold; margin-bottom: 2px;">Philanthropy.NYU</div>\n';
		html += '\n</TD></TR></TABLE>';

		// Actual content
		var printReadyElem = document.getElementById("printReady");
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			print();
			return;
		}
		html += '\n</TD></TR></TABLE>';

		// Copyright
		html += '\n<TABLE cellpadding="5" cellspacing="5" border="0" width="600" align="center">\n<TR><TD bgcolor="#FFFFFF">';
		html += '\n<div align="center"><font size="1">&copy;';
		html += year;
		html += ' The George Heyman, Jr. Center for Philanthropy and Fundraising</font></div>';
		html += '\n</TD></TR></TABLE>';

		// End body and html tags
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';

		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		print();
	}
}
// RESIZE TEXT
function resizeup() {
	if(!document.getElementById('txtResizeBox').style.fontSize){
		document.getElementById('txtResizeBox').style.fontSize = '110%';
	} else {
		var str_fontsize = document.getElementById('txtResizeBox').style.fontSize;
		var num_fontsize = str_fontsize.substring(0,str_fontsize.length-1);
		//alert(num_fontsize);
		var num_newsize = num_fontsize * 1.1;
		document.getElementById('txtResizeBox').style.fontSize = num_newsize + '%';
	}
}

function resizedown() {
	if(!document.getElementById('txtResizeBox').style.fontSize){
		document.getElementById('txtResizeBox').style.fontSize = '90%';
	} else {
		var str_fontsize = document.getElementById('txtResizeBox').style.fontSize;
		var num_fontsize = str_fontsize.substring(0,str_fontsize.length-1);
		//alert(num_fontsize);
		var num_newsize = num_fontsize * 0.9;
		document.getElementById('txtResizeBox').style.fontSize = num_newsize + '%';
		//alert(num_newsize + '%');
	}
}
//EMAIL PAGE
function mailpage()
{
mail_str = "mailto:?subject=Philanthropy.NYU Article" // + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}