//View Hide
//t
//By Kevin B. Leigh
//10.10.2008 
var lCurrentlyVisiblePanel = 0;

function showhide( val )
{
	//set up the section id's
	var elem1 = document.getElementById("body");//Hung Up on the Man
	var elem2 = document.getElementById("body2");//Connected to the Man
	var elem3 = document.getElementById("body3");//VoiceMail for  the Man
	var elem4 = document.getElementById("body4");//VoiceMail for  the Man
	var elem5 = document.getElementById("body5");//Hung Up on the Man
	

	//starting possition
	lCurrentlyVisiblePanel = val;
	
	if( val == "1" )
	{
	
		elem1.style.display = "";
		elem2.style.display = "none";
		elem3.style.display = "none";
		elem4.style.display = "none";
		elem5.style.display = "none";
		MM_RestoreIndividualPSG('body_1cfm_r3_c2');
		MM_RestoreIndividualPSG('body_1cfm_r5_c2');
		MM_RestoreIndividualPSG('body_1cfm_r7_c2');
		MM_RestoreIndividualPSG('body_1cfm_r9_c2');
		
	}
	//New
	if( val == "2" )
	{
		elem1.style.display = "none";
		elem2.style.display = "";
		elem3.style.display = "none";
		elem4.style.display = "none";
		elem5.style.display = "none";
		//MM_RestoreIndividualPSG('body_1cfm_r3_c2');
		MM_RestoreIndividualPSG('body_1cfm_r5_c2');
		MM_RestoreIndividualPSG('body_1cfm_r7_c2');
		MM_RestoreIndividualPSG('body_1cfm_r9_c2');		
	}

	//Used
	if( val == "3" )
	{
		elem1.style.display = "none";
		elem2.style.display = "none";
		elem3.style.display = "";
		elem4.style.display = "none";
		elem5.style.display = "none";
		MM_RestoreIndividualPSG('body_1cfm_r3_c2');
		//MM_RestoreIndividualPSG('body_1cfm_r5_c2');
		MM_RestoreIndividualPSG('body_1cfm_r7_c2');
		MM_RestoreIndividualPSG('body_1cfm_r9_c2');		
		
	}
	//Make and Price
	if( val == "4" )
	{
		elem1.style.display = "none";
		elem2.style.display = "none";
		elem3.style.display = "none";
		elem4.style.display = "";
		elem5.style.display = "none";
		MM_RestoreIndividualPSG('body_1cfm_r3_c2');
		MM_RestoreIndividualPSG('body_1cfm_r5_c2');
		//MM_RestoreIndividualPSG('body_1cfm_r7_c2');
		MM_RestoreIndividualPSG('body_1cfm_r9_c2');		
		
	}
	//Make and Price
	if( val == "5" )
	{
		elem1.style.display = "none";
		elem2.style.display = "none";
		elem3.style.display = "none";
		elem4.style.display = "none";
		elem5.style.display = "";
		MM_RestoreIndividualPSG('body_1cfm_r3_c2');
		MM_RestoreIndividualPSG('body_1cfm_r5_c2');
		MM_RestoreIndividualPSG('body_1cfm_r7_c2');
		//MM_RestoreIndividualPSG('body_1cfm_r9_c2');		
	}
}



