var savedClr   = "";
var savedBkClr = "";
var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false;

var msgDefault = "[ Martin Group ]";
window.defaultStatus = msgDefault; // StatusBar por defecto

function g(n) {return document.getElementById(n);}


//  MT MENUDIN  \\
function botRoll(el, over) {
  var anchor = el.getElementsByTagName('a')[0];
  if (over) {
	savedClr = el.style.color;
	savedBkClr = el.style.backgroundColor;
	el.style.backgroundColor = '#2B496C';
	el.style.color = '#FFF';
	el.style.cursor = 'pointer';
	anchor.style.color = '#FFFFFF';
  } else {
	el.style.backgroundColor = savedBkClr;
	el.style.color = savedClr;
	anchor.style.color = '#DCD281';
  }

  return false;
}
function botClick(el) {
  var anchor = el.getElementsByTagName('a')[0];
  document.location = anchor.href;
  return true;
}
function DivMenuSetup() {
  var el_src = g('Botonera');
  var el_collection = el_src.getElementsByTagName('td');
  for (var i=0;i<el_collection.length-1;i++) {
	el_collection[i].onmouseover = new Function('botRoll(this, true);');
	el_collection[i].onmouseout = new Function('botRoll(this, false);');
	el_collection[i].onclick = new Function('botClick(this); return true;');
  }
}
//\\


function ampliar(dest) {
	var url=dest;
	var WindowObjectReference=window.open(url,"_blank","menubar=no,location=no,resizable=no,scrollbars=no,status=no, dependent=yes, width=340, height=480");
	if(WindowObjectReference==null)alert("Su navegador ha bloqueado la ventana que intent๓ abrir.\nPara poder visualizarla modifique la configuracion del mismo de forma acorde.");
}

function ampliarHelp(dest) {
	var url="help.html";
	var WindowObjectReference=window.open(url,"_blank","menubar=no,location=no,resizable=no,scrollbars=yes,status=no, dependent=yes, width=526, height=394");
	if(WindowObjectReference==null)alert("Su navegador ha bloqueado la ventana que intent๓ abrir.\nPara poder visualizarla modifique la configuracion del mismo de forma acorde.");
}
