//////////////////////////////////
// Practices Landing Page Content Swapper
// Shows/Hides Various Secondary Practices
/////////////////////////////////

function showContent(showItem) {

	// check to see if content is already displayed
	contentID = 'secondaryPractices_' + showItem;
	visibility = document.getElementById(contentID).className;
	
	if(visibility=="show") {
		//hide correct secondary practices
		contentID = 'secondaryPractices_' + showItem;
		document.getElementById(contentID).className="hide";
		
		//change arrow to show 'up' state
		arrowID = 'arrow_' + showItem;
		document.getElementById(arrowID).className="arrow right";
			
	} else {
	
		//display correct secondary practices
		contentID = 'secondaryPractices_' + showItem;
		document.getElementById(contentID).className="show";
		
		//change arrow to show 'down' state
		arrowID = 'arrow_' + showItem;
		document.getElementById(arrowID).className="arrow down";	
	}
	
	
}

//////////////////////////////////
// Practices Detail Page Swapper
// Shows/Hides Various Related Items
/////////////////////////////////

function showRelatedDetails(showItem) {
	// check to see if content is already displayed
	contentID = 'list_' + showItem;
	visibility = document.getElementById(contentID).className;
	
	if(visibility=="show") {
		//hide correct related content
		contentID = 'list_' + showItem;
		document.getElementById(contentID).className="hide";
		
		//change arrow to show 'up' state
		arrowID = 'arrow_' + showItem;
		document.getElementById(arrowID).className="title arrowRight";
		
	} else {
	
		//display correct related content
		contentID = 'list_' + showItem;
		document.getElementById(contentID).className="show";
		
		//change arrow to show 'down' state
		arrowID = 'arrow_' + showItem;
		document.getElementById(arrowID).className="title arrowDown";
		
	}	


}
