/*****************************************************************************
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 

oCMenu2=new makeCoolMenu("oCMenu2") 
oCMenu2.useframes=0 
oCMenu2.frame="frmMain"
oCMenu2.useNS4links=1 
oCMenu2.checkselect=1
oCMenu2.offlineUrl=""
oCMenu2.onlineUrl=""


oCMenu2.pagecheck=1
oCMenu2.checkscroll=0
oCMenu2.resizecheck=1 
oCMenu2.wait=500 

oCMenu2.usebar=1 
oCMenu2.barcolor="transparent" 
oCMenu2.barwidth="100%" 
oCMenu2.barheight="menu" 
oCMenu2.barx=0 
oCMenu2.bary="menu"
oCMenu2.barinheritborder=0 

oCMenu2.rows=1
oCMenu2.fromleft=120
oCMenu2.fromtop=89 
oCMenu2.pxbetween=0

oCMenu2.menuplacement="left"

oCMenu2.level[0]=new Array() 
oCMenu2.level[0].width=150 
oCMenu2.level[0].height=15 
oCMenu2.level[0].bgcoloroff="white"
oCMenu2.level[0].bgcoloron="transparent" 
oCMenu2.level[0].textcolor="black"
oCMenu2.level[0].hovercolor="black" 
oCMenu2.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:"
oCMenu2.level[0].border=1 
oCMenu2.level[0].bordercolor="white" 
oCMenu2.level[0].offsetX=1 
oCMenu2.level[0].offsetY=-1 
oCMenu2.level[0].NS4font="arial,helvetica"
oCMenu2.level[0].NS4fontSize="2"
oCMenu2.level[0].NS4fontColor="white"
oCMenu2.level[0].align="bottom" 

oCMenu2.level[1]=new Array() 
oCMenu2.level[1].width=150
oCMenu2.level[1].height=15
oCMenu2.level[1].bgcoloroff="#B5AD7B"
oCMenu2.level[1].bgcoloron="black"
oCMenu2.level[1].textcolor="black"
oCMenu2.level[1].hovercolor="white"
oCMenu2.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:"
oCMenu2.level[1].align="bottom" 
oCMenu2.level[1].offsetX=1
oCMenu2.level[1].offsetY=-1
oCMenu2.level[1].border=0 
oCMenu2.level[1].bordercolor="white"
oCMenu2.level[1].NS4font="arial,helvetica"
oCMenu2.level[1].NS4fontSize="2"
oCMenu2.level[1].NS4fontColor="black"

/*Variables for each menu item: (** means that they have to be spesified!)
name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
parent: The name of the menuitem you want this to "connect" to. This will be a submenu of the item that have the name you place in here. ** for all other then the topitems
text: The text you want in the item. ** (except if you use images) 
link: The page you want this item to link to.
target: The target window or frame you want the link to go to (Default is same window if you're not using frames, and the mainframe if you're using frames)
width: The width of the element. If not spesified it will get the default width spesified above.
height: The height of the element. If not spesified it will get the default height spesified above.
img1: The "off" image for element if you want to use images.
img2: The image that appears onmouseover if using images.
bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
onmouseout: This will happen when you mouseout the element.

Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/


oCMenu2.makeMenu('top1','','','TMC_Company.html','','76','15','Images/company_off.gif','Images/company_on.gif')
	
oCMenu2.makeMenu('top2','','','TMC_Operating.html','','160','15','Images/operating_off.gif','Images/operating_on.gif')
	oCMenu2.makeMenu('sub20','top2','Tri-Enterprise','TMC_Enterprise.html','','160','15','Images/operating1_off.gif','Images/operating1_on.gif','white')
	oCMenu2.makeMenu('sub21','top2','Tri-Maintenance','TMC_Maintenance.html','','160','15','Images/operating2_off.gif','Images/operating2_on.gif','white')
	oCMenu2.makeMenu('sub22','top2','Tri-Service','TMC_Services.html','','160','15','Images/operating3_off.gif','Images/operating3_on.gif','white')
	oCMenu2.makeMenu('sub23','top2','Tri-health','TMC_Health.html','','160','15','Images/operating4_off.gif','Images/operating4_on.gif','white')
	
oCMenu2.makeMenu('top3','','','TMC_Customer.html','','95','15','Images/customer_off.gif','Images/customer_on.gif')
	oCMenu2.makeMenu('sub30','top3','Corporate','TMC_Corporate.html','','95','15','Images/customer1_off.gif','Images/customer1_on.gif','white')
	oCMenu2.makeMenu('sub31','top3','Education','TMC_Education.html','','95','15','Images/customer2_off.gif','Images/customer2_on.gif','white')
	oCMenu2.makeMenu('sub32','top3','Healthcare','TMC_Healthcare.html','','95','15','Images/customer3_off.gif','Images/customer3_on.gif','white')
	oCMenu2.makeMenu('sub33','top3','Government','TMC_Government.html','','95','15','Images/customer4_off.gif','Images/customer4_on.gif','white')
	oCMenu2.makeMenu('sub34','top3','Entertainment','TMC_Entertainment.html','','95','15','Images/customer5_off.gif','Images/customer5_on.gif','white')
	oCMenu2.makeMenu('sub35','top3','Residential','TMC_Residential.html','','95','15','Images/customer6_off.gif','Images/customer6_on.gif','white')
	oCMenu2.makeMenu('sub36','top3','Retail','TMC_Retail.html','','95','15','Images/customer7_off.gif','Images/customer7_on.gif','white')
	oCMenu2.makeMenu('sub37','top3','Hospitality','TMC_Hospitality.html','','95','15','Images/customer8_off.gif','Images/customer8_on.gif','white')
					
oCMenu2.makeMenu('top4','','','TMC_Contact.html','',71,15,'Images/contact_off.gif','Images/contact_on.gif')
	
oCMenu2.makeMenu('top5','','','TMC_Employment.html','',72,15,'Images/employment_off.gif','Images/employment_on.gif')


oCMenu2.makeStyle(); oCMenu2.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}
