window.onresize = showBannerTop;
function findPosLeft(o) {
  var p = 0;
  if (o.offsetParent) {
    do {
      p += o.offsetLeft;
      o = o.offsetParent;
    } while (o.offsetParent)
  } else if (o.x) {
    p += o.x;
  }
  return p;
}
function findPosTop(o) {
  var p = 0;
  if (o.offsetParent) {
    do {
      p += o.offsetTop;
      o = o.offsetParent;
    } while (o.offsetParent)
  } else if (o.y) {
    p += o.y;
  }
  return p;
}
function reloadPage(){
  document.location=document.location;
}
function showBanner(b) {
  n = document.getElementById(b);
  //p = getPosition(document.getElementById(b+'_position'));
  n.style.top = findPosTop(document.getElementById(b+'_position'))+'px';
  n.style.left = findPosLeft(document.getElementById(b+'_position'))+'px';
  n.style.display = 'block';
}
function showBannerTop() {
  o = document.getElementById('bannertop');
  //p = getPosition(document.getElementById(b+'_position'));
  //n.style.top = findPosTop(document.getElementById(b+'_position'))+'px';
  o.style.left = findPosLeft(document.getElementById('bannertop_position'))+'px';
  o.style.display = 'block';
  o.style.height = '60px';
  o.style.clip = "rect(0px,468px,60px,0px)";
}
function bannerExpande(o,t){
  o.style.height = t;
  o.style.clip = "rect(0px,468px,"+t+",0px)";
}

function flash_w3c(arqflash,ident,largura,altura) {
//Verificando se o navegor é o Internet Explorer
        if (window.navigator.appName == "Microsoft Internet Explorer") {
                document.write('<object id="'+ident+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">');
//Se qualquer navegador diferente do IE, executar o bloco abaixo
        }else{
                document.write('<object id="'+ident+'" type="application/x-shockwave-flash" data="'+arqflash+'" width="'+largura+'" height="'+altura+'">');
        }
//Implementando o swf na página, com os parâmetros mais importantes.
                document.write('<param name="allowScriptAccess" value="sameDomain">');
                document.write('<param name="movie" value="'+arqflash+'">');
                document.write('<param name="quality" value="high">');
                document.write('<param name="salign" value="t">');
                document.write('<param name="wmode" value="transparent">');
                document.write('</object>');
}