
/*===============================================================================
	uses.js
	John Larson
	4/16/08
	
	All page-specific JavaScript for uses.asp

===============================================================================*/


window.addEvent('domready', function() {
	dbug.enable();
	
	$$('#usesMenu div').each(function(theButton, index) {
		theButton.addEvent('click', function() {
			loadUseSection(index);
		});
	});
	
	if (window.ie6) {
		$$('#usesMenu div').each(function(theButton, index) {
			theButton.addEvent('mouseenter', function() {
				theButton.addClass('hover');
			});
			theButton.addEvent('mouseleave', function() {
				theButton.removeClass('hover');
			});
		});
		
	}
	
});


/****************************************************************************
//	SECTION::Uses Display Transition
*/
	
	var currentSectionID = 0;
	function loadUseSection(sectionID) {
		if (sectionID == currentSectionID)
			return;
		
		$('useButton' + currentSectionID).removeClass('current');
		swapSections('useFeature' + currentSectionID, 'useFeature' + sectionID);
		currentSectionID = sectionID;
		$('useButton' + sectionID).addClass('current');
	}
	
/*
//	End SECTION::Uses Display Transition
****************************************************************************/
