/* 
	globals.js
	scope: included in all pages

	changelog:
	March 07, first template version, eric@squishymedia.com
*/

	/* attached by attachEventHandlers(), also called by links in /php-bin/phattabs.inc.php.  is main navigational component for left-hand tabs  */
	function gotoSection(argWhichSection)	{
		var whichLoc = new Array(null,'/','/databases/','/catalogs/','/services/');
		window.location.href=whichLoc[argWhichSection];
	}
	
	/* done programmatically after load to avoid confusing the accessibility validators.  is mainly for the large backgrounds, not the text links. */	
	function attachEventHandlers()	{
		document.getElementById('phattab-one').onclick = function() {gotoSection(1)};
		document.getElementById('phattab-two').onclick = function() {gotoSection(2)};
		document.getElementById('phattab-three').onclick = function() {gotoSection(3)};
		document.getElementById('phattab-four').onclick = function() {gotoSection(4)};
	}
