// Global JS file for the RFXTechnologies.com website (09 Redesign) ~LER

/* 
	used for tabbed blocks (two on homepage) 
	'section' indicates ID of the section containing the tabbed items
*/
function switchTabbedBlock( section, contentBlock ) {
	// set selected top nav
	$("#" + section + " .switcherNav a").removeClass();
	$("#" + section + " .switcherNav a:eq(" + contentBlock + ")").addClass("selected");
	
	// hide all content blocks
	$("#" + section + " .content").css("display","none");
	
	// show only current content block
	//$("#" + section + " .content:eq(" + contentBlock + ")").css("display","block");
	$("#" + section + " .content:eq(" + contentBlock + ")").fadeIn();
}