
/*===============================================================================
	public.js
	John Larson
	3/10/09
	
	All page-specific JavaScript for public pages.
	
	
===============================================================================*/


window.addEvent('domready', function() {
	PG = {};
	PG.pageTabSwapper = new TabSwapper({
		selectedClass:		"current",
		deselectedClass:	"plain",
		mouseoverClass:		"hover",
		mouseoutClass:		"plain",
		manageHistory:		true,
		historyKey:			'P',
		tabs:				$$("#topMenu ul li"),
		sections:			$$("#pageSet div.page"),
		smooth:				true
	});
	
	HistoryManager.start();
});

	function submitContactForm(theForm) {
		new Ajax('gdform.php', {
			method: 'post',
			data: theForm,
			evalScripts: true,
			onComplete: function() {
				swapSections(theForm, 'thankYouMessage');
			}
		}).request();
	}
