function rollOn(imgName) {
	if (document.images) {
		document.images[imgName].src = onImgArray[imgName].src
	}//if
}//rollOn
	
function rollOff(imgName) {
	if (document.images) {
		document.images[imgName].src = offImgArray[imgName].src
	}//if
}//rollOff
	
function setMsg(msg) {
	window.status = msg
	return true
}//setMsg

var isMSIE = false;
var browser = navigator.userAgent;
//var embedCode;



//
// RealPlayer JavaScript wrapper functions
//

function doplay () {
	if(document.getElementById('pstream').CanPlay()) {
		document.video.DoPlay();
	}
}//doplay

function dopause () {
	if(document.getElementById('pstream').CanPause()) {
		document.video.DoPause();
	}
}//dopause

function dostop () {
	if(document.getElementById('pstream').CanStop()) {
		document.video.DoStop();
	}
}//dostop


function seekTo(position) {
	var positionToSeek = position
	if(document.getElementById) {
		document.getElementById("pstream").SetPosition(positionToSeek);
		return true;
	} else {
		window.alert("RealPlayer is not responding to JavaScript.")
		return false;
	}
}

function lengthGet() {
	if(document.pstream.GetLength() == 0) {
		alert("The clip isn't playing, so no length is available.")
	}
}

function positionGet() {
	if(document.pstream.GetPosition() == 0) {
		alert("You haven't started the clip yet.")
	}
}
