<!-- 
var subMenuTimeout;
var subMenuLastOpened = '';

function back() {
	history.back();
}

function changeDisplay(strNameObj, strDisplay) {
	var objChange = findObj(strNameObj);
	objChange.style.display = strDisplay;
}

function doRollover(objOrigem, objDestino) {
	objOrigem.src=objDestino.src;
}

function findObj(n, d) {
	var p,i,x;

	if (!d) d = document;

	if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}

	if (!(x = d[n]) && d.all) x = d.all[n];

	for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];

	for (i = 0; !x && d.layers && i < d.layers.length; i++) x = findObj(n,d.layers[i].document);

	if (!x && d.getElementById) x = d.getElementById(n);

	return x;
}

function goTo(strURL) {
	window.location = strURL;
}

function goToHash(strURL) {
	document.location.hash = strURL;
}

function getWindowSize(Dimension) {
  var myWidth = 0, myHeight = 0, myReturn = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  switch(Dimension.toLowerCase()){
  	case 'width': myReturn = myWidth; break;
  	case 'height': myReturn = myHeight; break;
  	default: myReturn = -1;
  }
  return myReturn;
}

function hideObj (strObj) {
	obj = findObj(strObj);
	obj.style.display = 'none';
}

function hoverLineOff (strObj, strClassName) {
	obj = findObj(strObj);
	obj.className = strClassName;
	obj.style.cursor = 'auto';
}

function hoverLineOn (strObj, strClassName) {
	obj = findObj(strObj);
	obj.className = strClassName;
	var agent = navigator.userAgent.toLowerCase();
	//alert(agent);
	if ((agent.indexOf("msie") != -1) || (agent.indexOf("microsoft") != -1)) {
		obj.style.cursor = 'hand';
	} else {
		obj.style.cursor = 'pointer';
	}
}

function isNumeric(value) {
	return stringValidation(value, "1234567890");
}

function openWindow(Pagina, Largura, Altura, scrollbars, status) {
	window.open(Pagina, '', 'width=' + Largura + ',height=' + Altura + ',scrollbars=' + scrollbars + ',status=' + status + ',toolbar=no,location=no,directories=no,menubar=no,resizable=no,copyhistory=no');
}

function openInParent(url) {
	top.opener.window.location = url;
}

function resizeWindow(intW, intH) {
	window.resizeTo(intW, intH);
}

function stringValidation(value, validChars) {
	var rt = true;

	for (i = 0; i < value.length && rt == true; i++) {
		Char = value.charAt(i); 
		if (validChars.indexOf(Char) == -1) {
			rt = false;
		}
	}

	return rt;
}

function stripNonNumeric(value) {
	return value.replace(/[^0-9]/g ,'');
}

function showObj (strObj) {
	var obj = findObj(strObj);
	obj.style.display = 'block';
}

function showSubMenu(strMenu) {
	clearTimeout(subMenuTimeout);
	
	if (subMenuLastOpened != '') {
		_hideSubMenu(subMenuLastOpened);
	}

	var obj = findObj(strMenu);
	obj.style.visibility = 'visible';
	subMenuLastOpened = strMenu;
}

function hideSubMenu(strMenu) {
	subMenuTimeout = setTimeout('_hideSubMenu("' + strMenu + '")', 2000);
}

function _hideSubMenu(strMenu) {
	var obj = findObj(strMenu);
	obj.style.visibility = 'hidden';
	subMenuLastOpened = '';
}

function StringChunk (strTexto, intTamanho, strSeparador) {
	var Retorna, i;

	Retorna = '';

	for (i = 0; i <= strTexto.length; i++) {
		Retorna += strTexto.substr(i, 1);
		if ((i + 1) % intTamanho == 0 && i < strTexto.length - 1) {
			Retorna += strSeparador;
		}
	}

	return Retorna;
}

function StringRevert (strTexto) {
	var Retorna, i;

	Retorna = '';

	for (i = strTexto.length - 1; i >= 0; i--) {
		Retorna += strTexto.substr(i, 1);
	}

	return Retorna;
}

/* Funções de resize dos divs da Equipe Médica  - Início */
function getLeftPosition(){
	var myReturn, intTamTabela = 780;
	myReturn = parseInt((getWindowSize('width') - intTamTabela) / 2);
	return myReturn;
}

function resizeDivs(){
	var objLayerLogo, i;
	var myLeft = [,247, 295, 343, 391, 439, 487, 535, 583, 631]
	for(i = 1; i <= 9; i++){
		objLayerLogo = findObj('layer0' + i.toString());
		objLayerLogo.style.left = parseInt(myLeft[i]) + getLeftPosition();
		//alert(parseInt(myLeft[i]) + getLeftPosition());
	}
	return true;
}
/* Funções de resize dos divs da Equipe Médica  - Fim */

-->