/* This site has been commented to death because it was written by a Graphic Designer who's learning JavaScript. So be nice. */

/* Before putting variables to use, they need ot be declared. */
var activeHorizontal='';

function horizontalRollover(whosasking){


	/* 	If the div that triggers a rollover event is the same div that most recently triggered a rollover event, then do nothing. */
	if(whosasking==activeHorizontal){
		return;
	}

	/* 	If the div that triggers a rollover event is different than the div that most recently triggered a rollover event, then do nothing. */
	else {
	
		/* As long as the activeHorizontal variable isn't blank *i.e. no selected tab yet) change the active tab's CSS. (There's nothing to execute these commands on if the tab isn't set yet). */
		if(activeHorizontal != ''){
			/*Change the CSS classes assigned to the formerly selected tab so that they're no longer tagged as selected, but rather as neutral. */
			$('homeTopMenu'+activeHorizontal).removeClassName('selectedTabHorizontal');
			$('homeTopMenu'+activeHorizontal).addClassName('neutralTabHorizontal');		
		
		};


		/*Change the CSS classes assigned to the selected tab so that they're no longer tagged as neutral, but rather as selected. */
		$('homeTopMenu'+whosasking).removeClassName('neutralTabHorizontal');
		$('homeTopMenu'+whosasking).addClassName('selectedTabHorizontal');

		/* Now label this element as the active tab so that the script detects entry into tabs other than this one. */		
		activeHorizontal = whosasking;

		return;
	}
	return false;
}
