function encode_utf( s )
{
  return unescape( encodeURIComponent( s ) );
} 
function textoflash(){
	
	
	divs = document.getElementsByTagName('DIV');
	obj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">';
	obj +='<param name="movie" value="swf/new_font.swf?txt=#texto#&cor=#cor#&fsize=#size#" />';
	obj +='<param name="quality" value="high" />';
	obj +='<embed src="swf/new_font.swf?txt=#texto#&cor=#cor#&fsize=#size#" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>';
	obj +='</object>';
	obj2  ='<p style="height:42px" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="155" height="35" >';
	obj2 +='<param name="movie" value="swf/inscrevase.swf?corProg=#cor#&caminho=#lnk#" />';
	obj2 +='<param name="quality" value="high" />';
	obj2 +='<embed src="swf/inscrevase.swf?corProg=#cor#&caminho=#lnk#" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="155" height="35"></embed>';
	obj2 +='</object></p>';
	
	for(var i=0, item; item=divs[i]; i++){
		var texto = '';
		var textoaux = '';
		if(item.id.indexOf('*')!=-1){
			
			textoaux = item.innerHTML;
			//if(textoaux.indexOf('<object') != -1){
			//} else {
				textoaux = textoaux.replace(/^\s+|\s+$/g,"");
				//if(textoaux.indexOf(' ') != -1){
//					
//						textoaux = textoaux.split(' ');
//						for(var i =0, txt; txt = textoaux[i]; i++){
//							
//							txt = txt.replace(/^\s+|\s+$/g,"");
//							if(txt.indexOf('#') != -1){
//								
//								texto += "<font color='#" + txt.split('#')[0] + "'>" + encodeURIComponent(txt.split('#')[1]) + "</font>" ;	
//							} else {
//								texto += encodeURIComponent(txt);
//							}
//							texto+=" ";
//						}
//					
//				}else{
//					if(textoaux.indexOf('#') != -1){
//							texto = "<font color='#" + textoaux.split('#')[0] + "'>" + encodeURIComponent(textoaux.split('#')[1]) + "</font>" ;
//					} else {
//						texto = encodeURIComponent(textoaux);
//					}
//				}
			
			texto  = encodeURIComponent(textoaux.replace(/^\s+|\s+$/g,""));
			//alert(obj.replace('#texto#',texto).replace('#texto#',texto).replace('#cor#',item.id.split('*')[1]).replace('#cor#',item.id.split('*')[1]).replace('#size#',item.id.split('*')[2]).replace('#size#',item.id.split('*')[2]));
			if(item.id.split('*').length <3){
				item.innerHTML = obj.replace('#texto#',texto).replace('#texto#',texto).replace('#cor#',item.id.split('*')[1]).replace('#cor#',item.id.split('*')[1]).replace('#size#',item.id.split('*')[2]).replace('#size#','20');
			}else{
				item.innerHTML = obj.replace('#texto#',texto).replace('#texto#',texto).replace('#cor#',item.id.split('*')[1]).replace('#cor#',item.id.split('*')[1]).replace('#size#',item.id.split('*')[2]).replace('#size#',item.id.split('*')[2]);
			}
			texto = '';
			textoaux = '';
			//}
		}
		if(item.id.indexOf('#')!=-1){
			
			item.innerHTML= obj2.replace('#cor#',item.innerHTML).replace('#cor#',item.innerHTML).replace('#lnk#',linkInscrevase).replace('#lnk#',linkInscrevase);
		}
		
	}
}
