
// contains nothing but Javascript statements. No HTML allowed here.

//
// This is the included Javascript file for Pyramid 
//
// Created by Round Check Productions http://www.roundcheck.com/
// Copyright 2001 Millennium Computing Solutions
// 
// The requirements for this to work properly.
//  IE 4.0 or higher, Netscape 4.0 or higher
//
// It would be a good idea to have a home page with the sniffer script
//  so that you would know if the browser met the requirements. If not
//  then these scripts will be invisible (unless you want to manage putting
//  them into each of the pages yourself. That is a real nightmare.)
//


  // Detect Browser
  var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

  var rootMenuObj = InternetExplorer ? window.rootMenu : window.document.rootMenu; 

  // Handle all the the FSCommand messages in a Flash movie
  function rootMenu_DoFSCommand(command, args) {
//    var rootMenuObj = InternetExplorer ? rootMenu : document.rootMenu;
    if (command=="showMenu") {
      window.document.rootMenu.SetVariable( "_root.subMenu", currentMenu );
      window.document.rootMenu.TGotoLabel("/","doMenu");
      window.document.rootMenu.TPlay("/");
    }
    if (command=="referrer") {
      window.document.rootMenu.SetVariable( "_root.callerURL", document.URL );
    }
  }

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	window.document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	window.document.write('on error resume next \n');
	window.document.write('Sub rootMenu_FSCommand(ByVal command, ByVal args)\n');
	window.document.write('  call rootMenu_DoFSCommand(command, args)\n');
	window.document.write('end sub\n');
	window.document.write('</SCRIPT\> \n');
}

 //***************************************************************************
 // showSwf();
 //  name: The name of the movie for EMBED and OBJECT tags.
 //  swf : The file name of the flash movie to load
 //  wide: The number of pixels wide
 //  high: The number of pixels high
 //   LiveConnect is enabled and required for communication with the flash movie

  function showSwf( name, swf, wide, high )
  {
    window.document.write('\<object classid=\"clsid\:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/active.macromedia.com\/flash2\/cabs\/swflash.cab#version=4,0,0,0\" id=\"' + name + '\" width=\"' + wide + '\" height=\"' + high + '\"\>');
    window.document.write('\<param name=\"movie\" value=\"' + swf + '\"\>\<param name=\"quality\" value=\"high\"\> \<PARAM NAME=wmode VALUE=transparent\>\<param name=\"swliveconnect\" value=\"true\"\>');
    window.document.write('\<embed name=\"' + name + '\" src=\"' + swf + '\" quality=\"high\" width=\"' + wide + '\" height=\"' + high + '\" swLiveConnect=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi\?P1_Prod_Version=ShockwaveFlash\">');
    window.document.write('\<\/embed\>\<\/object\>');
  }

