// JavaScript Document
function getFlashTit(texto, ancho, alto, color)
{
	if(alto == null) alto = 30;
	if(color == null) color = 'rojo';
	var obj = "";
	if(color == "rojo") obj = '<embed src="/swf/titulo.swf?texto=' + texto + '&alto=' + alto + '" width="' + ancho + '" height="' + (alto + 2) + '" wmode="transparent" />';
	else if(color == "azul") obj = '<embed src="/swf/titulo_azul.swf?texto=' + texto + '&alto=' + alto + '" width="' + ancho + '" height="' + (alto + 2) + '" wmode="transparent" />';
	
	return obj;
}
/*$(document).ready(function(){
    $("h1").each(function (i,domEle) {
        cont = this.innerHTML;
		ancho = "100%";
		color = "rojo";
		if($(this).hasClass("azul")) color = 'azul';
		newCont = getFlashTit(cont, ancho, 24, color);
		this.innerHTML = newCont;
      });
	$("h2").each(function (i,domEle) {
        cont = this.innerHTML;
		ancho = "100%";
		color = "rojo";
		if($(this).hasClass("azul")) color = 'azul';
		newCont = getFlashTit(cont, ancho, 18, color);
		this.innerHTML = newCont;
      });
	$(".tit_flash").each(function (i,domEle) {
        cont = this.innerHTML;
		ancho = "100%";
		color = "rojo";
		if($(this).hasClass("azul")) color = 'azul';
		newCont = getFlashTit(cont, ancho, 14, color);
		this.innerHTML = newCont;
      });
  });*/
