var mmOpenContainer = null;
var mmOpenMenus = null;
var mmHideMenuTimer = null;

var gAutoPrint = true; // Flag for whether or not to automatically call the print function



function printFriendly()

{

	if (document.getElementById != null)

	{

	

var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html  xmlns="http://www.w3.org/1999/xhtml">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n';

		if (document.getElementsByTagName != null)

		{

			var headTags = document.getElementsByTagName("head");

			if (headTags.length > 0)

				html += headTags[0].innerHTML;

		}

		

		html += '\n</HE' + 'AD>\n<BODY style="font-family:arial,helvetica;font-size:12px">\n';

		

		var printPageElem = document.getElementById("printFriendly");

		

		if (printPageElem != null)

		{

				html += printPageElem.innerHTML;

		}

		else

		{

			alert("Could not find the printReady section in the HTML");

			return;

		}

			

		html += '\n</BO' + 'DY>\n</HT' + 'ML>';

		

		var printWin = window.open("","printReady");

		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.");

	}

}

