
function codificacao(texto){
	var Browser;	
	Browser=navigator.appName;
	
	if (Browser == "Microsoft Internet Explorer")
	{	
		return texto;
	} else {
		var string = (texto+'').replace(/\r\n/g, "\n").replace(/\r/g, "\n");
	 
		var utftext = "";
		var start, end;
		var stringl = 0;
	 
		start = end = 0;
		stringl = string.length;
		for (var n = 0; n < stringl; n++) {
			var c1 = string.charCodeAt(n);
			var enc = null;
	 
			if (c1 < 128) {
				end++;
			} else if (c1 > 127 && c1 < 2048) {
				enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
			} else {
				enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
			}
			if (enc !== null) {
				if (end > start) {
					utftext += string.substring(start, end);
				}
				utftext += enc;
				start = end = n+1;
			}
		}
	 
		if (end > start) {
			utftext += string.substring(start, string.length);
		}
	 
		return utftext;
	}        
}

function theflash (misc_flashfile, misc_width, misc_height) {

	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write(' ID=flash5clickTAG WIDTH='+misc_width+' HEIGHT='+misc_height+'>');
	document.write(' <PARAM NAME=movie VALUE="'+ misc_flashfile +'">');
	document.write(' <param name=wmode value=transparent><PARAM NAME=loop VALUE=true>');
	document.write(' <PARAM NAME=quality VALUE=high>');
	document.write(' <EMBED src="'+ misc_flashfile +'" loop=true wmode=transparent quality=high ');
	document.write(' swLiveConnect=FALSE WIDTH='+misc_width+' HEIGHT='+misc_height+'');
	document.write(' TYPE="application/x-shockwave-flash"');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
	
}
