// JavaScript Document

function viewshop() {
	document.location.href = 'http://store01.prostores.com/servlet/printallimages/Cart';					// prostore view shopping cart
}

function checkout() {
	document.location.href = 'https://store01.prostores.com/servlet/printallimages/Checkout?smode=checkout';				// prostore checkout


}	

function viewaccount() {
	document.location.href = 'https://store01.prostores.com/servlet/printallimages/Service';				// prostore Customer Service
}	

function register() {
	document.location.href = 'https://store01.prostores.com/servlet/printallimages/Service';				// prostore Customer Service
}
var time = 3000;
var numofitems = 9;

//menu constructor
function menu(allitems,thisitem,startstate) { 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;  
  this.numberofmenuitems = allitems;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname);
  this.thediv.style.visibility = startstate;
}

//menu methods
function ehandler(event,theobj){
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }
 
  theobj.thediv.style.visibility="visible";
}
				
function closesubnav(event){
  if ((event.clientY <95)||(event.clientY > 166)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='hidden';

    }
  }
}


function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 9;
    document.MM_Time[0][0] = new String("behavior");
    document.MM_Time[0][0].frame = 301;
    document.MM_Time[0][0].value = "MM_timelineGoto('Timeline1','1','99')";
    document.MM_Time[0].lastFrame = 301;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}

