var arrSoundNames = new Array('http://can2can.biz/Content/BBots/434616e5bd53927bef4cb685e17e8f6c','http://can2can.biz/Content/BBots/1ad17b83740bc459f0fbfd99abe90783','http://can2can.biz/Content/BBots/3261db7d5861dae9806402a000f07069','http://can2can.biz/Content/BBots/d87bd214d5b76ee19e2c8a64d01cc646','http://can2can.biz/Content/BBots/cf328becc51f6ad4aa963c3c9e3ea46e','http://can2can.biz/Content/BBots/aa2169870ecab673ad4e7ac50f463765','http://can2can.biz/Content/BBots/09be1936a3b9be2c7434e649273f24bc');

function play_rand_banner_sound()
{
var fRand = Math.random()*2;
fRand = Math.round(fRand);
//alert(fRand + ":" + arrSoundNames[fRand]);
changeVoice(arrSoundNames[fRand]);
}

function changeVoice(pass)
{
if(pass.indexOf(" ") != -1)
pass = pass.substr(0,pass.indexOf(" "));
theValue = 'updateVoiceFile' + "," + pass;
//alert(theValue);
if (theValue!=null) {
	thisMovie().SetVariable('command', theValue);
	}
 }

function thisMovie() { return swfobject.getObjectById("AvailBot") }

// function oldcodeThisMovie()
//  {
//  if (navigator.appName.indexOf("Microsoft") !=-1){
//  return window["AvailBot"]
//      } else {
//  return document["AvailBot"]
// 	}
// }

function playOption(pick)
{
changeVoice(arrSoundNames[pick]);
thisMovie().Click
}

