function changeTxt(){
	
	var arValues = new Array();
	var h1Elements = document.getElementsByTagName('h1');
	var altura = new Array();;
	
	for(var i = 0; i< h1Elements.length; i++){
		arValues.push(h1Elements[i].childNodes[0].nodeValue);
		altura.push(h1Elements[i].offsetHeight);
	}
		
	for(var i = 0; i < arValues.length; i++){
		h1Elements[i].innerHTML = applyFlash(arValues[i], altura[i]);
	}
}


function applyFlash(valor, altura){
	var txtFlash = '';

	txtFlash += '<object style="position:relative; z-index:0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="titulo_flash" width="420" height="'+ altura +'">';
	txtFlash +=	'<param name="allowScriptAccess" value="sameDomain" />';
	txtFlash += '<param name="allowFullScreen" value="false" />';
	txtFlash += '<param name="movie" value="_swf/h1_flash.swf?teste='+ valor +'" />';
    txtFlash += '<param name="quality" value="high" />';
    txtFlash += '<param name="bgcolor" value="#f2f2f2" />';
	txtFlash += '<param name="wmode" value="transparent" />';
	txtFlash += '<param name="aling" value="bottom" />';
	txtFlash += '<param name="scale" value="noscale" />';
    txtFlash += '<embed src="_swf/h1_flash.swf?teste='+ valor +'" width="420" height="'+ altura +'" quality="high" bgcolor="#f2f2f2" scale="noscale"wmode="transparent" name="titulo_flash" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	txtFlash += '</object>';
	
	return txtFlash;
}