IE=document.all;
NS=document.layers;
hdrFontFamily="verdana";
hdrFontSize="8pt";
hdrFontColor="#FAFEFE";
hdrBGColor="black";
linkFontFamily="verdana";
linkFontSize="8pt";
linkBGColor="#009999";
linkOverBGColor="#33B0B4";
linkTarget="_top";
YOffset=90;
staticYOffset=90;
menuBGColor="black";
menuIsStatic="yes";
menuHeader=""
menuWidth=130;
staticMode="advanced"
barBGColor="black";
barFontFamily="verdana";
barFontSize="10pt";
barFontColor="#00C1B8";
barText="TOPO MENU";

function moveOut() {
if (window.cancel) {cancel="";}
if (window.moving2) {clearTimeout(moving2); moving2="";}
if ((IE && ssm2.style.pixelLeft<0)||(NS && document.ssm2.left<0)) {
if (IE) {ssm2.style.pixelLeft += (5%menuWidth);}
if (NS) {document.ssm2.left += (5%menuWidth);}
moving1 = setTimeout('moveOut()', 5)}
else {clearTimeout(moving1)}};
function moveBack() {
cancel = moveBack1()}
function moveBack1() {
if (window.moving1) {clearTimeout(moving1)}
if ((IE && ssm2.style.pixelLeft>(-menuWidth))||(NS && document.ssm2.left>(-140))) {
if (IE) {ssm2.style.pixelLeft -= (5%menuWidth);}
if (NS) {document.ssm2.left -= (5%menuWidth);}
moving2 = setTimeout('moveBack1()', 5)}
else {clearTimeout(moving2)}};

lastY = 0;
function makeStatic(mode) {
if (IE) {winY = document.body.scrollTop;var NM=ssm2.style}
if (NS) {winY = window.pageYOffset;var NM=document.ssm2}
if (mode=="smooth") {
if ((IE||NS) && winY!=lastY) {
smooth = .2 * (winY - lastY);
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;}
setTimeout('makeStatic("smooth")', 1)}
else if (mode=="advanced") {
if ((IE||NS) && winY>YOffset-staticYOffset) {
if (IE) {NM.pixelTop=winY+staticYOffset}
if (NS) {NM.top=winY+staticYOffset}}
else {
if (IE) {NM.pixelTop=YOffset}
if (NS) {NM.top=YOffset-7}}
setTimeout('makeStatic("advanced")', 1)}}

function init() {
if (IE) {
ssm2.style.pixelLeft = -menuWidth;
ssm2.style.visibility = "visible"}
else if (NS) {
document.ssm2.left = -menuWidth;
document.ssm2.visibility = "show"}
else {alert('Choose either the "smooth" or "advanced" static modes!')}}

function Dia_de_Semana (d1,d2,d3,d4,d5,d6,d7) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
	}
function Mes_del_Anio (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
this[7]=d8;
this[8]=d9;
this[9]=d10;
this[10]=d11;
this[11]=d12;
	}
Semana = new Dia_de_Semana ("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
Mes = new Mes_del_Anio ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var today= new Date;
diahoy = today.getDay();
fechahoy = today.getDate();
meshoy = today.getMonth();
anio = today.getYear();
function dia () {
document.write (fechahoy+' de '+Mes[meshoy]);
}
function actual () {
document.write (Mes[meshoy]+' '+anio);
}

  BD14516_=new Image(600,10);
  f1=new Image(30,20);
  i1=new Image(30,20);
  r1=new Image(30,20);
  c1=new Image(30,20);
  a1=new Image(25,13);
  s1=new Image(25,13);
  f2=new Image(30,20);
  i2=new Image(30,20);
  r2=new Image(30,20);
  c2=new Image(30,20);
  a2=new Image(25,13);
  s2=new Image(25,13);
  BD14516_.src="http://www.topografiaglobal.com.ar/images/imagenes/BD14516_.GIF";
  f1.src="http://www.topografiaglobal.com.ar/images/imagenes/f1.gif";
  f2.src="http://www.topografiaglobal.com.ar/images/imagenes/f2.gif";
  i1.src="http://www.topografiaglobal.com.ar/images/imagenes/i1.gif";
  i2.src="http://www.topografiaglobal.com.ar/images/imagenes/i2.gif";
  r1.src="http://www.topografiaglobal.com.ar/images/imagenes/r1.gif";
  r2.src="http://www.topografiaglobal.com.ar/images/imagenes/r2.gif";
  c1.src="http://www.topografiaglobal.com.ar/images/imagenes/c1.gif";
  c2.src="http://www.topografiaglobal.com.ar/images/imagenes/c2.gif";
  a1.src="http://www.topografiaglobal.com.ar/images/imagenes/a1.gif";
  a2.src="http://www.topografiaglobal.com.ar/images/imagenes/a2.gif";
  s1.src="http://www.topografiaglobal.com.ar/images/imagenes/s1.gif";
  s2.src="http://www.topografiaglobal.com.ar/images/imagenes/s2.gif";

  function cambia(nombre,activa)
  { document.images[nombre].src=activa.src; }
ns4 = (document.layers)? true:false  
ie4 = (document.all)? true:false  
function MostrarCapa(capa){
  if(document.layers)document.layers[capa].visibility='show'     // Si utilizamos NS
  if(document.all)document.all(capa).style.visibility='visible'  // Si utilizamos IE
}
function OcultarCapa(capa){
  if(document.layers)document.layers[capa].visibility='hide'     // Si utilizamos NS
  if(document.all)document.all(capa).style.visibility='hidden'   // Si utilizamos IE
}

var imagenes=new Array() 
imagenes[0]=new Image (120,100); 
imagenes[0].src="http://www.topografiaglobal.com.ar/images/publicidad/gm1.jpg" 
imagenes[1]=new Image (120,100); 
imagenes[1].src="http://www.topografiaglobal.com.ar/images/publicidad/gm2.jpg" 
imagenes[2]=new Image (120,100); 
imagenes[2].src="http://www.topografiaglobal.com.ar/images/publicidad/gm3.jpg" 
imagenes[3]=new Image (120,100); 
imagenes[3].src="http://www.topografiaglobal.com.ar/images/publicidad/gm4.jpg" 

cont=0;
function presImagen() { 
if (document.all){ 
document.getElementById('foto').filters.blendTrans  .apply() 
document.getElementById('foto').src=imagenes[cont].src 
document.getElementById('foto').filters.blendTrans  .play() } 
else { document.images.foto.src = imagenes[cont].src } 
if (cont < imagenes.length-1) 
{cont ++} 
else 
{cont=0} 
tiempo=window.setTimeout('presImagen()',3000) } 

var imageness=new Array() 
imageness[0]=new Image (120,80); 
imageness[0].src="http://www.topografiaglobal.com.ar/images/publicidad/rep1.jpg" 
imageness[1]=new Image (120,80); 
imageness[1].src="http://www.topografiaglobal.com.ar/images/publicidad/rep2.jpg" 

conts=0;
function presImagens() { 
if (document.all){ 
document.getElementById('fotos').filters.blendTrans  .apply() 
document.getElementById('fotos').src=imageness[conts].src 
document.getElementById('fotos').filters.blendTrans  .play() } 
else { document.images.fotos.src = imageness[conts].src } 
if (conts < imageness.length-1) 
{conts ++} 
else 
{conts=0} 
tiempo=window.setTimeout('presImagens()',5000) } 

var imagenesa=new Array() 
imagenesa[0]=new Image (120,100); 
imagenesa[0].src="http://www.topografiaglobal.com.ar/images/publicidad/kts445a.jpg" 
imagenesa[1]=new Image (120,100); 
imagenesa[1].src="http://www.topografiaglobal.com.ar/images/publicidad/kts445b.jpg" 

conta=0;
function presImagena() { 
if (document.all){ 
document.getElementById('fotoa').filters.blendTrans  .apply() 
document.getElementById('fotoa').src=imagenesa[conta].src 
document.getElementById('fotoa').filters.blendTrans  .play() } 
else { document.images.fotoa.src = imagenesa[conta].src } 
if (conta < imagenesa.length-1) 
{conta ++} 
else 
{conta=0} 
tiempo=window.setTimeout('presImagena()',5000) } 

var imagenesb=new Array() 
imagenesb[0]=new Image (120,100); 
imagenesb[0].src="http://www.topografiaglobal.com.ar/images/publicidad/tgm1.jpg" 
imagenesb[1]=new Image (120,100); 
imagenesb[1].src="http://www.topografiaglobal.com.ar/images/publicidad/tgm2.jpg" 
imagenesb[2]=new Image (120,100); 
imagenesb[2].src="http://www.topografiaglobal.com.ar/images/publicidad/tgm3.jpg" 

contb=0;
function presImagenb() { 
if (document.all){ 
document.getElementById('fotob').filters.blendTrans  .apply() 
document.getElementById('fotob').src=imagenesb[contb].src 
document.getElementById('fotob').filters.blendTrans  .play() } 
else { document.images.fotob.src = imagenesb[contb].src } 
if (contb < imagenesb.length-1) 
{contb ++} 
else 
{contb=0} 
tiempo=window.setTimeout('presImagenb()',4000) } 

   function pagina(){ 
    open('paginas.html', '', 'location=no,menubar=no,status=no'); 
    cerrar(); 
   } 
   function cerrar() { 
    var ventana = window.self; 
    ventana.opener = window.self; 
    ventana.close(); 
   } 

