
	prompts_show_effect = false;
	prompts_hide_effect = false;

	window.addEvent ('load', function () {
		if ($('prompts'))
		{
			prompts_show_effect = new Fx.Style ('prompts', 'top', {duration: 1000, wait: false, transition: Fx.Transitions.Elastic.easeOut});
			prompts_hide_effect = new Fx.Style ('prompts', 'top', {duration: 400, wait: false, transition: Fx.Transitions.Quad.easeIn});
			$('prompts').addEvent ('click', hide_prompts);
			(function () { show_prompts (); }).delay (250);
		}

		if ($('password'))
		{
			$('password').focus ();
		}
	});

	function show_prompts ()
	{
		// Get size of prompts
		var prompts_size = $('prompts').getSize ();

		// Vertically center prompts
		final_location = Math.round ((window.getHeight () / 2) - (prompts_size.size.y / 2));

		prompts_show_effect.start (final_location + window.getScrollTop ().toInt ());
	}

	function hide_prompts ()
	{
		prompts_hide_effect.start (-400);
	}

	var timeout = new Array ();
	window.addEvent ('load', function () {
		$$('#about_menu', '#give_menu').each (function (element, index) {
			element.getParent ().addEvent ('mouseover', function () {
				$$('#about_menu', '#give_menu').each (function (element, index) {
					element.setStyle ('display', 'none');
					timeout[element.id] = clearTimeout (timeout[element.id]);
				});
				var menu = this.getElement ('ul');
				timeout[menu.id] = clearTimeout (timeout[menu.id]);
				menu.setStyle ('display', 'block');
			});

			element.getParent ().addEvent ('mouseout', function () {
				var menu = this.getElement ('ul');
				timeout[menu.id] = setTimeout ('$(\'' + menu.id + '\').setStyle (\'display\', \'none\');', 500);
			});

			element.addEvent ('mouseover', function () {
				timeout[this.id] = clearTimeout (timeout[this.id]);
			});

			element.addEvent ('mouseout', function () {
				//timeout[this.id] = setTimeout ('$(\'' + this.id + '\').setStyle (\'display\', \'none\');', 500);
			});
		});
	});

