<!--
// API INTIATION NAD SERVICE

mouseMode=1;

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
  function VHSS_DoFSCommand(command, args) {
  var VHSSObj = InternetExplorer ? VHSS : document.VHSS;
 }
 
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
      navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.write('<SCRIPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next \n');
    document.write('Sub VHSS_FSCommand(ByVal command, ByVal args)\n');
    document.write('  call VHSS_DoFSCommand(command, args)\n');
    document.write('end sub\n');
    document.write('</SCRIPT\> \n');
}

if (InternetExplorer){
	sep1 = sep2 = "." ;
 } else {
	sep1 = ":";
	sep2 = "/";
 }

function getHostPath(){
	if (InternetExplorer){
		mc = VHSS ;
		hostPath = mc.GetVariable("/slide/curPuppet");
		curHost = hostPath + sep2 + "host" + sep2 + "engine";
	 } else {
		mc = document.VHSS;
		hostPath = mc.TGetProperty("/slide/curPuppet",11);
		curHost = hostPath + sep2 + "host" + sep2 + "engine";
	 }
}


// API FUNCTION

function say(fn){
	getHostPath();
	var baseURL="";
	voice= hostPath + sep1 + "voice" ;
	mc.SetVariable(voice,baseURL+fn);
    mc.TCallLabel(curHost, "talk");
}

	
function gotoSlide(slideIndex){
		var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	    mc = InternetExplorer ? window.VHSS : window.document.embeds[0];
		mc.SetVariable("curSlide.attributes.NEXTSLIDE",slideIndex);
		mc.TCallLabel("/", "gotoSlide");
	}
//-->