<!-- // Detect Client Browser type
var isIEape  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

function makeFlash(flash_url, flash_w, flash_h, div_id, div_w, div_h, flash_query) {

	//var theh= (parseInt(h)+35);
	if(div_id==""){
		document.write('<div id="container" style="float:left; width:'+div_w+'px; height:'+div_h+'px; margin: 0 0 0 0; top:0px; left:0px; overflow: hidden; visibility:visible;"></div>');
		div_id="container";
	}
	if(isIEape) {
		var tempApe = document.createElement('object');
		document.getElementById(div_id).appendChild(tempApe);
		tempApe.width = flash_w;
		tempApe.height = flash_h;
		tempApe.id = "container_swf";
		tempApe.classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
		tempApe.wmode = "opaque";
		tempApe.allowScriptAccess = "always";
		tempApe.movie = flash_url+"?"+flash_query;
	} else {
			var tagApe= '<OBJECT' +
			'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  align="middle" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" ID="container_swf">' +
			'<PARAM NAME="allowScriptAccess" VALUE="always" />' +
			'<PARAM NAME="movie" VALUE="'+flash_url+'?'+flash_query +'" />' +
			'<PARAM NAME="wmode" VALUE="transparent" />' +
			'<PARAM NAME="quality" VALUE="high" />' +
			'<EMBED SRC="'+flash_url+'?'+flash_query+'" QUALITY="high" BGCOLOR="#FFFFFF" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" NAME="container_swf" WMODE="transparent" ALIGN="middle" allowScriptAccess="always" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />' +
			'</OBJECT>';
			document.getElementById(div_id).innerHTML = tagApe;
	}
	return(true);
}
function makeFlashFull(flash_url, flash_w, flash_h, div_id, div_w, div_h, flash_query) {

	//var theh= (parseInt(h)+35);
	if(div_id==""){
		document.write('<div id="container" style="float:left; width:'+div_w+'px; height:'+div_h+'px; margin: 0 0 0 0; top:0px; left:0px; overflow: hidden; visibility:visible;"></div>');
		div_id="container";
	}
	
	if(isIEape) {
		var tempApe = document.createElement('object');
		document.getElementById(div_id).appendChild(tempApe);
		tempApe.width = flash_w;
		tempApe.height = flash_h;
		tempApe.id = "container_swf";
		tempApe.codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"
		tempApe.classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
		tempApe.allowFullScreen ="true";
		tempApe.allowScriptAccess = "always";
		tempApe.movie = flash_url+"?"+flash_query;
	} else {
			var tagApe= '<OBJECT' +
			'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"  align="middle" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" ID="container_swf">' +
			'<PARAM NAME="allowScriptAccess" VALUE="always" />' +
			'<PARAM NAME="movie" VALUE="'+flash_url+'?'+flash_query +'" />' +
			'<PARAM NAME="quality" VALUE="high" />' +
			'<EMBED SRC="'+flash_url+'?'+flash_query+'" QUALITY="high" BGCOLOR="#000000" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" NAME="container_swf" ALIGN="middle" allowFullScreen="true" allowScriptAccess="always" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />' +
			'</OBJECT>';
			document.getElementById(div_id).innerHTML = tagApe;
	}
	return(true);
}


