function nav_button_change( change, element )
{
	var button = document.getElementById( 'navigation_' + element );
	if( change == "over" ) 
		button.src = "./navigation/images/active/" + element + ".gif";
	else if( change == "out" ) 
		button.src = "./navigation/images/inactive/" + element + ".gif";
	else if( change == "click" ) 
		button.src = "./navigation/images/current/" + element + ".gif";
	return true;
}
function pingupopup( level, type, number )
{
	var popup;
	popup = window.open( 
		'/popups/module.cfm?level=' + level + '&type=' + type + '&number=' + number, 
		'pingupopup',
		'alwaysRaised=yes,channelmode=yes,dependent=yes,directories=no,' +
		'fullscreen=yes,hotkeys=no,menubar=no,status=no,' +
		'titlebar=no,toolbar=no,left=0,top=0,screenX=0,screenY=0,z-lock=yes' 
	);
}
function maximisewindow()
{
	var w = screen.availWidth||screen.width;
	var h = screen.availHeight||screen.height;
	window.moveTo( 0, 0 );
	window.resizeTo( w, h );
}
function maximisemodule()
{
	alert(screen.width);
	var w = screen.availWidth||screen.width;
	var h = screen.availHeight||screen.height;
	document.getElementById( 'module' ).style.width = ( w - 10 ) + "px";
	document.getElementById( 'module' ).style.height = ( h - 60 ) + "px";
}