/*
 * Copyright 2008, Peter Rowntree.
 * http://www.hdyn.com/mail/contact.php?addr=pr
 *
 * License: you may not use this file except in compliance with
 * the Apache License, Version 2.0, a copy of which you may obtain at
 *   http://www.apache.org/licenses/LICENSE-2.0
*/
function gotoFrame(ob,_2){
if(typeof ob=="string"){
ob=document.getElementById(ob);
}
if(ob==null){
return;
}
if(typeof ob.GotoFrame!="undefined"){
ob.GotoFrame(_2);
ob.Play();
}
}
function setSndFromURL(ob,_4){
if(typeof ob=="string"){
ob=document.getElementById(ob);
}
if(ob==null||typeof ob.SetVariable=="undefined"){
return;
}
ob.SetVariable("_root.ppath",_4);
gotoFrame(ob,1);
}
function playSnd(ob){
gotoFrame(ob,3);
}
function stopSnd(ob){
gotoFrame(ob,6);
}
function setSndVolume(ob,_8){
if(_8>100){
_8=100;
}else{
if(_8<0){
_8=0;
}
}
if(typeof ob=="string"){
ob=document.getElementById(ob);
}
if(ob==null||typeof ob.SetVariable=="undefined"){
return;
}
ob.SetVariable("gVolume",_8);
gotoFrame(ob,5);
}
