// Vetor Not?cias & Midia
var lastYear = 2011;
var lastMonth = 5;
var dirPress = new Array();
dirPress[1] = "slideshow/"; // Tipo 1 - Not?cias
dirPress[2] = ""; // Tipo 2 - Clippings
dirPress[3] = "slideshow/"; // Tipo 3 - Fotos P?gina Principal
var btwpress = new Array();
var fotopress = new Array();
var lrgImg = 560;
var imgdstk = new Array();
imgdstk[0] = new loadPhoto("TAHITI em 2020: PAPEETE, MOOREA e BORA BORA",1,"slideshow01.jpg","slideshow01.pdf",lrgImg,"_blank",7);
imgdstk[1] = new loadPhoto("ALTER DO CHÃO em 2020",1,"slideshow04.jpg","slideshow04.pdf",lrgImg,"_blank",7);
imgdstk[2] = new loadPhoto("FERNANDO DE NORONHA em 2020",1,"slideshow06.jpg","slideshow06.pdf",lrgImg,"_blank",7);
function loadYear(ano)
{
this.ano = ano;
}
function loadMonthYear(mesano,ultdia)
{
this.mesano = mesano;
this.ultdia = ultdia;
}
function loadFlagDay(flag)
{
this.flag = flag;
}
function loadNews(data, titulo, tipo, arquivo, fonte, target)
{
this.data = data;
this.titulo = titulo;
this.tipo = tipo;
this.arquivo = arquivo;
this.fonte = fonte;
if (target == null)
{
this.target = "_blank";
}
else
{
this.target = target;
}
}
function setUltDia(ano,mes)
{
try
{
return btwpress[ano][mes].ultdia;
}
catch(err)
{
return 0;
}
}
function writeYearMonth(ano,mes)
{
mesano = "Notícias BTW - " + btwpress[ano][mes].mesano
ultdia = setUltDia(ano,mes)
if (ultdia > 0)
{
document.write("
");
document.write("");
document.write(mesano);
document.write("");
document.write("
");
for (var k = ultdia; k > 0; k--)
{
try
{
if (btwpress[ano][mes][k].flag == 1)
{
var l = 0;
var dat = btwpress[ano][mes][k][l].data;
document.write("");
document.write(dat);
document.write("
");
document.write("");
while (btwpress[ano][mes][k][l].data != null)
{
var tit = btwpress[ano][mes][k][l].titulo;
var tip = btwpress[ano][mes][k][l].tipo;
var arq = btwpress[ano][mes][k][l].arquivo;
var fnt = btwpress[ano][mes][k][l].fonte;
var trg = btwpress[ano][mes][k][l].target;
var end = dirPress[tip] + arq;
var lnk = makeLnk("../",end,trg,tit,4);
document.write(" - ");
document.write(" " + lnk);
document.write(" " + "
Fonte: " + fnt + "
");
document.write(" ");
l++;
}
document.write("
");
}
}
catch(err)
{
}
}
}
}
function lastNews()
{
var maxnews = 12;
var auxmax = 0
document.write("");
document.write("Notícias da BTW");
document.write("
");
document.write("
");
for (var i = lastYear; i > 2009; i--)
{
if (i == lastYear)
{
ultmes = lastMonth
}
else
{
ultmes = 12
}
for (var j = ultmes; j > 0; j--)
{
ultdia = setUltDia(i,j)
if ((ultdia > 0) && (auxmax <= maxnews))
{
mesano = btwpress[i][j].mesano
for (var k = ultdia; k > 0; k--)
{
try
{
if ((btwpress[i][j][k].flag == 1) && (auxmax <= maxnews))
{
var l = 0;
var dat = btwpress[i][j][k][l].data;
document.write("");
document.write(dat);
document.write("
");
document.write("");
while (btwpress[i][j][k][l].data != null)
{
var tit = btwpress[i][j][k][l].titulo;
var tip = btwpress[i][j][k][l].tipo;
var arq = btwpress[i][j][k][l].arquivo;
var fnt = btwpress[i][j][k][l].fonte;
var trg = btwpress[i][j][k][l].target;
var end = dirPress[tip] + arq;
var lnk = makeLnk("",end,trg,tit,4);
document.write(" - ");
document.write(" " + lnk);
document.write(" " + "
Fonte: " + fnt + "
");
document.write(" ");
auxmax++
l++
}
document.write("
");
}
}
catch(err)
{
}
}
}
}
}
document.write(" Ver mais...");
}
function validateFrame(ano,mes)
{
if ((ano != 0) && (mes != 0))
{
loadFrame(ano,mes);
}
}
function loadFrame(ano,mes)
{
try
{
mesano = btwpress[ano][mes].mesano
if (btwpress[ano][mes].mesano != null)
{
if (mes < 10)
{
var mes_f = "0" + mes;
}
else
{
var mes_f = mes;
}
var page = "showmedia" + ano + mes_f + ".html";
parent.frames["0"].document.open();
var aux = parent.frames["0"].location.href = page;
parent.frames["0"].document.close();
}
}
catch(err)
{
var page = "shownomedia.html";
parent.frames["0"].document.open();
var aux = parent.frames["0"].location.href = page;
parent.frames["0"].document.close();
}
}
function writeStyle()
{
return true;
}
function loadPhoto(titulo, tipo, imagem, arquivo, largura, target,js)
{
this.titulo = titulo;
this.tipo = tipo;
this.imagem = imagem;
this.arquivo = arquivo;
this.largura = largura;
this.js = js;
if (target == null)
{
this.target = "_blank";
}
else
{
this.target = target;
}
}
function writePortifolio()
{
var lrgDiv = document.getElementById("media_content").offsetWidth;
var screenType = getScreenType();
if (screenType == 1)
{
var space = ((lrgDiv - lrgImg)/2) * 0.08;
}
else
{
var space = ((lrgDiv - lrgImg)/2) * 0.9;
}
document.write("");
document.write("Notícias da btw");
document.write("
");
if (navigator.appName == "Netscape")
{
document.write("");
}
else
{
document.write("");
}
document.write("
");
document.write("
");
document.write("
");
if (navigator.appName == "Netscape")
{
document.write("");
}
else
{
document.write("
");
}
document.write("
");
}
function writeDestaques()
{
//document.write("");
//document.write("Destaques By The Way");
//document.write("
");
if (navigator.appName == "Netscape")
{
document.write("");
}
else
{
var lrgDiv = document.getElementById("media_content").offsetWidth;
var space = ((lrgDiv - lrgImg)/2);
document.write("");
}
document.write("
");
document.write("
");
document.write("
");
if (navigator.appName == "Netscape")
{
document.write("");
}
else
{
document.write("
");
}
for (var i = 0; i <= 6; i++)
{
document.write("
");
}
return;
}