﻿
document.write('<'+'script'+' '+'type="text/javascript"'+' '+'src="http://img.meiyidian.com/v1/j.js"'+'></'+'script'+'>');

mydGame=function(){}
mydGame.prototype={
	Load:function(){
		this.Play({f:'http://file.meiyidian.com/yx1.hr1/'+clksvc_ci+'/'+clksvc_ai+'.swf',w:680,h:520});
	},
	Control:function(){
		var oF=navigator.plugins["Shockwave Flash"]||new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
		return(oF)?1:0;
	},
	Version:function(){
		var oF;
		var v=null;
		if(navigator.plugins&&navigator.mimeTypes.length){
			oF=navigator.plugins["Shockwave Flash"];
			if(oF&&oF.description){
				v=oF.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")[0];
			}
		}
		else if(window.ActiveXObject){
			var vb='<scr'+'ipt language=vbscript type=text/vbscript\> \n';
			vb+='Function VBGetSwfVer(i) \n';
			vb+='on error resume next \n';
			vb+='Dim swControl, swVersion \n';
			vb+='swVersion = 0 \n';
			vb+='set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i)) \n';
			vb+='if (IsObject(swControl)) then \n';
			vb+='swVersion = swControl.GetVariable("$version") \n';
			vb+='end if \n';
			vb+='VBGetSwfVer = swVersion \n';
			vb+='End Function \n';
			vb+='<\/scr'+'ipt\>';
			document.write(vb);
			for(i=25;i>0;i--)v=VBGetSwfVer(i);
			if(v!=0&&v!=null)v=v.split(",")[0].split(" ")[1];
		}
		return parseInt(v);
	},
	Support:function(ver){
		if(isNaN(this.Version())||(this.Version()<ver)){
			return false;
		}
	return true;
	},
	Play:function(fla){
		var flacid=(fla.cid)?fla.cid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
		flaid=(fla.id)?fla.id:"dpFlashPlayer",
		flaver=(fla.version)?fla.version:"6,0,0,0",
		flawidth=(fla.w)?fla.w:0,
		flaheight=(fla.h)?fla.h:0,
		flasrc=(fla.f)?fla.f:false,
		flaloop=(fla.loop)?fla.loop:true,
		flamode=(fla.wmode)?fla.wmode:"transparent";
		var ht='<object classid="'+flacid+'"'+' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flaver+'" '+' id="'+flaid+'" width="'+flawidth+'" height="'+flaheight+'">'+'<param name="movie" value="'+flasrc+'">'+'<param name="wmode" value="'+flamode+'">'+'<param name="loop" value="'+flaloop+'">'+'<param name="quality" value="high">'+'<embed name="'+flaid+'" src="'+flasrc+'" loop="'+flaloop+'" wmode="'+flamode+'" quality="high" '+' swLiveConnect="true" width="'+flawidth+'" height="'+flaheight+'"'+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'+'</embed></object>';
		document.write(ht);
	}
}

