
//tab callout swap
function switchprofile(num) {

	var numprofiles = 3; //number of profiles
	var pon = "profile" + num; //get on div id
	var plon = "plink" + num; // get on link id
	
	for (i=1; i <= numprofiles; i++){
		var poff = "profile" + i; //get off div ids
		var ploff = "plink" + i; // get off link ids
		
		if (i != num) {
			document.getElementById(poff).style.visibility = "hidden"; // hide other layers
			document.getElementById(ploff).style.color = "#ffffff"; //set on link
		}
		
	}

	document.getElementById(pon).style.visibility = "visible"; // show on layer
	document.getElementById(plon).style.color = "#ffffff"; //set off links
	
	var next = parseFloat(num)+1;
	if (next > numprofiles ) {
		next = 1;	
	}
}

//tab callout swap
function switchprofilesub(num) {

	var numprofiles = 3; //number of profiles
	var pon = "profile" + num; //get on div id
	var plon = "plink" + num; // get on link id
	
	for (i=1; i <= numprofiles; i++){
		var poff = "profile" + i; //get off div ids
		var ploff = "plink" + i; // get off link ids
		
		if (i != num) {
			document.getElementById(poff).style.visibility = "hidden"; // hide other layers
			document.getElementById(ploff).style.color = "#77502C"; //set on link
		}
		
	}

	document.getElementById(pon).style.visibility = "visible"; // show on layer
	document.getElementById(plon).style.color = "#77502C"; //set off links
	
	var next = parseFloat(num)+1;
	if (next > numprofiles ) {
		next = 1;	
	}
}