/*Activate MooTools for glossary hover*/
var font = null;

window.addEvent('domready', function() {
	var Glossary = new Tips($$('acronym'), { 
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	
	font = new Font(document.getElementById('main'), [0.9,1,1.1,1.2,1.3,1.4,1.6], {fx: {unit: 'em', duration:0}});
});

/**
 * Loads a page(popup) for the person to print out
 *
 * @param string term
 * @return boolean
 */
function showTerm(term) {
	var itemWin = window.open('/glossary/_single/' + escape(term), 'glossary_item', "width=500,height=600,statusbar=no,toolbar=no,menubar=yes,scrollbars=yes");	
	itemWin.focus();
	return true;
}