//Author: Lucian Plesnicute Webstars Ltd.
//----------------------------------------
function PhPlayer(){
	//this.title = "";

	this.file = "";
   if (navigator.appName.indexOf("Netscape") != -1) 
	  this.player = document.embeds["ph_player"];
  else  if (navigator.appName.indexOf("Microsoft") != -1) 
	  this.player = document.getElementById("ph_player");
  else this.player = document.embeds["ph_player"];// For further development

}
//----------------------------------------
PhPlayer.prototype.play = function(){
	if(this.file != this.player.GetVariable("file"))
	   this.player.SetVariable("file",this.file);
    this.player.SetVariable("play",1);
	
//   this.title = this.player.GetVariable("title");
 //  alert(this.title);
}
//----------------------------------------
PhPlayer.prototype.pause = function(){
     this.player.SetVariable("play",3);
}
//----------------------------------------
PhPlayer.prototype.stop = function(){
    this.player.SetVariable("play",2);
}
//----------------------------------------
PhPlayer.prototype.volume = function(vol){
	if(typeof(vol)!="undefined")
	   this.player.SetVariable("vol",vol);
	else  
	  return this.player.GetVariable("vol");
}
//----------------------------------------
PhPlayer.prototype.position = function(pos){
	if(typeof(pos)!="undefined")
	   this.player.SetVariable("position",pos);
	else  
	  return this.player.GetVariable("position");
}
//----------------------------------------
PhPlayer.prototype.about = function(){
   this.player.SetVariable("about",0);
}

