var locationId = 1;

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/trainerTour.asp";
		demoWindow = window.open(theFile,"trainerDemo",'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) {
	  alert("Sign up to eFitnessTracker and get your own store with immediate commissions on all sales!");
		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 demoWindow = "";
function showDemo(navAdjust,colorScheme,headerGraphic,siteLayout) {
  if (!demoWindow || demoWindow.closed) {
  } else {
		demoWindow.window.close();
  }    
	if (navAdjust == "Y") {
		navAdjust = "../";
	} else {
		navAdjust = "";
	}
	theFile = navAdjust + "home/demoWindow.asp?colorScheme="+colorScheme+"&headerGraphic="+headerGraphic+"&siteLayout="+siteLayout;
	demoWindow = window.open(theFile,"demoWindow",'scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,status=yes,location=yes');
	if (!demoWindow) {
		alert("Please enable popups to view the requested window.");
	} else {
		demoWindow.opener = this.window;
		demoWindow.focus();
	}
}
