function MediaPlayer()
{
this.Common = new Common();
this.Browser = this.Common.Browser();
this.Frame = null;
this.SetFrame = function(){
this.Frame = window.frames["frame_details"];
}
this.GetFrame = function(){
return window.frames["frame_details"];
}
this.Player = null;
this.SetPlayer = function(){
this.Player = window.frames["frame_details"].document.getElementById('MediaPlayer');
}
this.GetPlayer = function(){
return this.Player;
}
this.LoadMediaPlayer = function(src, SoundState){
if(isFullScreen == true){
if(screen.width=="800" && screen.height == "600"){
src = src.replace(/800x600/,'0000x0000');
}else if(screen.width=="1024" && screen.height == "768"){
src = src.replace(/1024x768/,'0000x0000');
}else if(screen.width=="1280" && screen.height == "1024"){
src = src.replace(/1280x1024/,'0000x0000');
}
loadFSProduct = src;
}else{
if(screen.width=="800" && screen.height == "600"){
src = src.replace(/0000x0000/,'800x600');
}else if(screen.width=="1024" && screen.height == "768"){
src = src.replace(/0000x0000/,'1024x768');
}else if(screen.width=="1280" && screen.height == "1024"){
src = src.replace(/0000x0000/,'1280x1024');
}
loadFSProduct = src;
}
this.Common.SetSourceWithCommands(src);
}
this.SetMediaPlayerSoundStatus = function(SoundState){
if (this.GetPlayer() == null){return;}
if (this.Player.id == "MediaPlayer")
{
if (SoundState == true)
{
if (this.Browser == "IE") { this.Player.Mute = false; }
else { this.Player.SetMute(false); }
}
else
{
if (this.Browser == "IE") {	this.Player.Mute = true; }
else { this.Player.SetMute(true); }
}
}
if (this.Player.id == "FlashPlayer")
{
if (!this.Player.object.Playing) {}
else { }
}
if (this.Player.id == "QuickTimePlayer")
{
if (SoundState == true) { this.Player.SetMute(false); }
else { this.Player.SetMute(true); }
}
}
}

