var locationId = 5;

function disableStatuses() { 
	for (var count=0; count<document.links.length; count++) {
		if (document.links[count].onmouseover == null) {
			document.links[count].onmouseover = blankStatus;
		}
	}
}
function blankStatus() { window.status = "" ; return true ; }
var demoWindow = "";
function openDemo() {
  if (!demoWindow || demoWindow.closed) {
		theFile = "../include/memberTour.htm";
		demoWindow = window.open(theFile,"memberDemo",'scrollbars=yes,toolbar=no,width=820,height=520,top='+(screen.height-520)/2+',left='+(screen.width-820)/2);
		if (!demoWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			demoWindow.opener = this.window;
			demoWindow.focus();
		}
  } else {
		demoWindow.focus();
  }    
}
var storeWindow = "";
function openStore() {
  if (!storeWindow || storeWindow.closed) {
		storeWindow = window.open("http://www.efitnessmall.com?PARTNER="+locationId);
		if (!storeWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			storeWindow.opener = this.window;
			storeWindow.focus();
		}
  } else {
		storeWindow.focus();
  }    
}
var forumWindow = "";
function openForum() {
  if (!forumWindow || forumWindow.closed) {
		if (locationId == 5) {
			forumWindow = window.open("http://www.myfitcafe.com");
		} else {
			forumWindow = window.open("http://forum.myhomepersonaltrainer.com");
		}
		if (!forumWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			forumWindow.opener = this.window;
			forumWindow.focus();
		}
  } else {
		forumWindow.focus();
  }    
}
function getFitnessPlan() {
	var myFitnessPlan = document.getElementById("FitnessPlan");
	if (myFitnessPlan.value == "1") {
		this.location.href="../home/Total-Body-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "2") {
		this.location.href="../home/Weight-Loss-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "3") {
		this.location.href="../home/Muscle-Building-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "4") {
		this.location.href="../home/Get-Big-and-Strong-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "5") {
		this.location.href="../home/Sports-Specific-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "6") {
		this.location.href="../home/Specialized-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "7") {
		this.location.href="../home/Final-Five-Pounds-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "8") {
		this.location.href="../home/Beach-Body-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "9") {
		this.location.href="../home/Fit-Bride-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "10") {
		this.location.href="../home/Lose-The-Baby-Fat-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "11") {
		this.location.href="../home/Flab-To-Fab-Fitness-Plan.htm";
	} else if (myFitnessPlan.value == "12") {
		this.location.href="../home/Fast-Fitness-Plan.htm";
	}
}