/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Declaring Arrays
var personal_programs=new Array('personal_programs_short', 'personal_programs_long');
var corporate_programs=new Array('corporate_programs_short', 'corporate_programs_long');
var corporate_cases=new Array('corporate_cases_short', 'corporate_cases_long');
var executive_programs=new Array('executive_programs_short', 'executive_programs_long');
var executive_cases=new Array('executive_cases_short', 'executive_cases_long');
var educational_programs=new Array('educational_short', 'educational_long');
var health=new Array('health_professional', 'health_care');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function showall()
{
	showdiv_personal_programs('personal_programs_long');
	hidediv_personal_programs('personal_programs_short')
	showdiv_corporate_programs('corporate_programs_long');
	hidediv_corporate_programs('corporate_programs_short')
	showdiv_corporate_cases('corporate_cases_long');
	hidediv_corporate_cases('corporate_cases_short')
	showdiv_executive_programs('executive_programs_long');
	hidediv_executive_programs('executive_programs_short')
	showdiv_executive_cases('executive_cases_long');
	hidediv_executive_cases('executive_cases_short')
	showdiv_educational_programs('educational_long');
	hidediv_educational_programs('educational_short')
	showdiv_health('health_professional');
	showdiv_health('health_care');
}	
	
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//PERSONAL PROGRAMS
function switchid_personal_programs(id){		//switching between functions
	hideallids_personal_programs();
	showdiv_personal_programs(id);
}

function hideallids_personal_programs(){	
	//loop through the array and hide each element by id
	for (var i=0;i<personal_programs.length;i++){
		hidediv_personal_programs(personal_programs[i]);
	}		  
}

function hidediv_personal_programs(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_personal_programs(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CORPORATE_PROGRAMS
function switchid_corporate_programs(id){		//switching between functions
	hideallids_corporate_programs();
	showdiv_corporate_programs(id);
}

function hideallids_corporate_programs(){	
	//loop through the array and hide each element by id
	for (var i=0;i<corporate_programs.length;i++){
		hidediv_corporate_programs(corporate_programs[i]);
	}		  
}

function hidediv_corporate_programs(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_corporate_programs(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CORPORATE_CASES
function switchid_corporate_cases(id){		//switching between functions
	hideallids_corporate_cases();
	showdiv_corporate_cases(id);
}

function hideallids_corporate_cases(){	
	//loop through the array and hide each element by id
	for (var i=0;i<corporate_cases.length;i++){
		hidediv_corporate_cases(corporate_cases[i]);
	}		  
}

function hidediv_corporate_cases(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_corporate_cases(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//EXECUTIVE_PROGRAMS
function switchid_executive_programs(id){		//switching between functions
	hideallids_executive_programs();
	showdiv_executive_programs(id);
}

function hideallids_executive_programs(){	
	//loop through the array and hide each element by id
	for (var i=0;i<executive_programs.length;i++){
		hidediv_executive_programs(executive_programs[i]);
	}		  
}

function hidediv_executive_programs(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_executive_programs(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//EXECUTIVE_CASES
function switchid_executive_cases(id){		//switching between functions
	hideallids_executive_cases();
	showdiv_executive_cases(id);
}

function hideallids_executive_cases(){	
	//loop through the array and hide each element by id
	for (var i=0;i<executive_cases.length;i++){
		hidediv_executive_cases(executive_cases[i]);
	}		  
}

function hidediv_executive_cases(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_executive_cases(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//EDUCATIONAL PROGRAMS
function switchid_educational_programs(id){		//switching between functions
	hideallids_educational_programs();
	showdiv_educational_programs(id);
}

function hideallids_educational_programs(){	
	//loop through the array and hide each element by id
	for (var i=0;i<educational_programs.length;i++){
		hidediv_educational_programs(educational_programs[i]);
	}		  
}

function hidediv_educational_programs(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_educational_programs(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//HEALTH PROFESSIONAL & HEALTH CARE SECTOR
function switchid_health(id){		//switching between functions
	hideallids_health();
	showdiv_health(id);
}

function hideallids_health(){	
	//loop through the array and hide each element by id
	for (var i=0;i<health.length;i++){
		hidediv_health(health[i]);
	}		  
}

function hidediv_health(id) {
	//function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_health(id) {
	//function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
function hi()
{
alert("This sitemap has been divided up into nine sections, with some sub sections inside each. \n Click on show all to view the whole sitemap or alternatively click on each subsection")
}
