/*************************************************************************
  Fonte: O&ESistemas Ltda.
  Descricao: - Faz os banners rotacionarem da tela;
 *************************************************************************/

function bannersTitulo() {
  bannerE1("S");
  bannerD1("S");
}

function bannersPropEsq() {
  bannerE2("S");
  bannerE3("S");
  bannerE4("S");
  bannerE5("S");
  bannerE6("S");
  bannerE7("S");
  bannerE8("S");
}

function bannersRodape() {
//  bannerR17("S");
  bannerR18("S");
}

function bannersPropDir() {
  bannerD3("S")
  bannerD4("S")
  bannerD5("S")
  bannerD6("S")
  bannerD7("S")
  bannerD8("S")
}

i1 = 0;
Imgs1 = new Array();
Srcs1 = new Array();
Alts1 = new Array();
Width1 = new Array();
Height1 = new Array();
Imgs1[0] = 'E1_0.png'; Srcs1[0] = 'contaClicksBanners.php?site=http://www.valeconstruir.com.br&banner=2'; Alts1[0] = 'Clique para acessar o site !'; Width1[0] = '234'; Height1[0] = '60';
numImgs1 = 1;
function bannerE1(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img1').src = Imgs1[i1];
  document.getElementById('img1').style.border = "0";
  document.getElementById('img1').alt = Alts1[i1];
  document.getElementById('img1').width = Width1[i1];
  document.getElementById('img1').height = Height1[i1];
  document.getElementById('lnk1').href = Srcs1[i1]+'&logado='+Logado;
  document.getElementById('lnk1').target = "_blank";
  setTimeout('bannerE1("N")',  3000);
  i1 += 1;
  if(i1 == numImgs1) i1 = 0;
}

i2 = 0;
Imgs2 = new Array();
Srcs2 = new Array();
Alts2 = new Array();
Width2 = new Array();
Height2 = new Array();
Imgs2[0] = 'E2_0.png'; Srcs2[0] = 'contaClicksBanners.php?site=http://www.setglass.com.br&banner=27'; Alts2[0] = 'Clique para acessar o site !'; Width2[0] = '120'; Height2[0] = '60';
numImgs2 = 1;
function bannerE2(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img2').src = Imgs2[i2];
  document.getElementById('img2').style.border = "0";
  document.getElementById('img2').alt = Alts2[i2];
  document.getElementById('img2').width = Width2[i2];
  document.getElementById('img2').height = Height2[i2];
  document.getElementById('lnk2').target = "_blank";
  document.getElementById('lnk2').href = Srcs2[i2]+'&logado='+Logado;
  setTimeout('bannerE2("N")',  3000);
  i2 += 1;
  if(i2 == numImgs2) i2 = 0;
}

i3 = 0;
Imgs3 = new Array();
Srcs3 = new Array();
Alts3 = new Array();
Width3 = new Array();
Height3 = new Array();
Imgs3[0] = 'E3_0.png'; Srcs3[0] = 'contaClicksBanners.php?site=http://www.sindiconet.com.br/cotacoes/hotsite.asp?regiao=9&hotsite=artfinal&banner=47'; Alts3[0] = 'Clique para acessar o site !'; Width3[0] = '120'; Height3[0] = '60';
numImgs3 = 1;
function bannerE3(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img3').src = Imgs3[i3];
  document.getElementById('img3').style.border = "0";
  document.getElementById('img3').alt = Alts3[i3];
  document.getElementById('img3').width = Width3[i3];
  document.getElementById('img3').height = Height3[i3];
  document.getElementById('lnk3').target = "_blank";
  document.getElementById('lnk3').href = Srcs3[i3]+'&logado='+Logado;
  setTimeout('bannerE3("N")',  9000);
  i3 += 1;
  if(i3 == numImgs3) i3 = 0;
}

i4 = 0;
Imgs4 = new Array();
Srcs4 = new Array();
Alts4 = new Array();
Width4 = new Array();
Height4 = new Array();
Imgs4[0] = 'E4_0.png'; Srcs4[0] = 'contaClicksBanners.php?site=http://www.marbrasa.com.br&banner=11'; Alts4[0] = 'Clique para acessar o site !'; Width4[0] = '120'; Height4[0] = '60';
numImgs4 = 1;
function bannerE4(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img4').src = Imgs4[i4];
  document.getElementById('img4').style.border = "0";
  document.getElementById('img4').alt = Alts4[i4];
  document.getElementById('img4').width = Width4[i4];
  document.getElementById('img4').height = Height4[i4];
  document.getElementById('lnk4').target = "_blank";
  document.getElementById('lnk4').href = Srcs4[i4]+'&logado='+Logado;
  setTimeout('bannerE4("N")',  3000);
  i4 += 1;
  if(i4 == numImgs4) i4 = 0;
}

i5 = 0;
Imgs5 = new Array();
Srcs5 = new Array();
Alts5 = new Array();
Width5 = new Array();
Height5 = new Array();
Imgs5[0] = 'E5_0.png'; Srcs5[0] = 'contaClicksBanners.php?site=http://www.fahnoxs.com.br&banner=48'; Alts5[0] = 'Clique para acessar o site !'; Width5[0] = '120'; Height5[0] = '60';
numImgs5 = 1;
function bannerE5(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img5').src = Imgs5[i5];
  document.getElementById('img5').style.border = "0";
  document.getElementById('img5').alt = Alts5[i5];
  document.getElementById('img5').width = Width5[i5];
  document.getElementById('img5').height = Height5[i5];
  document.getElementById('lnk5').target = "_blank";
  document.getElementById('lnk5').href = Srcs5[i5]+'&logado='+Logado;
  setTimeout('bannerE5("N")',  3000);
  i5 += 1;
  if(i5 == numImgs5) i5 = 0;
}

i6 = 0;
Imgs6 = new Array();
Srcs6 = new Array();
Alts6 = new Array();
Width6 = new Array();
Height6 = new Array();
Imgs6[0] = 'E6_0.png'; Srcs6[0] = 'contaClicksBanners.php?site=http://www.hkeeping.com.br&banner=41'; Alts6[0] = 'Clique para acessar o site !'; Width6[0] = '120'; Height6[0] = '60';
numImgs6 = 1;
function bannerE6(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img6').src = Imgs6[i6];
  document.getElementById('img6').style.border = "0";
  document.getElementById('img6').alt = Alts6[i6];
  document.getElementById('img6').width = Width6[i6];
  document.getElementById('img6').height = Height6[i6];
  document.getElementById('lnk6').target = "_blank";
  document.getElementById('lnk6').href = Srcs6[i6]+'&logado='+Logado;
  setTimeout('bannerE6("N")',  3000);
  i6 += 1;
  if(i6 == numImgs6) i6 = 0;
}

i7 = 0;
Imgs7 = new Array();
Srcs7 = new Array();
Alts7 = new Array();
Width7 = new Array();
Height7 = new Array();
Imgs7[0] = 'E7_0.png'; Srcs7[0] = 'contaClicksBanners.php?site=http://www.mgpedras.com.br&banner=42'; Alts7[0] = 'Clique para acessar o site !'; Width7[0] = '120'; Height7[0] = '60';
numImgs7 = 1;
function bannerE7(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img7').src = Imgs7[i7];
  document.getElementById('img7').style.border = "0";
  document.getElementById('img7').alt = Alts7[i7];
  document.getElementById('img7').width = Width7[i7];
  document.getElementById('img7').height = Height7[i7];
  document.getElementById('lnk7').target = "_blank";
  document.getElementById('lnk7').href = Srcs7[i7]+'&logado='+Logado;
  setTimeout('bannerE7("N")',  3000);
  i7 += 1;
  if(i7 == numImgs7) i7 = 0;
}

i8 = 0;
Imgs8 = new Array();
Srcs8 = new Array();
Alts8 = new Array();
Width8 = new Array();
Height8 = new Array();
Imgs8[0] = 'E8_0.png'; Srcs8[0] = 'contaClicksBanners.php?site=http://www.hertec.com.br&banner=24'; Alts8[0] = 'Clique para acessar o site !'; Width8[0] = '120'; Height8[0] = '60';
numImgs8 = 1;
function bannerE8(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img8').src = Imgs8[i8];
  document.getElementById('img8').style.border = "0";
  document.getElementById('img8').alt = Alts8[i8];
  document.getElementById('img8').width = Width8[i8];
  document.getElementById('img8').height = Height8[i8];
  document.getElementById('lnk8').target = "_blank";
  document.getElementById('lnk8').href = Srcs8[i8]+'&logado='+Logado;
  setTimeout('bannerE8("N")',  3000);
  i8 += 1;
  if(i8 == numImgs8) i8 = 0;
}

i9 = 0;
Imgs9 = new Array();
Srcs9 = new Array();
Alts9 = new Array();
Width9 = new Array();
Height9 = new Array();
Imgs9[0] = 'D9_0.png'; Srcs9[0] = 'contaClicksBanners.php?site=http://www2.buscape.com.br/construcao-e-ferramentas.html?site_origem=9086135&banner=33'; Alts9[0] = 'Clique para acessar o site !'; Width9[0] = '234'; Height9[0] = '60';
Imgs9[1] = 'D9_1.png'; Srcs9[1] = 'contaClicksBanners.php?site=http://pmstrk.mercadolivre.com.br/jm/PmsTrk?tool=5507324&go=http://lista.mercadolivre.com.br/construcao/&banner=29'; Alts9[1] = 'Clique para acessar o site !'; Width9[1] = '234'; Height9[1] = '60';
numImgs9 = 2;
function bannerD1(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img9').src = Imgs9[i9];
  document.getElementById('img9').style.border = "0";
  document.getElementById('img9').alt = Alts9[i9];
  document.getElementById('img9').width = Width9[i9];
  document.getElementById('img9').height = Height9[i9];
  document.getElementById('lnk9').target = "_blank";
  document.getElementById('lnk9').href = Srcs9[i9]+'&logado='+Logado;
  setTimeout('bannerD1("N")',  3000);
  i9 += 1;
  if(i9 == numImgs9) i9 = 0;
}

i10 = 0;
Imgs10 = new Array();
Srcs10 = new Array();
Alts10 = new Array();
Width10 = new Array();
Height10 = new Array();
Imgs10[0] = 'D10_0.png'; Srcs10[0] = 'contaClicksBanners.php?site=http://www.valeconstruir.com.br&banner=2'; Alts10[0] = 'Clique para acessar o site !'; Width10[0] = '120'; Height10[0] = '60';
numImgs10 = 1;
function bannerD2(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img10').src = Imgs10[i10];
  document.getElementById('img10').style.border = "0";
  document.getElementById('img10').alt = Alts10[i10];
  document.getElementById('img10').width = Width10[i10];
  document.getElementById('img10').height = Height10[i10];
  document.getElementById('lnk10').target = "_blank";
  document.getElementById('lnk10').href = Srcs10[i10]+'&logado='+Logado;
  setTimeout('bannerD2("N")',  3000);
  i10 += 1;
  if(i10 == numImgs10) i10 = 0;
}

i11 = 0;
Imgs11 = new Array();
Srcs11 = new Array();
Alts11 = new Array();
Width11 = new Array();
Height11 = new Array();
Imgs11[0] = 'D11_0.png'; Srcs11[0] = 'contaClicksBanners.php?site=http://www.saturninorepresentacoes.com.br&banner=44'; Alts11[0] = 'Clique para acessar o site !'; Width11[0] = '120'; Height11[0] = '60';
numImgs11 = 1;
function bannerD3(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img11').src = Imgs11[i11];
  document.getElementById('img11').style.border = "0";
  document.getElementById('img11').alt = Alts11[i11];
  document.getElementById('img11').width = Width11[i11];
  document.getElementById('img11').height = Height11[i11];
  document.getElementById('lnk11').target = "_blank";
  document.getElementById('lnk11').href = Srcs11[i11]+'&logado='+Logado;
  setTimeout('bannerD3("N")',  3000);
  i11 += 1;
  if(i11 == numImgs11) i11 = 0;
}

i12 = 0;
Imgs12 = new Array();
Srcs12 = new Array();
Alts12 = new Array();
Width12 = new Array();
Height12 = new Array();
Imgs12[0] = 'D12_0.png'; Srcs12[0] = 'contaClicksBanners.php?site=http://www.controlaobra.com.br/Integral/SiteIntegral.html&banner=49'; Alts12[0] = 'Clique para acessar o site !'; Width12[0] = '120'; Height12[0] = '60';
numImgs12 = 1;
function bannerD4(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img12').src = Imgs12[i12];
  document.getElementById('img12').style.border = "0";
  document.getElementById('img12').alt = Alts12[i12];
  document.getElementById('img12').width = Width12[i12];
  document.getElementById('img12').height = Height12[i12];
  document.getElementById('lnk12').target = "_blank";
  document.getElementById('lnk12').href = Srcs12[i12]+'&logado='+Logado;
  setTimeout('bannerD4("N")',  3000);
  i12 += 1;
  if(i12 == numImgs12) i12 = 0;
}

i13 = 0;
Imgs13 = new Array();
Srcs13 = new Array();
Alts13 = new Array();
Width13 = new Array();
Height13 = new Array();
Imgs13[0] = 'D13_0.png'; Srcs13[0] = 'contaClicksBanners.php?site=http://www.controlaobra.com.br/jl/jl.htm&banner=40'; Alts13[0] = 'Clique para acessar o site !'; Width13[0] = '120'; Height13[0] = '60';
numImgs13 = 1;
function bannerD5(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img13').src = Imgs13[i13];
  document.getElementById('img13').style.border = "0";
  document.getElementById('img13').alt = Alts13[i13];
  document.getElementById('img13').width = Width13[i13];
  document.getElementById('img13').height = Height13[i13];
  document.getElementById('lnk13').target = "_blank";
  document.getElementById('lnk13').href = Srcs13[i13]+'&logado='+Logado;
  setTimeout('bannerD5("N")',  3000);
  i13 += 1;
  if(i13 == numImgs13) i13 = 0;
}

i14 = 0;
Imgs14 = new Array();
Srcs14 = new Array();
Alts14 = new Array();
Width14 = new Array();
Height14 = new Array();
Imgs14[0] = 'D14_0.png'; Srcs14[0] = 'contaClicksBanners.php?site=http://www.ntcdistribuidora.com.br/&banner=52'; Alts14[0] = 'Clique para acessar o site !'; Width14[0] = '120'; Height14[0] = '60';
Imgs14[1] = 'D14_1.gif'; Srcs14[1] = 'contaClicksBanners.php?site=http://www.guiadaobra.net&banner=46'; Alts14[1] = 'Clique para acessar o site !'; Width14[1] = '120'; Height14[1] = '60';
numImgs14 = 2;
function bannerD6(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img14').src = Imgs14[i14];
  document.getElementById('img14').style.border = "0";
  document.getElementById('img14').alt = Alts14[i14];
  document.getElementById('img14').width = Width14[i14];
  document.getElementById('img14').height = Height14[i14];
  document.getElementById('lnk14').target = "_blank";
  document.getElementById('lnk14').href = Srcs14[i14]+'&logado='+Logado;
  setTimeout('bannerD6("N")',  3000);
  i14 += 1;
  if(i14 == numImgs14) i14 = 0;
}

i15 = 0;
Imgs15 = new Array();
Srcs15 = new Array();
Alts15 = new Array();
Width15 = new Array();
Height15 = new Array();
Imgs15[0] = 'D15_0.png'; Srcs15[0] = 'contaClicksBanners.php?site=http://www.baixadaemconstrucao.com.br/tv/&banner=37'; Alts15[0] = 'Clique para acessar o site !'; Width15[0] = '120'; Height15[0] = '60';
Imgs15[1] = 'D15_1.gif'; Srcs15[1] = 'contaClicksBanners.php?site=http://www.fabiorochaarquitetura.com.br&banner=40'; Alts15[1] = 'Clique para acessar o site !'; Width15[1] = '120'; Height15[1] = '60';
numImgs15 = 2;
function bannerD7(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img15').src = Imgs15[i15];
  document.getElementById('img15').style.border = "0";
  document.getElementById('img15').alt = Alts15[i15];
  document.getElementById('img15').width = Width15[i15];
  document.getElementById('img15').height = Height15[i15];
  document.getElementById('lnk15').target = "_blank";
  document.getElementById('lnk15').href = Srcs15[i15]+'&logado='+Logado;
  setTimeout('bannerD7("N")',  3000);
  i15 += 1;
  if(i15 == numImgs15) i15 = 0;
}

i16 = 0;
Imgs16 = new Array();
Srcs16 = new Array();
Alts16 = new Array();
Width16 = new Array();
Height16 = new Array();
Imgs16[0] = 'D16_0.png'; Srcs16[0] = 'contaClicksBanners.php?site=http://www.techdomus.com.br&banner=1'; Alts16[0] = 'Clique para acessar o site !'; Width16[0] = '120'; Height16[0] = '60';
Imgs16[1] = 'D16_1.png'; Srcs16[1] = 'contaClicksBanners.php?site=http://dppnengenhariaecustos.zip.net&banner=51'; Alts16[1] = 'Clique para acessar o site !'; Width16[1] = '120'; Height16[1] = '60';
numImgs16 = 2;
function bannerD8(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img16').src = Imgs16[i16];
  document.getElementById('img16').style.border = "0";
  document.getElementById('img16').alt = Alts16[i16];
  document.getElementById('img16').width = Width16[i16];
  document.getElementById('img16').height = Height16[i16];
  document.getElementById('lnk16').target = "_blank";
  document.getElementById('lnk16').href = Srcs16[i16]+'&logado='+Logado;
  setTimeout('bannerD8("N")',  3000);
  i16 += 1;
  if(i16 == numImgs16) i16 = 0;
}

i17 = 0;
Imgs17 = new Array();
Srcs17 = new Array();
Alts17 = new Array();
Width17 = new Array();
Height17 = new Array();
Imgs17[0] = 'R17_0.gif'; Srcs17[0] = 'contaClicksBanners.php?site=http://www.cec.com.br/institucional.aspx?PagId=LPICOLSQ&franc=oe&banner=32'; Alts17[0] = 'Clique para acessar o site !'; Width17[0] = '234'; Height17[0] = '60';
Imgs17[1] = 'R17_1.png'; Srcs17[1] = 'contaClicksBanners.php?site=http://www.cec.com.br/default.aspx?franc=oe&banner=32'; Alts17[1] = 'Clique para acessar o site !'; Width17[1] = '234'; Height17[1] = '60';
numImgs17 = 2;
function bannerR17(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img17').src = Imgs17[i17];
  document.getElementById('img17').style.border = "0";
  document.getElementById('img17').alt = Alts17[i17];
  document.getElementById('img17').width = Width17[i17];
  document.getElementById('img17').height = Height17[i17];
  document.getElementById('lnk17').target = "_blank";
  document.getElementById('lnk17').href = Srcs17[i17]+'&logado='+Logado;
  setTimeout('bannerR17("N")',  4000);
  i17 += 1;
  if(i17 == numImgs17) i17 = 0;
}

i18 = 0;
Imgs18 = new Array();
Srcs18 = new Array();
Alts18 = new Array();
Width18 = new Array();
Height18 = new Array();
Imgs18[0] = 'R18_0.gif'; Srcs18[0] = 'contaClicksBanners.php?site=http://www.controlaobra.com.br/ApresentacaoAnunciosV6.pdf&banner=28'; Alts18[0] = 'Clique para carregar o arquivo !'; Width18[0] = '234'; Height18[0] = '60';
numImgs18 = 1;
function bannerR18(acessoInicial) {
  if (acessoInicial=="S") {
    Logado = "N";
  } else {
    Logado = parent.frames[1].document.forms[0].elements[0].value;
  }
  document.getElementById('img18').src = Imgs18[i18];
  document.getElementById('img18').style.border = "0";
  document.getElementById('img18').alt = Alts18[i18];
  document.getElementById('img18').width = Width18[i18];
  document.getElementById('img18').height = Height18[i18];
  document.getElementById('lnk18').target = "_blank";
  document.getElementById('lnk18').href = Srcs18[i18]+'&logado='+Logado;
  setTimeout('bannerR18("N")',  13000);
  i18 += 1;
  if(i18 == numImgs18) i18 = 0;
}

