/* 
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie
*/
function setFlashWidth(divid, newW){
		document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
		document.getElementById(divid).style.height = newH+"px";	
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function initialize() {
	var ie = navigator.appName.indexOf("Microsoft") != -1;
	flashVideoPlayer = (ie) ? window['videoPlayer'] : document['videoPlayer'];
}
function callFlashPlayVideo(video) {
	initialize();
	flashVideoPlayer.playVideo(video);
}
function callFlashStopVideo() {
	initialize();
	flashVideoPlayer.stopVideo();
}
function callFlashPauseVideo() {
	initialize();
	flashVideoPlayer.pauseVideo();
}
function callFlashResumeVideo() {
	initialize();
	flashVideoPlayer.resumeVideo();
}
function callFlashRewindVideo() {
	initialize();
	flashVideoPlayer.rewindVideo();
}
function callFlashForwardVideo() {
	initialize();
	flashVideoPlayer.forwardVideo();
}
function callFlashMuteVideo() {
	initialize();
	flashVideoPlayer.muteVideo();
}
function callFlashUnmuteVideo() {
	initialize();
	flashVideoPlayer.unmuteVideo();
}
function callFlashSetPBTextLeft(text1) {
	initialize();
	flashVideoPlayer.setPBTextLeft(text1);
}
function callFlashSetPBTextRight(text1) {
	initialize();
	flashVideoPlayer.setPBTextRight(text1);
}
function callFlashSetSkinColor(hex) {
	initialize();
	flashVideoPlayer.setSkinColor(hex);
}
function callFlashGetbandwidthVideo() {
	initialize();
	document.forms['videoForm'].bandwidth.value = flashVideoPlayer.getBandwidth();
}

	