
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call main_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
function main_DoFSCommand(command, args) {
	var command = String(command);
	var args = String(args);
	var arr = args.split(";");
	switch(command){
		case "00":
			window.top.close();
			//if(confirm("您确定要退出吗？")) window.top.close();
			break;
		case "11":
			runSend(args);
			break;
		case "22":
			doSetSCOID(args);
			break;
	}
}

function getLinkProtectUrl( myUrl )
{
var vParamName = "play";
var now = new Date();
var h = now.getHours(); h+="";if( h.length < 2 ) h = "0" + h;
var m = now.getMinutes(); m+="";if( m.length < 2 ) m = "0" + m;
var s = now.getSeconds(); s+="";if( s.length < 2 ) s = "0" + s;
var time = h + m + s ;
var vNewUrl = myUrl + "?" + vParamName + "=" + time;
return vNewUrl;
}

function runSWF(U,T,W,H){
	  document.write('<object '
      + ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
      + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"'
      + ' align="middle"'
      + ' id=' + T
      + ' width=' + W
      + ' height=' + H + '>'
      + ' <param name="allowScriptAccess" value="always" />'
      + ' <param name="allowFullScreen" value="true" />'
      + ' <param name="quality" value="high" />'
      + ' <param name="align" value="middle" />'
	  //flash文件顶部靠齐
      //+ ' <param name="salign" value="t" />'
	  //flash文件可缩放、支持全屏显示
      //+ ' <param name="scale" value="noscale" />'
      //+ ' <param name="wmode" value="transparent" />'
      + ' <param name="movie" value="' + U + '">'
      + ' <embed src="' + U + '"'
      + ' name=' + T
      + ' width=' + W
      + ' height=' + H
      + ' quality="high"'
      + ' align="middle"'
      //+ ' salign="t"'
      //+ ' scale="noscale"'
      //+ ' wmode="transparent"'
      + ' swLiveConnect="true"'
      + ' allowFullScreen="true"'
      + ' allowScriptAccess="always"'
      + ' type="application/x-shockwave-flash"'
      + ' pluginspage="http://www.macromedia.com/go/getflashplayer"'
      + ' />'
      + ' </object>')
}

function getflash(){
	return window.document.main
}
function keyDone(aevent) {
	if(!aevent) 
	aevent=window.event;
  if(aevent.altKey && aevent.keyCode==90){//alt+z
		getflash().playControl(-1);
	}else if(aevent.altKey && aevent.keyCode==67 ){//alt+c
		getflash().playControl(1);
	}else if(aevent.altKey && aevent.keyCode==88){//alt+x
		getflash().playControl(0);
	}else if(aevent.keyCode==119 ){//F8
		getflash().playControl(999);
	}else if(aevent.keyCode==120 ){//F9
		getflash().playControl(998);
	}
}
function playControl(num){alert(num);}
function setNeedLrc(num){getflash().playControl(num);}
