var sMedia="";
		function createMediaControlForIE(urlPath)
		{			
			sMedia = "<OBJECT id='Player' style='WIDTH: 436px; HEIGHT: 408px' classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' VIEWASTEXT>";
			sMedia += "<PARAM NAME='URL' VALUE='"+urlPath+"'>";
			sMedia += "<PARAM NAME='rate' VALUE='1'>";
			sMedia += "<PARAM NAME='balance' VALUE='0'>";
			sMedia += "<PARAM NAME='currentPosition' VALUE='0'>";
			sMedia += "<PARAM NAME='defaultFrame' VALUE=''>";
			sMedia += "<PARAM NAME='playCount' VALUE='1'>";
			sMedia += "<PARAM NAME='autoStart' VALUE='-1'>";
			sMedia += "<PARAM NAME='currentMarker' VALUE='0'>";
			sMedia += "<PARAM NAME='invokeURLs' VALUE='-1'>";
			sMedia += "<PARAM NAME='baseURL' VALUE=''>";
			sMedia += "<PARAM NAME='volume' VALUE='50'>";
			sMedia += "<PARAM NAME='mute' VALUE='0'>";
			sMedia += "<PARAM NAME='uiMode' VALUE='full'>";
			sMedia += "<PARAM NAME='stretchToFit' VALUE='1'>";
			sMedia += "<PARAM NAME='windowlessVideo' VALUE='0'>";
			sMedia += "<PARAM NAME='enabled' VALUE='-1'>";
			sMedia += "<PARAM NAME='enableContextMenu' VALUE='-1'>";
			sMedia += "<PARAM NAME='fullScreen' VALUE='0'>";
			sMedia += "<PARAM NAME='SAMIStyle' VALUE=''>";
			sMedia += "<PARAM NAME='SAMILang' VALUE=''>";
			sMedia += "<PARAM NAME='SAMIFilename' VALUE=''>";
			sMedia += "<PARAM NAME='captioningID' VALUE=''>";
			sMedia += "<PARAM NAME='enableErrorDialogs' VALUE='0'>";
			sMedia += "<PARAM NAME='_cx' VALUE='11536'>";
			sMedia += "<PARAM NAME='_cy' VALUE='10795'>";
			sMedia += "</OBJECT>";
			return sMedia;
		}
		function createMediaControlForFirFox(urlPath)
		{
			sMedia="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+urlPath+"' name='MediaPlayer1' style='WIDTH: 436px; HEIGHT: 408' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";		
			return sMedia;
		}
		
		function createMediaControl(urlPath)
		{   
			if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1)
			{	
					document.write(createMediaControlForIE(urlPath));
			}
			else			
			{	
					document.write(createMediaControlForFirFox(urlPath));
			}
		}
		
		function PlayFileOnIE(urlPath)
		{
			var objectMedia=document.getElementById('Player');
			if (objectMedia!=undefined || objectMedia != null)
			{
				objectMedia.url=urlPath;
			}
			else
			{
				document.getElementById('music1').innerHTML=createMediaControlForIE(urlPath);
				PlayFileOnIE(urlPath);
			}
		}
		function PlayFileOnFF(urlPath)
		{
			document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+urlPath+"' name='MediaPlayer1' width='436' height='408' controltype='2' showcontrols='1' showstatusbar='0' AutoStart='true' loop='true'></embed>";		
		}
		
		function PlayFile(urlPath)
		{   
			if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1)
			{	
					PlayFileOnIE(urlPath);
			}
			else			
			{	
					PlayFileOnFF(urlPath);
			}
		}		