// RSS, http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm

function CUniPlayer(i_myJSONObject)
{	
	this.currentcontent=i_myJSONObject["currentcontent"];
	var 	t_NumberContent=this.currentcontent;
//	var ObjCUniPlayer=new CUniPlayer(i_myJSONObject["jsondata"][t_NumberContent],i_myJSONObject); 
	
	
	
	this.Player=i_myJSONObject["jsondata"][t_NumberContent]["player"];
	this.URL=i_myJSONObject["jsondata"][t_NumberContent]["url"];
	this.LayerDIVName=i_myJSONObject["divname"]; //["jsondata"][t_NumberContent]["divname"];
	this.oMedia=null;
	
	//Public
	
	//Private
	CUniPlayer.prototype.InsertActiveX = CUniPlayer_InsertActiveX;	
	CUniPlayer.prototype.Inital = CUniPlayer_Inital;
	CUniPlayer.prototype.Play = CUniPlayer_Play;
		
	// Inital
	this.Inital(i_myJSONObject);	
}
function CUniPlayer_Play(i_myJSONObject)
{
		try{
		
		this.uniplay_Control.Play(i_myJSONObject);
		}catch(err){}
	
}
	
function CUniPlayer_Inital(i_myJSONObject)
{


	// Add ActiveX object
	var t_UniplayDivName=this.LayerDIVName+this.Player;	
	var t_TagHTML=CUniPlayer_InsertActiveX(this.Player,t_UniplayDivName,i_myJSONObject);




	
	var t_website="";
	try
    {
	    t_website=i_myJSONObject["jsondata"][this.currentcontent]["parameter"]["website"];		
	}catch(err)
	{
		t_website=g_GlobeValue["default"]["website"];			
	}


	// Media, URL	
	this.oMedia=new MenuItem();
	this.oMedia.URL=this.URL;
	
	if (t_website!="" && t_website!=null  ){t_TagHTML='<a href="'+t_website+'">'+t_TagHTML+'</a>';  }		
//	document.getElementById(this.LayerDIVName).innerHTML=t_TagHTML;			
	var t_obj=document.getElementById(this.LayerDIVName);
	if (t_obj!=null)
	{	
	
		try{
	// call your function to remove all the children from your element
		so_clearInnerHTML(document.getElementById(this.LayerDIVName));	
		freeRef(document.getElementById(this.LayerDIVName+"DivForinnerHTML"));	
		DeleteChildren(document.getElementById(this.LayerDIVName));			
      	t_obj.innerHTML=null;
		}catch(e)
		{}			
		var elem = document.createElement(this.LayerDIVName+'DivForinnerHTML');
		t_obj.appendChild(elem);
		elem.innerHTML = t_TagHTML;
	}





				

	
	// Create Player Object.		
	if (this.Player=="CWMP")
	{			    
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);
		this.uniplay_Control=new CWMP(t_objUniplayDivName,this.oMedia );
		this.uniplay_Control.Play();			
	}else if (this.Player=="CWEB")
	{		
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);								
	    this.uniplay_Control=new CWEB(t_objUniplayDivName,this.oMedia,i_myJSONObject );				
	}else if (this.Player=="CFLASH")
	{
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);							
	    this.uniplay_Control=new CFLASH(t_objUniplayDivName,this.oMedia,i_myJSONObject );			
	}else if (this.Player=="CFLASHFLV")
	{
		fun_debug(t_UniplayDivName);
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);							
	    this.uniplay_Control=new CFLASHFLV(t_objUniplayDivName,this.oMedia,i_myJSONObject );			
	}else if (this.Player=="CPHOTO")
	{
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);								
	    this.uniplay_Control=new CPHOTO(t_objUniplayDivName,this.oMedia,i_myJSONObject );			
	}else if (this.Player=="CTV")
	{
		
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);								
	    this.uniplay_Control=new CTV(t_objUniplayDivName,this.oMedia,i_myJSONObject );			

	}else if (this.Player=="CVLC")
	{				  


    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);
		        t_objUniplayDivName.style.height = "100%";
		        t_objUniplayDivName.style.width  = "100%"; 
				

							
		if (BrowserDetect.browser=="Explorer")
		{
				try
		      	{																      	
					var t_mrl="DSContent/Event-2-6_8.jpg";
					t_mrl="DSContent/FighterPilotWMVHD.wmv";												
		      	}
		      	catch(e)
		      	{
			      	 alert("please install VLC plug-in /ActiveX");
		      	}				
		}else
		{	
			 try
		     {			 	
				var t_Event="CVLC_status('"+t_UniplayDivName+"')";							
				
		
		      }
		      catch(e)
		      {
		         alert("Please install VLC plug-in");
		      }		
		}	
		
    	var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);								
	    this.uniplay_Control=new CVLC(t_objUniplayDivName,this.oMedia,i_myJSONObject );
		

						
	}		
}




function so_clearInnerHTML(obj) {
	// so long as obj has children, remove them
	while(obj.firstChild)
	{
	 obj.removeChild(obj.firstChild);
	}
}

function freeRef(obj) 
{
	try{
	 var chi, cou, len, nam;
	 chi = obj.childNodes;
	 if(chi) {
	  len = chi.length;
	  for (cou = 0; cou < len; cou++) {
	   freeRef(obj.childNodes[cou]);
	  }
	 }
	 chi = obj.attributes;
	 if(chi) {
	  len = chi.length;
	  for(cou = 0; cou < len; cou++) 
	  {
	   nam = chi[cou].name;
	   if(typeof(obj[nam]) == 'function') 
	   {
		obj[nam] = null;
	   }else
	   {
	  		obj[nam] = null;
	   }
	  }
	 }
 }catch(e)
 {
 }
}



function DeleteChildren(node){
  if (node) {
    for (var x = node.childNodes.length - 1; x >= 0; x--) {
      var childNode = node.childNodes[x];
      
      if (childNode.hasChildNodes()){
        DeleteChildren(childNode);
      }

      node.removeChild(childNode);

      if (childNode.outerHTML){
        childNode.outerHTML = '';
      }

      childNode = null;

    }

    node = null;
  }
}



function CVLC_status(t_UniplayDivName)
{
	try
	{
		    var t_objUniplayDivName=JSFUN_getElementByIdCompatible(t_UniplayDivName);	
			 var t_1=t_objUniplayDivName.isplaying(); // ? "Playing" : "Not playing";
				
				
								
				if (t_1==false)
				{

				}else
				{

					var t_Event="CVLC_status('"+t_UniplayDivName+"')";					
					setTimeout(t_Event, 2000 );
				}

		

				
				
    }
		      catch(e)
		      {
		         alert("aaaa  Error does not work in danish version");
		      }						
}
function CUniPlayer_InsertActiveX(i_Player,i_UniplayDivName,i_myJSONObject)
{
	
	var 	t_NumberContent=i_myJSONObject["currentcontent"];
	
	
	var url=i_myJSONObject["jsondata"][t_NumberContent]["url"];
    var str = "";
	
	
	this.Player=i_myJSONObject["jsondata"][t_NumberContent]["player"];
	this.URL=i_myJSONObject["jsondata"][t_NumberContent]["url"];
	
	
		// Object Tag
		this.ObjectTag = new Array();
		
        if (BrowserDetect.browser=="Explorer") 
		{
             // create the WMP for IE
             str = '<object id="'+i_UniplayDivName+'"   classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="100%" height="100%"  style="left: 0px; top: 0px; width: 100%; height: 100%; visibility: visible; z-index: 1;" >';
        } else {
           //  str = '<object id="'+i_UniplayDivName+'"type="application/x-ms-wmp" data="'+url+'" width="320" height="240">';
             str = '<object id="'+i_UniplayDivName+'"type="application/x-ms-wmp" width="100%" height="100%">';
		}

		str += ' <PARAM name="stretchToFit" value="true">';	
        str += '<param name="uiMode" value="none">';
        str += '</object>';
		
			
		str += '<script language="JavaScript" for="'+i_UniplayDivName+'" event="PlayStateChange(NewState)">';		
		str +=   '    var  EventArray = {"action":"event","actiondetail":"PlayStateChange","player":"CWMP"};   EventArray["data"]=NewState; ';
		str +=   '      EventArray["UniplayDivName"]="'+i_UniplayDivName+'";       ';
		str +=   '      EventArray["jsondata"]='+i_myJSONObject.toJSONString()+';    '
       //  str +=  'YAHOO.log(GetPlayerState(NewState)); 
		str +=   '    JS_JSONStringProcess(EventArray);   ';          
		str += '</script>   ';						
		this.ObjectTag[0] =str;


		
		 



								
		this.ObjectTag[1]  = '<OBJECT ID="RP" CLASSID="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"';
		this.ObjectTag[1] += ' style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; visibility: visible; z-index: 1;">';
		this.ObjectTag[1] += ' <PARAM name="CONTROLS" value="ImageWindow">';
		this.ObjectTag[1] += ' <PARAM name="BACKGROUNDCOLOR" VALUE="white">';
		this.ObjectTag[1] += '</OBJECT>';
		
		this.ObjectTag[2]  = '<OBJECT ID="DVD" CLASSID="clsid:38EE5CEE-4B62-11D3-854F-00A0C9C898E7" onMouseDown="if(safeToCall(\'parent.PlayeronClick\')) parent.PlayeronClick(); UNI_doClickedMedia(true)" onMouseMove="showDMM(event)"';
		this.ObjectTag[2] += ' style="position: absolute; visibility: visible; z-index: 2;">';
		this.ObjectTag[2] += ' <PARAM name="BackColor" VALUE="1048592">';
		this.ObjectTag[2] += ' <PARAM name="ColorKey" VALUE="1048592">';
		this.ObjectTag[2] += ' <PARAM name="WindowlessActivation" VALUE="1">';
		this.ObjectTag[2] += ' <PARAM name="DVDDirectory" VALUE=oMedia.url>';
		this.ObjectTag[2] += '</OBJECT>';
		
		this.ObjectTag[2] += '<div id="dvdOSD" class="OSDStatus"></div>'
		



		
//this.ObjectTag[3]  = '<object id="DUniversalTVX" classid="clsid:3254EA30-3F03-4A63-A2BE-5F35344B035E"  width="100%" height="100%"  VIEWASTEXT>';
this.ObjectTag[3]  = '<object id="'+i_UniplayDivName+'"  classid="clsid:3254EA30-3F03-4A63-A2BE-5F35344B035E"  width="100%" height="100%"  VIEWASTEXT>';
this.ObjectTag[3] += '    <PARAM NAME="_Version" VALUE="65536">';
this.ObjectTag[3] += '    <PARAM NAME="_ExtentX" VALUE="10240">';
this.ObjectTag[3] += '    <PARAM NAME="_ExtentY" VALUE="8853">';
this.ObjectTag[3] += '    <PARAM NAME="_StockProps" VALUE="0">';
this.ObjectTag[3] += '</OBJECT> ';



		
		
		
		this.ObjectTag[4]  = '<IMG ID="'+i_UniplayDivName+'"  style="height:100%; width:100%;   border:0px; " ></IMG>'; 
//		this.ObjectTag[4] +=   '  <script> function CPhotoEventTimeEvent(){ var  EventArray = {"action":"event","actiondetail":"PlayStateChange","player":"CPHOTO"};    EventArray["data"]=0; ';
//		this.ObjectTag[4] +=   '      EventArray["UniplayDivName"]="'+i_UniplayDivName+'";       ';
//		this.ObjectTag[4] +=   '      EventArray["jsondata"]='+i_myJSONObject.toJSONString()+';  ';
  //      this.ObjectTag[4] +=   '       setTimeout(JS_JSONStringProcess(EventArray),2000); }  </script> ';
//		this.ObjectTag[4] +=   '  <script> function CPhotoEventTimeEvent(){alert("Hi!"); } ';
	
	

		
		
		//this.ObjectTag[4]  = '<IMG ID="PHOTO"></IMG>'; 
		
	//	this.ObjectTag[4]  = "<div class='topmain yui-imgload-maingroup' id='topmain' style='height:100%; width:100%; background-image:url(\"http://developer.yahoo.com/yui/docs/assets/examples/exampleimages/small/museum.jpg\");' title='group 1; mouseover image; 2 sec limit'></div>";	
		
		
		//
		
		// this.ObjectTag[5]  = '<DIV ID="'+i_UniplayDivName+'"  ></DIV>'; 
			//	 var t_HTMLCode='<IFRAME id="WEBIframe"  onFocus="this.blur()"   src="'+this.Media.URL+'" frameBorder="0" scrolling="no" application="yes" height="100%" width="100%"></IFRAME>';						              			
	     // document.getElementById(t_UniplayDivName).innerHTML=t_HTMLCode; //"123123123123123";
		 this.ObjectTag[5]  = '<IFRAME id="'+i_UniplayDivName+'"  onFocus="this.blur()"   src="'+url+'" frameBorder="0" scrolling="no" application="yes" height="100%" width="100%"></IFRAME>';						              			
	
	//	value="'+url+'"
			
		//CFLASH	
		/*
		this.ObjectTag[6]  = '<OBJECT ID="'+i_UniplayDivName+'"  '; 
		this.ObjectTag[6] += ' CLASSID="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" HIDEFOCUS="true" width="100%" height="100%" onMouseMove="showDMM(event)">';
		this.ObjectTag[6] += ' <PARAM NAME="Movie" VALUE="">';
		this.ObjectTag[6] += ' <PARAM NAME="WMode" VALUE="opaque">';
		this.ObjectTag[6] += ' <PARAM NAME="Play" VALUE="-1">'; 
		this.ObjectTag[6] += ' <PARAM NAME="Loop" VALUE="0">';
		this.ObjectTag[6] += ' <PARAM NAME="Quality" VALUE="medium">';
		this.ObjectTag[6] += ' <PARAM NAME="SAlign" VALUE="">';
		this.ObjectTag[6] += ' <PARAM NAME="Menu" VALUE="0">';
		this.ObjectTag[6] += ' <PARAM NAME="Base" VALUE="">';
		this.ObjectTag[6] += ' <PARAM NAME="AllowScriptAccess" VALUE="always">';
  		this.ObjectTag[6] += ' <PARAM NAME="Scale" VALUE="ShowAll">'; 
    	this.ObjectTag[6] += ' <PARAM NAME="SeamlessTabbing" VALUE="1">';
    	this.ObjectTag[6] += '</OBJECT>';
*/

	//po: flash player,flash has problem to fit the 100% screen.
	if (BrowserDetect.browser=="Explorer")
	{
		this.ObjectTag[6]  ='<p id="'+i_UniplayDivName+'"  >  </p>'; 
	}else	
	//	this.ObjectTag[6]  +='<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>';
	{
		this.ObjectTag[6]  ='<object id="'+i_UniplayDivName+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">  <param name="movie" >  <param name="quality" value="high">   <param name="loop" value="0">  <param name="width" value="100%">  <param name="height" value="100%">  <embed src="cd_pwrpt.swf" width="100%" height="100%" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object> ';
	}




		this.ObjectTag[7]  = '<div id="APP"></div>';
	/*	
		var pType = oMedia.playerType.toUpperCase(); 
		var tckrPath = pType == undefined ? 'ticker.htm' :
									 pType == '' ? 'ticker.htm' :
									 pType == 'TICKER2' ? '../js-ticker/ticker.htm' : 'ticker.htm';
*/									 
		//this.ObjectTag[8]  = '<div id="TICKER">';
//    this.ObjectTag[8]  = '<iframe id="TICKER" name="Tscr" src="' + tckrPath + '" frameborder="0" style="position:absolute;left:0;width:100%;height:100%"></iframe>';    
    //this.ObjectTag[8]  += '<script type="text/javascript">alert("called")</script>';      
    //this.ObjectTag[8]  += '</div>';      

		this.ObjectTag[9]  = '<OBJECT ID="WMP6" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"';
		this.ObjectTag[9] += ' style="visibility: hidden; z-index: 1;">';
    this.ObjectTag[9] += ' <PARAM NAME="ShowControls" VALUE="false">';
    this.ObjectTag[9] += ' <PARAM NAME="ShowTracker" VALUE="false">';
    this.ObjectTag[9] += ' <PARAM NAME="FullScreenMode" VALUE="0">';
    this.ObjectTag[9] += ' <PARAM NAME="EnableContextMenu" VALUE="0">';
    //this.ObjectTag[9] += ' <PARAM NAME="WindowlessVideo" VALUE="1">';
    this.ObjectTag[9] += ' <PARAM NAME="AutoStart" VALUE="1">';
    this.ObjectTag[9] += '</OBJECT>';

		this.ObjectTag[10]  = '<OBJECT ID="WEBAX" CLASSID="CLSID:CE2460FC-8E92-49C8-A174-94213C5C8096"';
		this.ObjectTag[10] += ' style="left: 0px; top: 0px; width: 100%; height: 100%; visibility: visible;">';
		
		//this.ObjectTag[10] += '<SCRIPT id=paxeev LANGUAGE="' + lngge + '" FOR=PHOTOAX EVENT="PhotoEnd">';
		//this.ObjectTag[10] += ' if(oUniPlayer != null) PHOTOAX_PhotoEnd(oUniPlayer)';
		//this.ObjectTag[10] += '</SCRIPT>';	
		//this.ObjectTag[10] += '<SCRIPT id=paxpev LANGUAGE="' + lngge + '" FOR=PHOTOAX EVENT="PhotoPlay">';
		//this.ObjectTag[10] += ' if(oUniPlayer != null) PHOTOAX_PhotoPlay(oUniPlayer)';
	//	this.ObjectTag[10] += '</SCRIPT>';
	
		
		this.ObjectTag[11]  = '<DIV ID="HELP"></DIV>'; // for help pages (html)
		
		

		

		
		//CVLC
		this.ObjectTag[12]  ='<div id="'+i_UniplayDivName+'"><div>';
		
		//CMPLAY
		this.ObjectTag[13]  ='<div id="'+i_UniplayDivName+'"><div>';
		
		
		
	


	if (BrowserDetect.browser=="Explorer")
	{
	     // var  t_Str ='<OBJECT id="vlc" name="vlc" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" height="0" width="0"><param name="Loop" value="false"/> <param name="MRL" value="DSContent/FighterPilotWMVHD.wmv" />   </OBJECT>'; 
		//  var  t_Str ='<OBJECT id="vlc" name="vlc" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" height="0" width="0"><param name="Loop" value="false"/>  <param name="MRL" value="DSContent/Event-2-6_8.jpg" />   </OBJECT>'; 
		  var  t_Str ='<OBJECT id="vlc" name="vlc" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" height="100%" width="100%"><param name="Loop" value="true"/> <param name="autoplay" value="True"/>    <param name="MRL" value="'+this.URL+'" />    </OBJECT>'; 
		//this.URL
		

		//url="DSContent/FighterPilotWMVHD.wmv";
		 var  t_Str ='  <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"      width="100%" height="100%"     ';
              t_Str +='   codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"    ';
              t_Str +='          id="'+i_UniplayDivName+'"            events="True"    >   ';
			  
              t_Str +=' <param name="MRL" value="'+url+'" />   ';
            //  t_Str +=' <param name="MRL" value="DSContent/FighterPilotWMVHD.wmv" />   ';
              t_Str +=' <param name="ShowDisplay" value="False" />    <param name="AutoLoop" value="False" />    <param name="AutoPlay" value="True" />    <param name="Volume" value="100" />   ';
              t_Str +=' <param name="StartTime" value="0" />   ';
          //    t_Str +=' <EMBED pluginspage="http://www.videolan.org"            type="application/x-vlc-plugin"           progid="VideoLAN.VLCPlugin.2"           width="640"           height="480"   ';
	      //    t_Str +='          name="vlc">   ';
          //    t_Str +='  </EMBED>   ';
              t_Str +='  </OBJECT>   ';
		
		
		this.ObjectTag[13]  = 	t_Str;
	  	  
	 }else
	 { 
			  	var t_Str='';

				t_Str =' <object type="application/x-vlc-plugin"     id="'+i_UniplayDivName+'"  height="100%" width="100%" autoplay="yes" loop="no"     target="'+url+'"   > ';
				t_Str +='<param name="AutoLoop" value="False" /> '; // <param name="AutoPlay" value="True" />';
				t_Str +='<param name="ShowDisplay" value="False" />  ';				
				t_Str +=' </object> ';
		
		
		/*
		
t_Str =' <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"     ';
t_Str +='            codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"     ';
t_Str +='            width="100%"            height="100%"            id="'+i_UniplayDivName+'"     ';
t_Str +='            events="True">     ';
t_Str +='    <param name="MRL" value="'+url+'" />     ';
t_Str +='    <param name="ShowDisplay" value="True" />     ';
t_Str +='    <param name="AutoLoop" value="False" />     ';
t_Str +='    <param name="AutoPlay" value="True" />     ';
t_Str +='    <param name="Volume" value="50" />     ';
t_Str +='    <param name="StartTime" value="0" />     ';
t_Str +='    <EMBED pluginspage="http://www.videolan.org"     ';
t_Str +='           type="application/x-vlc-plugin"     ';
t_Str +='           progid="VideoLAN.VLCPlugin.2"     ';
t_Str +='           width="100%"     ';
t_Str +='           height="100%"        ';
t_Str +='           name="'+i_UniplayDivName+'"      ';
t_Str +='           target="'+url+'"       ';
t_Str +='  >   '; 
t_Str +='    </EMBED>    </OBJECT>   ';
		
		*/
		
		
		
		
		
		
		
		this.ObjectTag[13]  = 	t_Str;

			 
	} 	        




/*
-Google Video and YouTube

<object?type="application/x-shockwave-flash"?
?? data="http://video.google.com/googleplayer.swf???
8755581808731033658"?
?? width="400"?height="326"?id="VideoPlayback">
?? <param?name="movie"?
???? value="http://video.google.com/googleplayer.swf???
docId=8755581808731033658"?/>
?? <param?name="allowScriptAcess"?value="sameDomain"?/>
?? <param?name="quality"?value="best"?/>
?? <param?name="bgcolor"?value="#FFFFFF"?/>
?? <param?name="scale"?value="noScale"?/>
?? <param?name="salign"?value="TL"?/>
?? <param?name="FlashVars"?value="playerMode=embedded"?/>
</object>
 */

/*  Quick time
 <object?classid="clsid:02BF25D5-8C17-4B23-BC80-??
D3488ABDDC6B"?
?? codebase="http://www.apple.com/qtactivex/qtplugin.cab"?
?? width="320"?height="260">
?? <param?name="src"?
???? value="http://www.sarahsnotecards.com/catalunyalive/??
diables.mov"?/>
?? <param?name="controller"?value="true"?/>
?? <param?name="autoplay"?value="false"?/>
?? <!--[if?!IE]>-->
?? <object?type="video/quicktime"?
???? data="http://www.sarahsnotecards.com/catalunyalive/??
diables.mov"?
???? width="320"?height="260">
???? <param?name="autoplay"?value="false"?/>
???? <param?name="controller"?value="true"?/>
?? </object>
?? <!--<![endif]-->
</object>

 */




	/////////////////////////////////////
/*
<embed type="application/x-vlc-plugin"
         name="video1"
         autoplay="yes" loop="yes" height="545" width="100%"
         target="http://202.120.58.165:1000" />
</TD></TR>
</TABLE>
<input type="button" value="Play" onclick="document.video1.play();" ID=Button1/>
<input type="button" value="Pause" onclick="document.video1.pause();" ID=Button2/>

<input type="button" value="Stop" onclick="document.video1.stop();" ID=Button3/>
     <input type="button" name="chewa" value="Seek -10s" onclick="document.video1.seek(-10,true);" ID=Button4/>
          <input type="button" name="chewa" value="Seek +10s" onclick="document.video1.seek(10,true);" ID=Button5/>

<input type="button" value="Fullscreen" onclick="document.video1.fullscreen()" ID=Button6/>
<input type="button" name="chewa" value="Increase volume" onclick="volume_up()" ID=Button7/>
<input type="button" name="chewa" value="Decrease volume" onclick="volume_down()" ID=Button8/>
<input type="button" name="chewa" value="Mute" onclick="document.video1.mute()" />
<div class="content">
<table>
<tr><td>Status&nbsp;</td><td><span id="play_status">Unknown</span>&nbsp;
Time&nbsp;<span id="time">--:--:--</span>&nbsp;

Total Length&nbsp;<span id="length">--:--:--</span>&nbsp;
Volume&nbsp;<span id="volume_status"></span>&nbsp;
</td></tr>

</table>
</div>

<script language="javascript">
  set_item( "E:\\Books\\DirectShow-1\\Media\\chicken.wmv" );
  var volume = document.getElementById("volume_status");
  volume.innerHTML = document.video1.get_volume()+ " %";
  setTimeout("status()", 1 );
</script>
	*/
	//////////////////////////////////////
												
		//
		if (i_Player=="CWMP")
		{		
			return ObjectTag[0];	

		}else if (i_Player=="CTV")
		{
			return ObjectTag[3];
		}else if (i_Player=="CPHOTO")
		{
			return ObjectTag[4];

		}else if (i_Player=="CWEB")
		{
			return ObjectTag[5];				
		}else if (i_Player=="CFLASH")
		{			
			return ObjectTag[6];
		}else if (i_Player=="CFLASHFLV")
		{							
			return ObjectTag[12];			
		}else if (i_Player=="CVLC")
		{							
			return ObjectTag[13];			
		}

}

/*
function CWMP6( oWMP6, oMedia )
{
	this.WMP = oWMP6;
	this.Media = oMedia;
	this.cbFunction = null;
	this.PlayerState = null;
	//this.StopButton = false;
	this.retI = -1;
	this.bReverse;
	this.pbRetI = -1;
	this.BProgRetI;
	
	CWMP6.prototype.Play = WMP6_Play;
	CWMP6.prototype.Stop = WMP6_Stop;
	CWMP6.prototype.Pause = WMP6_Pause;
	CWMP6.prototype.Forward = WMP6_Forward;
	CWMP6.prototype.Rewind = WMP6_Rewind;
	CWMP6.prototype.Skip = WMP6_Skip;
	CWMP6.prototype.Replay = WMP6_Replay;
	CWMP6.prototype.Seek = WMP6_Seek;
	CWMP6.prototype.PlaybackChange = WMP6_PlaybackChange;
	CWMP6.prototype.Hide = WMP6_Hide;
	CWMP6.prototype.FitToSize = WMP6_FitToSize;
	CWMP6.prototype.CB = WMP6_CB;
	CWMP6.prototype.MM = WMP6_MM;
	CWMP6.prototype.statusArea = WMP6_statusArea;
	CWMP6.prototype.Error = WMP6_Error;
	
	this.WMP.SendMouseClickEvents = true;
	this.WMP.SendMouseMoveEvents = true;
	//this.WMP.WindowlessVideo = true;
}
*/

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MenuItem()
{
	this.MnuID = 0;
	this.MenuFolderID = 0
	this.ActionID = 0;
	this.Seq = 0;
	this.URL = "";
	this.Title = "";
	this.Icon = "";
	this.Color = "FFFFFF";
	this.Tip = "";
	this.PlayerType = "";
	this.OrganizerID = 0;
	this.IconBackground = "";
	this.FileType = "";
	this.ExtraData = "";
	this.ElementDesc = "";
	this.CommandID = 0;
	this.IconPath = "";
	this.Editable = "no";
	this.Browsable = "no";
	this.ContentID = 0; 
	this.Source = ""; 
	this.ESC_Marker=false;
}


	