// JavaScript Document
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=755,height=600,left = 232,top = 84');");
}

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<html>\n<head>\n';
		//html += '<link rel="stylesheet" type="text/css" href="http://www.ncsu.edu/greeklife/includes/main.css">';
		html += '\n<link rel="stylesheet" type="text/css" href="http://www.ncsu.edu/greeklife/includes/print.css">';
		html += '\n</he' + 'ad>\n<body class="template">\n';
		// begin new HTML top
		html += '<table border="0" width="100%">\n';
		html += '<tr>\n'
		html += '<td><img src="/greeklife/includes/images/print_logo.gif" border="0" alt="NC State University Greek Life [www.ncsu.edu/greeklife]">\n';
		html += '</td>\n';
		html += '<td width="75%" valign="bottom"><h1>NC State University Greek Life</h1>\n';
		html += '</td>\n';
		html += '</tr>\n';
		html += '<tr>\n'
		html += '<td colspan="2"><hr size="1" color="#000000" />\n';
		html += '</td>\n';
		html += '</tr>\n';
		html += '</table>\n';

		if (document.getElementsByTagName != null)
		{
			//var headTags = document.getElementsByTagName("head");
			var headTags = document.getElementsByTagName("title");
			if (headTags.length > 0) {
				html += '<h2>' + headTags[0].innerHTML + ''; 
				html += '</h2>'
					}
		}
		

		html += '<br />\n';
		// end new HTML top
		
		
		var printReadyElem = document.getElementById("printready");
		
		if (printReadyElem != null)
		{
				html += '' + printReadyElem.innerHTML ;
		}
		else
		{
			alert("Could not find the printready section in the HTML");
			return;
		}

		// begin new HTML bottom
		html += '<br /><hr size="1" color="000000" />&copy;2008 NC State University Greek Life';
		// end new HTML bottom
			
		html += '\n</bo' + 'dy>\n</ht' + 'ml>';
		var printWin = window.open("","printSpecial","scrollbars=1,menubar=1,width=755,height=600,left=0,top=0");
		printWin.document.open();
		printWin.document.write(html);
		printWin.print();
		printWin.document.close();
		//if (gAutoPrint) 
			//loadStyles(printWin);
			//printWin.focus();
			//printWin.print();
			//setTimeout(printWin.close,5000);
	}
	else
	{
		alert("Sorry, the print ready feature is only available in javascript-enabled browsers.");
	}
}

// End -->