BBSize = FTshow = MMshow = false;

// MONTA TAB FOTO: 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]!='')
  {
    BBSize = true;
    FTshow = true;
    if(imgs[0]!='') { document.write('<div id="a10nb" class="BBFotCr">'+imgs[0]+'</div>'); }
    document.write('<div><img src='+imgs[1]+' name="BBImage"></div>');
    if(imgs[2]!='') { document.write('<div id="v10nb" class="BBFotLg">'+imgs[2]+'</div>'); }
    else  { document.write('<img src=http://img.uol.com.br/x.gif width=1 height=7><br>'); }
  }
}

// MONTA LINKS ABAIXO DA FOTO: Função acionada pelo campo "Link de destino" do UltNot.
// ('icone|link|texto','icone|link|texto',...)
function makeBox()
{
  if(arguments.length>0)
  {
    MMshow = true;
    for(i=0;i<arguments.length;i++)
  	{
    	box = arguments[i].split('|');
      document.write('<div id=BBMult><img src="http://img.uol.com.br/ico_'+box[0]+'.gif"><a href='+box[1]+' id=a10nw>'+box[2]+'</a></div>');
    }
  }
}

// MONTA NOTAS NO RODAPÉ DA NOTICIAS: Função acionada pelo campo "Links Relacionados" do UltNot.
// Cria notas no rodapé das notícias
// Sintaxe: ('chapeu1|texto|link|texto|link','chapeu2|texto|link|texto|link','...)
function makeFooter()
{
  if(arguments[0])
  {
    tam = arguments.length;
    foot = new Array();
    for(i=0;i<tam;i++)
  	{
    	foot[i] = arguments[i].split('|');
      for(n=1;n<foot[i].length;n=n+2)
      {
        n==1 ? document.write('<div id="v10bb" class="FootChp">'+foot[i][0]+':</div>') : '';
        document.write('<div class="FootTxt"><img src=http://car.i.uol.com.br/2005/seta.gif style="margin-right:5px"><a href='+foot[i][n+1]+' id="a13nb" style="text-decoration:underline">'+foot[i][n]+'</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';
  }
}