// <!--

function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
}

var is = new Is();
//-->

// SCRIPT PARA O COLLAPSING MENU (ENTRADA DE DADOS) **********************

submenu = new Array;
submenuheight = new Array;
submenu_item_height = new Array;
submenu_item_rel_height = new Array;
tab = new Array;
nct = new Array;
ncb = new Array;
growing = false;
tim = new Array;
tim_open = new Array;
tim_close = new Array;
ptph = new Array;
tab_height = new Array;
num_submenus = new Array;
tabShow = new Array;

// **** ENTRADA DE DADOS  MENUS *****

// delay da animação (quanto maior mais lenta)
menutime = 0;

// saltos da animação em pixels (quanto maior mais rápida)
step = 3;

// Número de menus
num_menu = 7;

// Distância em pixel do lado esquerdo da frame ao canto superior esquerdo dos menus
left_width = 0;

// Distância em pixel do topo da frame ao canto superior esquerdo dos menus
top_height = 145;

// Largura das barras dos menus em pixel
ptpw = 100;

// Altura de cada sub-menu (conteudo) em pixel, múltiplo do delay
submenuheight = 20;

// Altura de cada barra em pixel
tab_height[1] = 22;
tab_height[2] = 22;
tab_height[3] = 22;
tab_height[4] = 22;
tab_height[5] = 22;
tab_height[6] = 22;
tab_height[7] = 22;


// Numero de sub-menus de cada menu
num_submenus[1] = 4;
num_submenus[2] = 3;
num_submenus[3] = 0;
num_submenus[4] = 2;
num_submenus[5] = 0;
num_submenus[6] = 0;
num_submenus[7] = 1;


// Nome das imagens das barras depois de se clicar
for (k=1;k<=num_menu;k++) {
  tim[k] = new Image();
  tim_open[k] = new Image();
  tim_close[k] = new Image()
}
tim_close[1].src="../imagens/bola_b.gif";
tim_close[2].src="../imagens/bola_b.gif";
tim_close[3].src="../imagens/bola_b.gif";
tim_close[4].src="../imagens/bola_b.gif";
tim_close[5].src="../imagens/bola_b.gif";
tim_close[6].src="../imagens/bola_b.gif";
tim_close[7].src="../imagens/bola_b.gif";


// **** FIM DA ENTRADA DE DADOS *****
//-->



