function printerFriendly() {
	var newWindow = window.open("", "Tutorial", "location=1,status=1,scrollbars=1,menubar=1,height=300,width=520");

	var tutorialDiv = $(".tutorial:first");
	var styles = document.getElementsByTagName("style")[0];

	newWindow.document.write("<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'>");
	newWindow.document.write("<html xmlns:v='urn:schemas-microsoft-com:vml'");
	newWindow.document.write("xmlns:o='urn:schemas-microsoft-com:office:office'");
	newWindow.document.write("xmlns:w='urn:schemas-microsoft-com:office:word'");
	newWindow.document.write("xmlns:m='http://schemas.microsoft.com/office/2004/12/omml'");
	newWindow.document.write("xmlns='http://www.w3.org/TR/REC-html40'>");

	newWindow.document.write("<head>");
	newWindow.document.write("<link rel='stylesheet' href='css/default.css' charset='utf-8' />");
	newWindow.document.write("<style>" + styles.innerHTML + "</style>");
	newWindow.document.write("</head>");

	newWindow.document.write("<body style='tab-interval:36.0pt;background-color:white'>" + tutorialDiv.html() + "</body>");
	newWindow.document.write("</html>");
}

var MenuStuff = {

	timeout: 500,
	closetimer: 0,
	ddmenuitem: 0,

	jsddm_open: function() {
		MenuStuff.jsddm_canceltimer();
		MenuStuff.jsddm_close();
		MenuStuff.ddmenuitem = $(this).find('ul').css('visibility', 'visible');
	},

	jsddm_close: function() {
		if (MenuStuff.ddmenuitem)
			MenuStuff.ddmenuitem.css('visibility', 'hidden');
	},

	jsddm_timer: function() {
		MenuStuff.closetimer = window.setTimeout(MenuStuff.jsddm_close, MenuStuff.timeout);
	},

	jsddm_canceltimer: function() {
		if (MenuStuff.closetimer) {
			window.clearTimeout(MenuStuff.closetimer);
			MenuStuff.closetimer = null;
		}
	}
}

function initMenu() {
	var v = $('#menuID > li');

	v.bind('mouseover', MenuStuff.jsddm_open);
	v.bind('mouseout', MenuStuff.jsddm_timer);

	document.onclick = MenuStuff.jsddm_close;

	// make any AdSense ads that are flash based transparent
	var flashObject = $("#banner iframe:first body object");

	flashObject.find("param[name='wmode']").attr("value", "opaque");
	flashObject.find("embed").attr("wmode", "opaque");
}
