
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (www.bratta.com)
******************************************************************************/
/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.
	
oCEmpresa=new makeCoolMenu("oCEmpresa") //Making the menu object. Argument: menuname
oCEmpresa.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCEmpresa.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCEmpresa.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

oCEmpresa.useNS4links=1   

oCEmpresa.NS4padding=2 

oCEmpresa.checkselect=0
                                                                                               
oCEmpresa.offlineUrl="http://brenomarvado/trix/web/espanhol/" //Value: "path_to_menu_file_offline/"
//The onlineUrl variable is the online path to your script. Place in the full path to where your js file is. Remember to end with a slash.
oCEmpresa.onlineUrl="http://www.trixengenharia.com.br/site/web/espanhol/" //Value: "path_to_menu_file_online/"

oCEmpresa.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCEmpresa.checkscroll=0 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCEmpresa.resizecheck=0 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCEmpresa.wait=1000 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Backround bar properties
oCEmpresa.usebar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCEmpresa.barcolor="#cc6666" //The color of the background bar - Value: "color"
oCEmpresa.barwidth="menu" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCEmpresa.barheight="0" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCEmpresa.barx="menu" //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCEmpresa.bary=0 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCEmpresa.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCEmpresa.rows=0 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCEmpresa.fromleft=276 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCEmpresa.fromtop=35 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCEmpresa.pxbetween=0 //How much space you want between each of the top items. - Value: px || "%"

oCEmpresa.menuplacement=0

oCEmpresa.level[0]=new Array() //Add this for each new level
oCEmpresa.level[0].width=93 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCEmpresa.level[0].height=23 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCEmpresa.level[0].bgcoloroff="" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCEmpresa.level[0].bgcoloron="" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCEmpresa.level[0].textcolor="Black" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCEmpresa.level[0].hovercolor="" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCEmpresa.level[0].style="align: left" //The style for all level[0] (top) items. - Value: "style_settings"
oCEmpresa.level[0].border=0 //The border size for all level[0] (top) items. - Value: px
oCEmpresa.level[0].bordercolor="" //The border color for all level[0] (top) items. - Value: "color"
oCEmpresa.level[0].offsetX=-4 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCEmpresa.level[0].offsetY=-1 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCEmpresa.level[0].NS4font="tahoma,arial,helvetica"
oCEmpresa.level[0].NS4fontSize="1"

oCEmpresa.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCEmpresa.level[0].clippx=10 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCEmpresa.level[0].cliptim=1
oCEmpresa.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=-0.1)" 

oCEmpresa.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

oCEmpresa.level[1]=new Array() //Add this for each new level (adding one to the number)
oCEmpresa.level[1].width=158
oCEmpresa.level[1].height=23

oCEmpresa.makeMenu('top0','','','empresa.asp','',0,0,'images/00_topmenu_01.gif','')
	oCEmpresa.makeMenu('sub00','top0','','empresa.asp','',0,0,'images/00_dynemp_01.gif')
	oCEmpresa.makeMenu('sub01','top0','','emp_historico.asp','',0,22,'images/00_dynemp_02.gif')
	oCEmpresa.makeMenu('sub02','top0','','emp_localizacao.asp','',0,22,'images/00_dynemp_03.gif')
	oCEmpresa.makeMenu('sub03','top0','','emp_gestao.asp','',0,22,'images/00_dynemp_04.gif')
		oCEmpresa.makeMenu('sub030','sub03','','cert_open.asp','',0,26,'images/00_dynemp_04_1.gif')
	oCEmpresa.makeMenu('sub04','top0','','emp_rh.asp','',0,25,'images/00_dynemp_05.gif')
		oCEmpresa.makeMenu('sub040','sub04','','emp_rh_profissionais.asp','',0,23,'images/00_dynemp_05_1.gif')
		oCEmpresa.makeMenu('sub041','sub04','','emp_rh_trabalhe.asp','',0,25,'images/00_dynemp_05_2.gif')

	oCEmpresa.makeStyle(); oCEmpresa.construct(); 
	
	
oCAreas=new makeCoolMenu("oCAreas") //Making the menu object. Argument: menuname
oCAreas.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCAreas.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCAreas.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

oCAreas.useNS4links=1   

oCAreas.NS4padding=2 

oCAreas.checkselect=0
                                                                                               
oCAreas.offlineUrl="http://brenomarvado/trix/web/espanhol/" //Value: "path_to_menu_file_offline/"
//The onlineUrl variable is the online path to your script. Place in the full path to where your js file is. Remember to end with a slash.
oCAreas.onlineUrl="http://www.trixengenharia.com.br/site/web/espanhol/" //Value: "path_to_menu_file_online/"

oCAreas.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCAreas.checkscroll=0 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCAreas.resizecheck=0 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCAreas.wait=1000 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Backround bar properties
oCAreas.usebar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCAreas.barcolor="#cc6666" //The color of the background bar - Value: "color"
oCAreas.barwidth="menu" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCAreas.barheight="0" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCAreas.barx="menu" //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCAreas.bary=0 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCAreas.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCAreas.rows=0 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCAreas.fromleft=591 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCAreas.fromtop=100 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCAreas.pxbetween=0 //How much space you want between each of the top items. - Value: px || "%"

oCAreas.menuplacement=0

oCAreas.level[0]=new Array() //Add this for each new level
oCAreas.level[0].width=158 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCAreas.level[0].height=17 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCAreas.level[0].bgcoloroff="" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCAreas.level[0].bgcoloron="" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCAreas.level[0].textcolor="Black" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCAreas.level[0].hovercolor="" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCAreas.level[0].style="align: left" //The style for all level[0] (top) items. - Value: "style_settings"
oCAreas.level[0].border=0 //The border size for all level[0] (top) items. - Value: px
oCAreas.level[0].bordercolor="" //The border color for all level[0] (top) items. - Value: "color"
oCAreas.level[0].offsetX=-174 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCAreas.level[0].offsetY=17 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCAreas.level[0].NS4font="tahoma,arial,helvetica"
oCAreas.level[0].NS4fontSize="1"

oCAreas.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCAreas.level[0].clippx=10 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCAreas.level[0].cliptim=1
oCAreas.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=-0.1)" 

oCAreas.level[0].align="left" //Value: "top" || "bottom" || "left" || "right" 

oCAreas.level[1]=new Array() //Add this for each new level (adding one to the number)
oCAreas.level[1].width=158
oCAreas.level[1].height=23
oCAreas.level[1].offsetX=-101 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCAreas.level[1].offsetY=18
oCAreas.level[1].align="right"

oCAreas.level[2]=new Array() //Add this for each new level (adding one to the number)
oCAreas.level[2].width=158
oCAreas.level[2].height=0

oCAreas.makeMenu('top0','','','areas_telecom.asp','',228,20,'images/01_topbar_08_areas.gif','')
	oCAreas.makeMenu('sub00','top0','','areas_telecom.asp','',0,23,'images/00_dyntop_01.gif')
		oCAreas.makeMenu('sub001','sub00','','telecom_proj.asp','',0,23,'images/00_dyntop_01_1.gif')
		oCAreas.makeMenu('sub002','sub00','','telecom_construcao.asp','',0,22,'images/00_dyntop_01_2.gif')
		oCAreas.makeMenu('sub003','sub00','','telecom_manutencao.asp','',0,25,'images/00_dyntop_01_3.gif')
	oCAreas.makeMenu('sub01','top0','','areas_saneamento.asp','',0,22,'images/00_dyntop_02.gif')
		oCAreas.makeMenu('sub010','sub01','','saneamento_agua.asp','',0,23,'images/00_dyntop_02_1.gif')
		oCAreas.makeMenu('sub011','sub01','','saneamento_esgoto.asp','',0,22,'images/00_dyntop_02_2.gif')
		oCAreas.makeMenu('sub012','sub01','','saneamento_drenagem.asp','',0,25,'images/00_dyntop_02_3.gif')
	oCAreas.makeMenu('sub02','top0','','areas_energia.asp','',0,22,'images/00_dyntop_03.gif')
		oCAreas.makeMenu('sub020','sub02','','energia_gas.asp','',0,23,'images/00_dyntop_03_1.gif')
		oCAreas.makeMenu('sub021','sub02','','energia_hidra.asp','',0,25,'images/00_dyntop_03_2.gif')
	oCAreas.makeMenu('sub03','top0','','areas_premoldados.asp','',0,22,'images/00_dyntop_04.gif')
	oCAreas.makeMenu('sub04','top0','','areas_agropecuaria.asp','',0,25,'images/00_dyntop_05.gif')
	
	oCAreas.makeStyle(); oCAreas.construct(); 
		
	
oCGMenu=new makeCoolMenu("oCGMenu") //Making the menu object. Argument: menuname
oCGMenu.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCGMenu.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCGMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

oCGMenu.useNS4links=1   

oCGMenu.NS4padding=2 

oCGMenu.checkselect=0
                                                                                               
oCGMenu.offlineUrl="http://brenomarvado/trix/web/espanhol/" //Value: "path_to_menu_file_offline/"
//The onlineUrl variable is the online path to your script. Place in the full path to where your js file is. Remember to end with a slash.
oCGMenu.onlineUrl="http://www.trixengenharia.com.br/site/web/espanhol/" //Value: "path_to_menu_file_online/"

oCGMenu.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCGMenu.checkscroll=0 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCGMenu.resizecheck=0 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCGMenu.wait=1000 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Backround bar properties
oCGMenu.usebar=0 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCGMenu.barcolor="#cc6666" //The color of the background bar - Value: "color"
oCGMenu.barwidth="menu" //The width of the background bar. Set this to "menu" if you want it to be the same width as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCGMenu.barheight="0" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCGMenu.barx="menu" //The left position of the bar. Set this to "menu" if you want it be the same as the left position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCGMenu.bary=0 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one)  - Value: px || "%" || "menu"
oCGMenu.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCGMenu.rows=0 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCGMenu.fromleft=630 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCGMenu.fromtop=35 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCGMenu.pxbetween=0 //How much space you want between each of the top items. - Value: px || "%"

oCGMenu.menuplacement=0

oCGMenu.level[0]=new Array() //Add this for each new level
oCGMenu.level[0].width=141 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCGMenu.level[0].height=22 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCGMenu.level[0].bgcoloroff="" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCGMenu.level[0].bgcoloron="" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCGMenu.level[0].textcolor="Black" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCGMenu.level[0].hovercolor="" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCGMenu.level[0].style="align: right" //The style for all level[0] (top) items. - Value: "style_settings"
oCGMenu.level[0].border=0 //The border size for all level[0] (top) items. - Value: px
oCGMenu.level[0].bordercolor="" //The border color for all level[0] (top) items. - Value: "color"
oCGMenu.level[0].offsetX=-155 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCGMenu.level[0].offsetY=22 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCGMenu.level[0].NS4font="tahoma,arial,helvetica"
oCGMenu.level[0].NS4fontSize="1"

oCGMenu.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCGMenu.level[0].clippx=10 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCGMenu.level[0].cliptim=1
oCGMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=-0.1)" 

oCGMenu.level[0].align="right" //Value: "top" || "bottom" || "left" || "right" 

oCGMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCGMenu.level[1].width=158
oCGMenu.level[1].height=23
oCGMenu.level[1].offsetX=-4 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCGMenu.level[1].offsetY=0
oCGMenu.level[1].align="right"

oCGMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCGMenu.level[2].width=158
oCGMenu.level[2].height=0

oCGMenu.makeMenu('top0','','','intranet.asp','',141,23,'images/00_topmenu_04.gif','')
	oCGMenu.makeMenu('sub00','top0','','login_webmail.asp','',0,23,'images/00_dynintra_01.gif')
	oCGMenu.makeMenu('sub01','top0','','login_sigeo.asp','',0,22,'images/00_dynintra_02.gif')
	oCGMenu.makeMenu('sub02','top0','','http://www.trixengenharia.com.br/mega2000e.ica','',0,22,'images/00_dynintra_03.gif')
	oCGMenu.makeMenu('sub03','top0','','login_groupware.asp','',0,22,'images/00_dynintra_04.gif')
	oCGMenu.makeMenu('sub04','top0','','login_qualidade.asp','',0,22,'images/00_dynintra_05.gif')
	oCGMenu.makeMenu('sub05','top0','','login.asp','',0,25,'images/00_dynintra_06.gif')
	
	oCGMenu.makeStyle(); oCGMenu.construct(); 

