$(function(){
	$('.homeLink').click(function() { // bind click event to link
		$('#content').triggerTab(1);
		return false;
	});
	$('#speakersLink').click(function() { // bind click event to link
		$('#content').triggerTab(2);
		return false;
	});
	$('#sponsorshipLink').click(function() { // bind click event to link
		$('#content').triggerTab(8);
		return false;
	});
	$('#venueLink').click(function() { // bind click event to link
		$('#content').triggerTab(6);
		return false;
	});
	$('#contactLegalLink').click(function() { // bind click event to link
		$('#content').triggerTab(7);
		return false;
	});
	
	$("#dfaButton").toggle (
		function () {
			$("#DFrankelAbstract").show("slow");
		},
		function () {
			$("#DFrankelAbstract").hide("slow");
		}
	);
	
	$("#rsButton").toggle (
		function () {
			$("#RSoleyAbstract").show("slow");
		},
		function () {
			$("#RSoleyAbstract").hide("slow");
		}
	);
	
	$("#dlgButton").toggle (
		function () {
			$("#DLGiudiceAbstract").show("slow");
		},
		function () {
			$("#DLGiudiceAbstract").hide("slow");
		}
	);
	
	$("#jmcButton").toggle (
		function () {
			$("#SCookAbstract").show("slow");
		},
		function () {
			$("#SCookAbstract").hide("slow");
		}
	);
	
	$("#mraButton").toggle (
		function () {
			$("#MRosenAbstract").show("slow");
		},
		function () {
			$("#MRosenAbstract").hide("slow");
		}
	);
	
	$("#mgaButton").toggle (
		function () {
			$("#MGuttmanAbstract").show("slow");
		},
		function () {
			$("#MGuttmanAbstract").hide("slow");
		}
	);
	
	$("#smaButton").toggle (
		function () {
			$("#SMellorAbstract").show("slow");
		},
		function () {
			$("#SMellorAbstract").hide("slow");
		}
	);
	
	$("#osaButton").toggle (
		function () {
			$("#OSimsAbstract").show("slow");
		},
		function () {
			$("#OSimsAbstract").hide("slow");
		}
	);
	
	$("#jgaButton").toggle (
		function () {
			$("#JGoinsAbstract").show("slow");
		},
		function () {
			$("#JGoinsAbstract").hide("slow");
		}
	);
	
	$("#ahaButton").toggle (
		function () {
			$("#AHenryAbstract").show("slow");
		},
		function () {
			$("#AHenryAbstract").hide("slow");
		}
	);
	
});

function startPage () {
	/* Used if javascript is enabled */
	document.getElementById("bodyDiv").style.display = "inline";
	$('#content').tabs({ fxFade: true, fxSpeed: 'normal' });
}

function startRegistrationPage () {
	document.getElementById("bodyRegistration").style.display = "inline";
}

