var barvta = ' Ver detalles del campo..'
var estado = " ~ Campos en venta de Argentina ~"
var mensa = '* Consultar datos del campo seleccionado.'
var mmapa = ' Ver mapa de la ubicación..'
window.status=estado
if (document.all) var ie=true
if (ie) window.onscroll = scrolea
else setTimeout("scroleaNS()",2000)

function scrolea() {
 if (ie) {
  var t = document.body.scrollTop
  var foto = document.getElementById("foto")
  foto.style.top= t+(document.body.offsetHeight - foto.offsetHeight)/2
  var bajo = document.getElementById("bajo")
  bajo.style.top= t+(document.body.offsetHeight - bajo.offsetHeight)
 }
}

function scroleaNS() {
  var t = window.pageYOffset
  var foto = document.getElementById("foto")
  foto.style.top= t+(window.innerHeight - foto.offsetHeight)/2
  var bajo = document.getElementById("bajo")
  bajo.style.top= t+(window.innerHeight - bajo.offsetHeight-10)
  setTimeout("scroleaNS()",2000)
 }


function show(sw,obj) {
  if (sw) eval('document.getElementById("'+obj+'").style.display = "block";')
 else  eval('document.getElementById("'+obj+'").style.display = "none";')
}


var opa=0
var time=1000
var mm=1
function mapear() {
 var foto = document.getElementById("foto")
 if ((opa<=100) && (mm)) opa+=20
 if ((!mm) && (opa>0)) {opa-=10;time=1000;}
 if (opa>100) {mm=0;time=10000;}
 if (opa<=0) mm=1
 if (ie) foto.filters.alpha.opacity=opa
 else foto.style.MozOpacity=opa/100;
 setTimeout("mapear()",time)
}

document.onload=setTimeout("mapear()", 5000)

var wprops='toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, titlebar=no, copyhistory=no';

function verfoto(foto) {
  html = '<html><head><title>Campos de Argentina ~ Imagen de la zona, caminos y rutas </title>';
  html+= '<Scri\pt> var isIE=(document.all)?1:0; function reSizeToImage(){ if (isIE){ ancho=(document.images[0].width>100)?document.images[0].width :640;  alto=(document.images[0].height>100)?document.images[0].height :480; window.resizeTo(ancho+10,alto+30); } else { ancho=document.images[0].width+1; window.innerWidth=ancho; alto=document.images[0].height+1; window.innerHeight=alto;} } function MoveToCenter(){ windowX = (screen.availWidth-ancho)/2 ; windowY = (screen.availHeight-alto)/2; window.moveTo(windowX-5,windowY-15);} var ancho=0; var alto=0; function acomoda() { reSizeToImage(); MoveToCenter(); self.focus();}</scri\pt></head>';
  html+= '<body bgcolor="black" scroll="no" oncontextmenu="return false;" onBlur="self.close()" style="margin:0px"> <IMG src="'+ foto +'" BORDER=0 ALIGN=center onLoad="acomoda();"></body></html>';
  popupImage = window.open('','_blank', wprops);
  popupImage.document.open();
  popupImage.document.write(html);
  popupImage.document.close();
}

var wp= 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=510, height=320, left=' + (screen.width - 510) / 2 + ', top=' + (screen.height - 320) / 2 +', copyhistory=no'
function fprop(cod) {
 window.open('fmail.htm?'+escape(cod),'Contacto',wp)
}
function fprop2(el, cual) {
 var cod
 var nro = cual.substring(cual.length-2,cual.length);
 if (document.getElementById) {
   cod = el.parentElement.innerText
   cod = cod.substring(0,70) + nro
 }
 else
   cod = cual
 window.open('fmail.htm?'+escape(cod),'Contacto',wp)
}

function vendecam() {
 var wp2= 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=600, height=310, left=' + (screen.width - 600) / 2 + ', top=' + (screen.height - 310) / 2 +', copyhistory=no'
 window.open('contacto.htm','Contacto', wp2)
}


 var wp3= 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=700, height=430, left=' + (screen.width - 700) / 2 + ', top=' + (screen.height - 440) / 2 +', copyhistory=no'

function buscapar() {
 window.open('campos-en-venta-paraguay.htm','paraguay', wp3)
}

function buscauru() {
 window.open('campos-en-venta-uruguay.htm','uruguay', wp3)
}

