//4/18/2003 Kae,totalPrice function for signup
if (document.images) {
  linkimage_off = new Image(30,21);
  linkimage_off.src = PATH_IMG+"/product_bullet1.gif";

  linkimage_roll = new Image(30,21);
  linkimage_roll.src = PATH_IMG+"/product_bullet2.gif";
}

function openTour()
{
	window.open('http://www.scheduleonline.com/TOURPAGES/scheduleonline_intro.html', 'ScheduleOnlineTour','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=700,height=560');
}

function openDemo()
{
	window.open('http://www.scheduleonline.com/demo/ScheduleOnline/signin_error.php', 'ScheduleOnlineDemo');
}

// Menu Functions
function linkOver(imgName) {
  if (document.images) {
    document [imgName].src = linkimage_roll.src;
  }
}
function linkOut(imgName) {
  if (document.images) {
    document [imgName].src = linkimage_off.src;
  }
}

function switchSection(LayerNum) {
	if (!initialized) return;

	var newMenu = getLayer(MenuArray[LayerNum]) ;
	var oldMenu = getLayer(MenuArray[ActiveLayer]) ;

	if (newMenu && oldMenu) hideLayer(oldMenu);
	if (newMenu) showLayer(newMenu);
		
	ActiveLayer = LayerNum;
}

function hideSection() {
	var oldMenu = getLayer(MenuArray[ActiveLayer]) ;

	hideLayer(oldMenu);		
}

var unself

function timer(offon)  {
	if (offon == 0)	{
	    unself = setTimeout('hideSection()', 1000);
	    }
	if (offon ==1)	{
		clearTimeout(unself);
	}
}

	MenuArray = new Array();
	MenuArray[1] = "products" ;
	MenuArray[2] = "company" ;
	MenuArray[3] = "events" ;
	MenuArray[4] = "learning" ;
	MenuArray[100] = "blank" ;
		
	ActiveLayer = 100;
	initialized = 1;
	
	switchSection(ActiveLayer);
	
	window.setTimeout("preloadsite()", 1200);
	document.onmouseup = hideSection;

function preloadsite() {
	switchSection(100);
}

function openNewWindow(fileName,windowName,theWidth,theHeight) {
	window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight)
}

function openjoinnow()
{
    
    alert("In order to successfully sign up for a new account and to ensure the safety of your transaction you will need to use a browser capable of 256-bit security encryption. If you have any problems, please email us at support@scheduleonline.com");
	var url = document.forms[0].joinnow_url.value;
	//window.open(''+url);
	window.location = ''+url;
} 
function totalPrice(form,price_index){
	form.total_price.value = price_arr[price_index];
}
