\n');
}
function showTranscript(acc_id,ss_id,audioID,slidenum){
transWindow = window.open( "http://vhss.oddcast.com/transcript_frame.php?acc="+acc_id+"&ss="+ss_id+"&au="+audioID+"&sn="+slidenum,"transWindow","width=500,height=500,toolbar=no,resizable=no");
transWindow.focus();
}
// -------------------------
// ------------------------- Host control API FUNCTION (embed show, scene, model)
function stopSpeech(){
getHostPath();
mc.TCallLabel(curHost, "stopSpeech");
}
function replaySpeech(){
getHostPath();
mc.TCallLabel(curHost, "replaySpeech");
}
//function variables:
//newMouseMode: 0 - turns mouse tracking OFF; 1 - turns mouse tracking ON
function followcursor(newMouseMode){
getHostPath();
mouseModePath= hostPath + sep2 + "host" + sep1 + "mouseMode" ;
mc.SetVariable(mouseModePath,newMouseMode);
mc.TCallLabel(curHost, "followcursor");
}
function recenter(){
getHostPath();
mc.TCallLabel(curHost, "recenter");
}
function sayText(ttsText,voice,lang,engine,noInterrupt){
getHostPath();
mc.SetVariable("tts.lang",lang);
mc.SetVariable("tts.voice",voice);
mc.SetVariable("tts.text",ttsText);
mc.SetVariable("tts.engine",engine);
mc.TCallLabel("/tts", "sayTTS");
}
// ------------------------- Scene Flow API FUNCTION (embed show, scene)
function replay(){
vhssObj = InternetExplorer ? VHSS : window.document.VHSS;
vhssObj.TCallLabel("/", "replay");
}
function freezeToggle(){
vhssObj = InternetExplorer ? VHSS : window.document.VHSS;
vhssObj.TCallLabel("/", "freezeToggle");
}
// ------------------------- Link API FUNCTION (embed show, scene)
function SetLink (href){
vhssObj = InternetExplorer ? VHSS : window.document.VHSS;
vhssObj.SetVariable("slide.BUTTON.HREF",href);
}
function SetTarget (targetName){
vhssObj = InternetExplorer ? VHSS : window.document.VHSS;
vhssObj.SetVariable("slide.BUTTON.WINDOW",targetName);
}
//------- John's WebMaster Functions... -----------------
function DecideAnswer(question)
// Simple rules for answering questions...
{
// alert(question);
// Re-write this to use one-dimensional arrays, with "question" as the index... much cleaner!
// Also, add arrays to hold URL and link desc text...
// Maybe a 2D array for the hyperlinks:
// var Rel_link(question, 1) = 'http://www.vec.ca';
// var Rel_link(question, 2) = 'Home of VEC';
if (question==1)
{
GiveAnswer("What is the Web?","The World Wide Web is an electronic space where people or groups can communicate and have fun!");
}
if (question==2)
{
GiveAnswer("What is HTML?","H.T.M.L. is the Hyper Text Markup Language. It is the most common language used to create web pages.");
}
if (question==3)
{
GiveAnswer("What is the meaning of life?","I dont know for sure, but I think life is like a box of chocolates. You never know what you're going to get.");
}
}
function GiveAnswer(questionText,answerText)
// Collect text for question (if any) and answer and output results...
{
if (questionText =="") // No question asked...
{
var displayText = answerText;
}
else // A question needs to be parroted back...
{
var displayText = "YOU ASKED: " + questionText + "\n" + answerText;
}
myform.answerbox.value = displayText;
sayText(answerText,2,1,1);
}
//-->