  ns4    = (document.layers);
  ns6    = (!document.all && document.getElementById);
  ie4    = (document.all && !document.getElementById && !window.opera);
  ie5    = (document.all && !document.fireEvent && !window.opera);
  op7  	 = (window.opera && document.createComment) ;
  w3dom  = (document.getElementById || op7);

function defineObjects() {
  page          = new Object();
  page.width    = (ns4 || ns6 ||op7) ? innerWidth  : document.body.clientWidth;
  page.height   = (ns4 || ns6 ||op7) ? innerHeight : document.body.clientHeight;
  content       = new layerSetup(null,"chasaudeFaqsContainer",0,100,7,"visible");
				  setTimeout("actionManager()",500);
}

function layerSetup(parent,id,left,top,zindex,visibility) {
  if(ns4) {
    this.obj             = (parent != null) ? parent.document[id]          : document[id];
    this.obj.htm         = (parent != null) ? parent.document[id].document : document[id].document;
  } else if(ie4 ||ie5) {
    this.obj             = document.all[id].style;
    this.obj.htm         = document.all[id];
  } else if(w3dom) {
    this.obj             = document.getElementById(id).style;
    this.obj.htm         = document.getElementById(id);
  }
  this.obj.left          = (w3dom) ? left + "px" : left;
  this.obj.top           = (w3dom) ? top  + "px" : top;
  this.obj.zIndex        = zindex;
  this.obj.visibility    = visibility;
  return this.obj;
}

function actionManager() {
    pageManager("load_page","cha_saude_faqs00.html");
}

var page_timer = null;
function pageManager() {
  var args = pageManager.arguments;
  switch(args[0]) {
    case "load_page" :
	content.top = (w3dom) ? 276  + "px": 276;
      if(ie4) {
        document.frames["chasaudeFaqsData"].document.location = args[1];
      }
      if(w3dom) {
        document.getElementById("chasaudeFaqsData").src = args[1];
      }
      if(ns4) {
        content.load(args[1],page.width-300);
      }
    break;
    case "page_is_loaded" :
      clearTimeout(page_timer);
      page_timer = setTimeout("pageManager('display_page')",500);
    break;
    case "display_page" :
      if(ie4) {
        content.htm.innerHTML = document.frames['chasaudeFaqsData'].document.body.innerHTML;
      } else if(w3dom) {
        content.htm.innerHTML = window.frames.chasaudeFaqsData.document.getElementById('body').innerHTML;
      }
    break;
  }
}

function goFaqs() {
		if (document.faqsFrm.faqsFld.selectedIndex == 1)
				pageManager("load_page","cha_saude_faqs01.html");
		else if (document.faqsFrm.faqsFld.selectedIndex == 2)
				pageManager("load_page","cha_saude_faqs02.html");
		else if (document.faqsFrm.faqsFld.selectedIndex == 3)
				pageManager("load_page","cha_saude_faqs03.html");
		else if (document.faqsFrm.faqsFld.selectedIndex == 4)
				pageManager("load_page","cha_saude_faqs04.html");
		else if (document.faqsFrm.faqsFld.selectedIndex == 5)
				pageManager("load_page","cha_saude_faqs05.html");
		else if (document.faqsFrm.faqsFld.selectedIndex == 6)
				pageManager("load_page","cha_saude_faqs06.html");
}

function resetFaqsFrm() {
document.faqsFrm.faqsFld.value = document.faqsFrm.faqsFld.options[0].value;
}
