/*****************************************************************************
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.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie7||this.ie8
	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.ie8 || this.ie7 || this.ie4 || this.ns4 || this.ns7 || this.opera6 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2
oCMenu=new makeCoolMenu("oCMenu") //Making the menu object. Argument: menuname
oCMenu.useframes=1
oCMenu.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"

oCMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

oCMenu.useNS4links=1  
oCMenu.NS4padding=2 
oCMenu.checkselect=1

/*If you choose to have this code inside a linked js, or if your using frames it's important to set these variables. 
This will help you get your links to link to the right place even if your files are in different folders.
The offlineUrl variable is the actual path to the directory where you js file are locally. 
This is just so you can test it without uploading. Remember to start it with file:/// and only use slashes, no backward slashes!
Also remember to end with a slash                                                                                                 */
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" //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.
oCMenu.onlineUrl="http://www.dhtmlcentral.com/coolmenus/examples/withframes/" //Value: "path_to_menu_file_online/"

oCMenu.pagecheck=1
oCMenu.checkscroll=1
oCMenu.resizecheck=2
oCMenu.wait=1000

//Background bar properties
oCMenu.usebar=0

//Placement properties
oCMenu.rows=1
oCMenu.fromleft=20

if(navigator.appName == "Microsoft Internet Explorer") {
oCMenu.fromtop=97;
}
else {
oCMenu.fromtop=90;
}


oCMenu.pxbetween=21

oCMenu.menuplacement="center"

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array()
oCMenu.level[0].width=135
oCMenu.level[0].height=20
oCMenu.level[0].bgcoloroff="#629EEA"
oCMenu.level[0].bgcoloron="#336699"
oCMenu.level[0].textcolor="White"
oCMenu.level[0].hovercolor="Yellow"
oCMenu.level[0].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="#006699"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=1
oCMenu.level[0].clippx=15
oCMenu.level[0].cliptim=0
oCMenu.level[0].filter=0

oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=135
oCMenu.level[1].height=20
oCMenu.level[1].style="padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=2
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#006699"

oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=135
oCMenu.level[2].height=18
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"

/*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.
*/
oCMenu.makeMenu('top0','','<IMG src="images/menu_block.gif" width="15" height="15" align="top">&nbsp;We are Pros','','frmMain')
	oCMenu.makeMenu('sub00','top0','> Principals','principles.htm','frmMain')
	oCMenu.makeMenu('sub01','top0','> Consultants','','frmMain')
		oCMenu.makeMenu('sub000','sub01','o Roles and Duties','roles.htm','frmMain')

oCMenu.makeMenu('top1','','<IMG src="images/menu_block.gif" width="15" height="15" align="top">&nbsp;Our Offerings','','frmMain')
	oCMenu.makeMenu('sub10','top1','> Services','','frmMain')
		oCMenu.makeMenu('sub100','sub10','o MQ Workflow','mqwkflow.htm','frmMain')
		oCMenu.makeMenu('sub101','sub10','o Other','services.htm','frmMain')
	oCMenu.makeMenu('sub11','top1','> Products','','frmMain')
		oCMenu.makeMenu('sub110','sub11','o Head Start Applications','head_start.htm','frmMain')
		oCMenu.makeMenu('sub111','sub11','o WorkFlow Tools','development.htm','frmMain')
		oCMenu.makeMenu('sub112','sub11','o HIPAATrack','hipaatrack.htm','frmMain')
	oCMenu.makeMenu('sub12','top1','> Solutions','','frmMain')
		oCMenu.makeMenu('sub120','sub12','o Technology','technologies.htm','frmMain')
		oCMenu.makeMenu('sub121','sub12','o Industry','solutions.htm','frmMain')
		oCMenu.makeMenu('sub122','sub12','o Application','head_start_app_notes.htm','frmMain')
	oCMenu.makeMenu('sub13','top1','> Support','contact.htm','frmMain')

oCMenu.makeMenu('top2','','<IMG src="images/menu_block.gif" width="15" height="15" align="top">&nbsp;How We Work','','frmMain')
	oCMenu.makeMenu('sub20','top2','> Organization','org_structure.htm','frmMain')
	oCMenu.makeMenu('sub21','top2','> Quality Assurance','quality.htm','frmMain')
	oCMenu.makeMenu('sub22','top2','> RapID<sup>TM</sup> Prototyping','rapid.htm','frmMain')
	oCMenu.makeMenu('sub23','top2','> Resources','resources.htm','frmMain')

oCMenu.makeMenu('top3','','<IMG src="images/menu_block.gif" width="15" height="15" align="top">&nbsp;Join Us','','frmMain')
	oCMenu.makeMenu('sub30','top3','> Open Positions','join_us.htm','frmMain')
	oCMenu.makeMenu('sub31','top3','> Employee Benefits','benefits.htm','frmMain')

oCMenu.makeMenu('top4','','<IMG src="images/menu_block.gif" width="15" height="15" align="top">&nbsp;Let Us Serve','','frmMain')
	oCMenu.makeMenu('sub40','top4','> Contact us','contact.htm','frmMain')
	oCMenu.makeMenu('sub41','top4','> Privacy policy','privacy.htm','frmMain')
	oCMenu.makeMenu('sub42','top4','> Sono eNews','enews.htm','frmMain')
	oCMenu.makeMenu('sub43','top4','> Just for Fun','just4fun.htm','frmMain')

//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()
