/* This function makes the current window expand to fill almost the whole screen.
 *
 * The -4 and +8 are to make the window appear 'maximised'.  If this is not desired
 *  then change the -4's to 0's and remove the +8's.
 */

void function expand()
{
    return;
	try
	{
		window.moveTo(-4,-4);
		window.resizeTo(screen.availWidth+8, screen.availHeight+8);
	}
	catch(e)
	{
		try
		{
			window.moveTo(0,0);
			window.resizeTo(screen.availWidth, screen.availHeight);
		}
		catch(e) {}
	}
}