var browserType = "";
function retval_IE_Embed_Flash( file , width , height ) {
	var retval = "";
	retval+='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="z-index: 1;"';
	retval+=' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0"';
	retval+=' WIDTH=' + width + ' HEIGHT=' + height + '>';
	retval+='  <PARAM NAME=movie VALUE="'+file+'"> ';
	retval+='  <PARAM NAME=quality VALUE=autohigh> ';
	retval+='  <param name="wmode" value="opaque" />';
	retval+='<EMBED SRC="'+file+'"';
	retval+=' swLiveConnect=TRUE WIDTH='+width+ ' HEIGHT='+height;
	retval+=' QUALITY=autohigh ';
	retval+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
	retval+='</EMBED>';
	retval+='</OBJECT>';
	return retval;
}
function IE_Embed_Flash( file , width , height ) {
	var s = retval_IE_Embed_Flash( file , width , height );
	document.write( s );
}

function retval_FF_Embed_Flash( file, width, height )
{
	var retval = "";
	retval+='<object width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" data="'+file+'" style="z-index: 1;">';
	retval+='	<param name="movie" value="'+file+'" />';
	retval+='	<param name="quality" value="high" />';
	retval+='	<param name="wmode" value="opaque" />';
	retval+='</object>';
	return retval;
}

function FF_Embed_Flash( file, width, height ) {
	var s = retval_FF_Embed_Flash( file , width , height );
	document.write( s );
}

function Embed_Flash( file, width, height )
{
	if (browserType == "")
	{
		var uA = navigator.userAgent;
		browserType = "unknown";
		if (uA.indexOf("Opera") > -1 ) { browserType = "Opera"; }
		else if (uA.indexOf("Safari") > -1 ) { browserType = "Safari"; }
		else if (uA.indexOf("Konqueror") > -1 ) { browserType = "Konqueror"; }
		else if (uA.indexOf("Gecko") > -1 ) { browserType = "Mozilla"; }
		else if (uA.indexOf("MSIE") > -1 ) { browserType = "Internet Explorer"; }
	}
	if (browserType == "Internet Explorer")
		IE_Embed_Flash(file, width, height );
	else
		FF_Embed_Flash(file, width, height );
}

function retval_Embed_Flash( file , width , height ) {
	if (browserType == "")
	{
		var uA = navigator.userAgent;
		browserType = "unknown";
		if (uA.indexOf("Opera") > -1 ) { browserType = "Opera"; }
		else if (uA.indexOf("Safari") > -1 ) { browserType = "Safari"; }
		else if (uA.indexOf("Konqueror") > -1 ) { browserType = "Konqueror"; }
		else if (uA.indexOf("Gecko") > -1 ) { browserType = "Mozilla"; }
		else if (uA.indexOf("MSIE") > -1 ) { browserType = "Internet Explorer"; }
	}
	if (browserType == "Internet Explorer")
		return retval_IE_Embed_Flash(file, width, height );
	else
		return retval_FF_Embed_Flash(file, width, height );
}

