function printpage()
{
	var winwidth	= ( screen.width  > 800 ) ? '820' : '750';
	var winheight	= ( screen.height > 600 ) ? '620' : '450';
	var winleft	= ( screen.availWidth  - 10 - winwidth  ) / 2;
	var wintop	= ( screen.availHeight - 20 - winheight ) / 2;

	printable = window.open('/engine/print/'+escape(location.href), 'printable', 'toolbar=yes, scrollbars=yes, resizable=yes, menubar=yes, status=yes, directories=no, location=no, top=' + wintop + ',left=' + winleft + ', screenY=' + wintop + ',screenx=' + winleft +', width='+winwidth+', height='+winheight);
	printable.focus();
	printable.print();
}

function emailpage()
{
	var winwidth	= '450';
	var winheight	= '510';
	var winleft	= ( screen.availWidth  - 10 - winwidth  ) / 2;
	var wintop	= ( screen.availHeight - 20 - winheight ) / 2;

	email = window.open('/engine/email/'+escape(location.href), 'email', 'toolbar=no, scrollbars=no, resizable=no, menubar=no, status=yes, directories=no, location=no, top=' + wintop + ',left=' + winleft + ', screenY=' + wintop + ',screenx=' + winleft +', width='+winwidth+', height='+winheight);
	email.focus();
}



function togglemenu(item) {
	item = document.getElementById(item);
	
	if (item.className == 'dropdown') {
		item.className = 'dropdownvis';
	} else {
		item.className = 'dropdown';
	}
}

function toggleitemhover(item, hovering) {
	
	if (hovering == false) {
		item.className = 'menuitem';
	} else {
		item.className = 'menuitemhov';
	}
}
