﻿/**************************************************************************
* 更新时间 : 2008-02-15
* 作者 : Gdpnmw.com
***************************************************************************/



///////////////////////////////////////////////////////////////////////////
// 
///////////////////////////////////////////////////////////////////////////
function SelObjFlash(src, width, height, param, mode) {// mode => 1:ObjFlash 2:ObjFlash02 3:ObjFlash03 4:ObjFlash04
	switch(mode) {
		case 1: ObjFlash01(src, width, height, param); break;
		case 2: ObjFlash02(src, width, height, param); break;
		case 3: ObjFlash03(src, width, height, param); break;
		case 4: ObjFlash04(src, width, height, param); break;
	}
}


function ObjFlash01(src, width, height, param) {//
	param = param || "";
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + width + "\" height=\"" + height + "\">");
	document.writeln("	<param name=\"movie\" value=\"" + src + "\">");
	document.writeln("	<param name=\"flashVars\" value=\"" + param + "\">");
	document.writeln("  <param name='allowScriptAccess' value='always' />");
	document.writeln("  <param name='allowFullScreen' value='true' />");
	document.writeln("	<embed src=\"" + src + "?" + param + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
	document.writeln("</object>");
}

function ObjFlash02(src, width, height, param) {//flash 
	param = param || "";
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + width + "\" height=\"" + height + "\">");
	document.writeln("	<param name=\"movie\" value=\"" + src + "\">");
	document.writeln("	<param name=\"flashVars\" value=\"" + param + "\">");
	document.writeln("  <param name='allowScriptAccess' value='always' />");
	document.writeln("  <param name='allowFullScreen' value='true' />");
	document.writeln("	<param name='wmode' value='transparent' />");
	document.writeln("	<embed src=\"" + src + "?" + param + "\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
	document.writeln("</object>");
}

function ObjFlash03(src, width, height, param) {//flash
	param = param || "";
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + width + "\" height=\"" + height + "\">");
	document.writeln("	<param name=\"movie\" value=\"" + src + "\">");
	document.writeln("	<param name=\"flashVars\" value=\"" + param + "\">");
	document.writeln("  <param name='allowScriptAccess' value='always' />");
	document.writeln("  <param name='allowFullScreen' value='true' />");
	document.writeln("	<param name='wmode' value='opaque' />");
	document.writeln("	<embed src=\"" + src + "?" + param + "\" quality=\"high\" wmode=\"opaque\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
	document.writeln("</object>");
}

function ObjFlash04(src, width, height, param) {//
	param = param || "";
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + width + "\" height=\"" + height + "\">");
	document.writeln("	<param name=\"movie\" value=\"" + src + "\">");
	document.writeln("	<param name=\"quality\" value=\"High\">");
	document.writeln("	<embed src=\"" + src + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
	document.writeln("</object>");
}

///////////////////////////////////////////////////////////////////////////
