FTshow = MMshow = false;

// Função acionada pelos campos "URL da Foto", "Credito" e "Legenda" do UltNot.
// ('credito|imagem|legenda')
function makePhoto(imginfos)
{
  imgs = imginfos.split('|');
  if(imgs[1]!='')
  {
    FTshow = true;
    document.write('<div class="BBFotCr">'+imgs[0]+'</div>');
    document.write('<div><img src='+imgs[1]+' name="BBImage"></div>');
    document.write('<div class="BBFotLg">'+imgs[2]+'</div>');
  }
}

// Função acionada pelo campo "Link de destino" do UltNot.
// ('icone|link|texto','icone|link|texto',...)
// Parametro "texto" opicional qdo utilizado nomes de icones pre-cadastrados.
function makeBox()
{
  if(arguments.length>0)
  {
    MMshow = true;
    for(i=0;i<arguments.length;i++)
  	{
    	box = arguments[i].split('|');
      Mtxt = box[2];
      if(!Mtxt && box[0]=="assistir")     { Mtxt = "VEJA O TRAILER" }
      if(!Mtxt && box[0]=="verfotos")     { Mtxt = "VEJA FOTOS" }
      if(!Mtxt && box[0]=="ondeassistir") { Mtxt = "ONDE ASSISTIR" }
      document.write('<div id=BBMult><img src="http://img.uol.com.br/ico_'+box[0]+'.gif"><a href='+box[1]+'>'+Mtxt+'</a></div>');
    }
  }
}



// Função acionada pelo campo "Links Relacionados" do UltNot.
// ('chapeu','texto|link','texto|link',...)
function makeFooter()
{
  if(arguments[0])
  {
    document.write('<div id="v10bb" class="FootChp">'+arguments[0]+':</div>');
    for(i=1;i<arguments.length;i++)
  	{
    	foot = arguments[i].split('|');
      document.write('<div class="FootTxt"><img src=http://tv.i.uol.com.br/bullet-o.gif><a href='+foot[1]+'>'+foot[0]+'</a></div>');
    }
    document.write('<br>');
  }
}


//Oculta Tabela id=BXB qdo não ha foto nem links multimidia
function BBhide()
{
  if(FTshow==false && MMshow==false)
  {
    document.getElementById('BxB').style.display = 'none';
  }
}


// 14/9/2004 criação da função BBhide. -mariorez
// 02/9/2004 chamada das funções adicionadas ao template da noticia, passando argumentos utilizando os campos do UltNot. -mariorez
// 25/5/2004 funcao resizetable no onLoad da imagem. -gbarros
// 27/7/2004 inclusão de id de css. -mcarneiro
