




function check_server_type(){
	this_url = top.window.location.href;
	char_num_of_h = (this_url.indexOf('http'));
	determining_character_number = char_num_of_h + 4;
	determining_character = (this_url.charAt(determining_character_number));
	determining_character = determining_character.toUpperCase();


	server_type = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";
	pluginspage = "http://www.macromedia.com/go/getflashplayer";
}

function render_flash(filename, width, height){
	win_height=window.document.body.clientHeight*.9;
	win_width=1.3333*win_height;

	check_server_type();
	swf_width = width;
	swf_height = height;

	document.write('<div>');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+ server_type +'" width="100%" height="100%" id="'+filename+'">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+ filename +'">');
		document.write('<param name="quality" value="best">');
		document.write("<param name='loop' value='false' />");
		document.write('<embed src="'+ filename +'" quality="best"  bgcolor="#000000" pluginspage="'+pluginspage+'" type="application/x-shockwave-flash" width="100%" height="100%" swLiveConnect="true" loop="false" name="'+filename+'"></embed>');
	document.write('</object>');
	document.write('</div>');
}