// mute button
var sound = true; // set to true if sound starts automatically when page loads
function mute() {
	var wmp = getObj("WMP64");
	var imgObj = getObj("muteButton");
	//var strBrowser;
	//strBrowser = navigator.appName;
	/*if (strBrowser == "Netscape") {
		if(!sound) {
			document.WMP64.SetMute(false);
			window.status=""; // status bar text for no sound
			imgObj.src = "images/mute.gif"; // image for no sound
			sound = true;
		}
		else{
			document.WMP64.SetMute(true);
			window.status="Radio has been muted"; // status bar text for sound
			imgObj.src = "images/muteOver.gif"; // image for sound
			sound = false;
		}
	}
	else {*/
		if(!sound) {
			wmp.Mute = false;
			//document.WMP64.Mute=false;
			window.status=""; // status bar text for no sound
			imgObj.src = "images/mute.gif"; // image for no sound
			sound = true;
		}
		else {
			wmp.Mute = true;
			//document.WMP64.Mute=true;
			window.status="Radio has been muted"; // status bar text for sound
			imgObj.src = "images/muteOver.gif"; // image for sound
			sound = false;
		}
	//}
}

// power button
var power = true; // set to true if stream starts automatically when page loads
function stopMedia() {
	var wmp = getObj("WMP64");
	var imgObj = getObj("powerButton");
	if(power) {
		wmp.Stop();
		//document.WMP64.Stop();
		imgObj.src = "images/power_off.gif";
		imgObj.onMouseOver = "this.src='images/power_on.gif'";
		power = false;
	}
	else {
		wmp.Play();
		//document.WMP64.Play();
		imgObj.src = "images/power_on.gif";
		imgObj.onMouseOver = "this.src='images/power_off.gif'";
		power = true;
	}
}