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>InmueblesyNegocios.com</title></head>');
  finestra.document.write('<BODY BGCOLOR=#ffffff TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666 leftmargin=0 topmargin=0 onBlur=self.close()>');
  finestra.document.write('<img src="' + img + '"><p>');
  finestra.document.write('</body></html>');
  finestra.document.close();
}
function open_explorer(o,m) { window.open('micro_explorer.asp?obj='+o+'&mode='+m,'explorer','width=265, height=165'); }
function open_uploader(o) { window.open('micro_upload.asp?obj='+o,'uploader','width=300, height=100, status=yes, resizable=no'); }
function open_editor(o) { window.open('/editor.asp?obj='+o,'editor','width=577, height=456'); }
