// 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(""); } } 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(""); } } 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("
    "); for (var i = 0; i <= (fotopress.length-1); i++) { var tit = fotopress[i].titulo; var tip = fotopress[i].tipo; var img = fotopress[i].imagem; var arq = fotopress[i].arquivo; var lrg = fotopress[i].largura; var trg = fotopress[i].target; var js = fotopress[i].js; var endimg = dirPress[3] + img; var endarq = dirPress[tip] + arq var lnk = makeLnk("",endarq,trg,tit,js); document.write("
  • "); document.write(" " + lnk); document.write(" \"""); document.write("
    "); document.write(" " + tit); document.write("
    "); 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("
    "); for (var i = 0; i <= (imgdstk.length-1); i++) { var tit = imgdstk[i].titulo; var tip = imgdstk[i].tipo; var img = imgdstk[i].imagem; var arq = imgdstk[i].arquivo; var lrg = imgdstk[i].largura; var trg = imgdstk[i].target; var js = imgdstk[i].js; var endimg = dirPress[3] + img; if (js == 5) { endarq = dirPress[1] + arq; } else if (js == 6) { endarq = dirPress[2] + arq; } else if (js == 7) { endarq = dirPress[3] + arq; } else { var endarq = arq; } var lnk = makeLnk("",endarq,trg,tit,js); document.write("
  • "); document.write(" " + lnk); document.write(" \"""); document.write("
    "); document.write(" " + tit); document.write("
    "); document.write(" "); document.write("
  • "); // var lnk = makeLnk("",endarq,trg,tit,js); // document.write("
  • "); // document.write(" " + lnk); // document.write(" \"""); // document.write(" "); // 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; }