/*
Listen Live Scripting
Author:	Phil Howie
Date:	2006-07-11
*/

function StartMeUp() {
	//alert(document.getElementById("Player"));
	/* SomePlayer = document.Player; */
}

var RolloverImage = "Images/PauseHi.gif";
var is_pause = false;
var change_volume_value = 100;

function player_pause() {
	if (is_pause) {
		is_pause = false;
		Player.settings.mute = false;
	} else {
		is_pause = true;
		Player.settings.mute = true;
	}
}

function ChangeButtons() {
	
	if (is_pause){
		document.all.MutePlay.src = "Images/Play.gif";
		document.all.MutePlay.alt = "Play";
		RolloverImage = "Images/PlayHi.gif";
	}
	else
	{
		document.all.MutePlay.src = "Images/Pause.gif";
		document.all.MutePlay.alt = "Pause";
		RolloverImage = "Images/PauseHi.gif";
	}
}

function SetVol(Level) {
	Player.Settings.volume = 0;
	Player.Settings.volume = Level;
}


// Handle all the the FSCommand messages in a Flash movie
function Slider_DoFSCommand(command, args) {
	var SliderObj = document.getElementById("Slider");
	
	SetVol(args-9);
	//OpenWindowAtPosition("Video",args,590,483,0,0,0,0,0,"");
}

// 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  type=\"text/vbscript\">\n');
	document.write('on error resume next \n');
	document.write('Sub Slider_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call Slider_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</script\> \n');
}