	var requiredMinorVersion = 0;
	var requiredRevision = 28;
	var requiredMajorVersion = 9;							
	var hasProductInstall = DetectFlashVer(6, 0, 65);
	var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	String.prototype.getQueryString = function(name)
	{
	  var reg = new RegExp("(^|&|\\?)"+ name +"=([^&]*)(&|$)"), r;
	  if ( r=this.match(reg) ) return unescape(r[2]);
	  return null;
	}
	var updScript = document.getElementsByTagName("script");
	/*alert(updScript.length);*/
	var updScriptSrc ="";
		
	for (var i=0;i<updScript.length;i++ )		{			
		if (updScript[i].src.indexOf('yatio.js')>=0){			 
			updScriptSrc = updScript[i].src;
		}
	}  
	var uv_userid =  updScriptSrc.getQueryString("user");
	var uv_domain = updScriptSrc.getQueryString("ip");
	var uv_begin = updScriptSrc.getQueryString("begin");
	var uv_w = 	updScriptSrc.getQueryString("w");
	var uv_h =  parseInt(updScriptSrc.getQueryString("h"));
	var uv_speed = updScriptSrc.getQueryString("speed");
   	var uv_id = updScriptSrc.getQueryString("id");
   	var uv_tmpURI = updScriptSrc.getQueryString("uri");
   	var uv_rightbar=updScriptSrc.getQueryString("rightbar");
   //	alert(uv_rightbar);
   	//add by zw
   	var facefile=updScriptSrc.getQueryString("facefile");
   	var username=updScriptSrc.getQueryString("username");
   //	alert(username);
   	var domainid=updScriptSrc.getQueryString("domainid");
   	//add for wintv
   	var player=updScriptSrc.getQueryString("core");
   	var tran="transparent";
   	if(player=="player10")
   	{
   		tran="window";
   	}
   	var channel=updScriptSrc.getQueryString("channel");
   	var logo=updScriptSrc.getQueryString("logo");
   	var companyname= updScriptSrc.getQueryString("companyname");
   	
	var uv_winLiveURI="";;
	if(uv_tmpURI!=null&&uv_tmpURI.length>0){
   	   	uv_winLiveURI = "&uri="+uv_tmpURI;
   	}
   	var uv_liveParam1 = updScriptSrc.getQueryString("live");
   	if(uv_liveParam1!=null&&uv_liveParam1.length>0){
  	 	   uv_begin+="&live="+uv_liveParam1;
	}
	if ( hasProductInstall && !hasRequestedVersion ){								
		var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
		alert(window.location);
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	 	var MMdoctitle = document.title;
	
		AC_FL_RunContent(
			"src", uv_domain+"player/playerProductInstall",
			"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
			"width", uv_w,
			"height", uv_h,
			"align", "middle",
			"id", uv_domain+"core/"+player+"?user="+uv_userid+"&domain="+channel+"&configPath="+uv_domain+"&core="+player+"&speed="+uv_speed+"&p1="+logo+"&p2="+uv_rightbar+"&p3="+Math.random(),
			"quality", "high",
			"bgcolor", "#000000",
			"name", "player",
			"wmode",tran,
			'allowFullScreen', 'true',									
			"allowScriptAccess","always",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer" 
		);
	}else if(hasRequestedVersion){
		AC_FL_RunContent(
				"src", uv_domain+"core/"+player+"?user="+uv_userid+"&domain="+channel+"&configPath="+uv_domain+"&core="+player+"&speed="+uv_speed+"&p1="+logo+"&p2="+uv_rightbar+"&p3="+Math.random(),
				"width", uv_w,
				"height", uv_h,
				"align", "middle",
				"id", "player",
				"quality", "high",
				"wmode",tran,
				"bgcolor", "#000000",
				"name", "player",
				'allowFullScreen', 'true',
				"allowScriptAccess","always",
				"type", "application/x-shockwave-flash",
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else {  // flash is too old or we can't detect the plugin		 
		  var alternateContent = 'To promise to watching the high-clear video content,please'
		 	+ '<a href=http://www.adobe.com/go/getflash/>click here and install</a>flashplayer plug-in';
		  document.write(alternateContent);  // insert non-flash content
	}
	var jsReady = false;
	var neww='';
	var meeting='';
	function pageInit()
	{
         jsReady = true;
     }
	function serverStart()
	{
		neww=window.open(uv_domain+"/customerserviceuser/pop.do?userid="+uv_userid+"&path="+uv_domain+"&companyname="+escape(companyname),"","width=630px,height=420px");
	}
	function startMeeting()
	{
		meeting=window.open(uv_domain+"/usermeeting/run_meetingforother.action?user="+username,"","width=900px,height=600px");
	}
	function serverStop()
	{
		//alert('111');
	}
	window.onunload=function(){
		neww.close();
		meeting.close();
	}
	window.onload=function(){
		pageInit();
	}
	if (document.all){
		window.attachEvent('onload',pageInit)
	}
	else{
		window.addEventListener('load',pageInit,false);
	}	
