function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }

function adicionar(){
 if ((navigator.appVersion.indexOf("MSIE")>0)&&(parseInt(navigator.appVersion)>=4)){
   javascript:window.external.AddFavorite('http://www.inmueblesynegocios.com/',document.title)
 }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width;
  altez=foto1.height;
  stringa="width="+largh+",height="+altez;
  finestra=window.open("","",stringa);
  finestra.document.write('<html><head><title>CalamuchitaWeb.com.ar</title></head>');
  finestra.document.write('<BODY BGCOLOR=#ffffff TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666 leftmargin=0 topmargin=0>');
  finestra.document.write('<img src="' + img + '"><p>');
  finestra.document.write('</body></html>');
  finestra.document.close();
}

