var bln_is_ie			= (document.all && navigator.plugins.length == 0 && navigator.userAgent.indexOf('Win') != -1) ? true : false;
var bln_is_ie5p			= (bln_is_ie && (navigator.userAgent.toLowerCase().indexOf('msie 5') != -1));
var bln_is_ie5			= (bln_is_ie && (navigator.userAgent.toLowerCase().indexOf('msie 5.0') != -1));
var ie_box 				= bln_is_ie && (document.compatMode == null || document.compatMode == 'BackCompat');

function fun_show_flash_obj(int_width,int_height,str_id,str_url,str_flash_vars,str_param,str_style,str_script){

	str_script = str_script || '';
	var str_script_txt = '';
	
	if(str_script != ''){
		if(str_script.indexOf(':') != -1){
			var arr_script = str_script.split('|');
			var arr_script_txt = [];
			for(var int_count = 0; int_count < arr_script.length; int_count++){
				arr_script_txt[int_count] = arr_script[int_count].split(':');
				str_script_txt += ' ' + arr_script_txt[int_count][0] + '="' + arr_script_txt[int_count][1] + '"';
			}
		}
	}

	document.writeln('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0\" width=\"'+int_width+'\" height=\"'+int_height+'\" name=\"'+str_id+'\" id=\"'+str_id+'\"'+((str_style != '' && str_style  != null) ? ' style=\"' + str_style + '\"' : '')+'\"' + str_script_txt + '>');
	document.writeln('	<param name=\"movie\" value=\"'+str_url+'?'+str_param+'\">');
	document.writeln('	<param name=\"quality\" value=\"high\">');
	document.writeln('	<param name=\"wmode\" value="transparent">');
	document.writeln('	<param name=\"flashvars\" value=\"'+str_flash_vars+'\">');
	document.writeln('	<param name=\"allowScriptAccess\" value=\"sameDomain\">');
	
	
	str_param = (str_flash_vars != '' && str_param != '') ? ('?' + str_flash_vars + '&' + str_param) : '';
	
	document.writeln('	<embed src=\"'+str_url+str_param+'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"'+int_width+'\" height=\"'+int_height+'\"></embed>');
	document.writeln('</object>');
}
