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.

oCMenu=new makeCoolMenu("oCMenu") //Making the menu object. Argument: menuname
oCMenu.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 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 //activated and deactivated onclick only set this to 1. - Value: 0 || 1

/*If you set this to 1 you will get a "hand" cursor when moving over the links in NS4. 
NOTE: This does not apply to the submenus if the menu is used in frames due some mayor problems with NS4*/
oCMenu.useNS4links=1  

//After adding the "hover effect" for netscape as well, all styles are lost. But if you want padding add it here.
oCMenu.NS4padding=2 

//If you have select boxes close to your menu the menu will check for that and hide them if they are in the way of the menu.
//This feature does unfortunatly not work in NS4!
oCMenu.checkselect=0

oCMenu.offlineUrl="file:///D|/Webmax/Madrigal/2001/" //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.madrigalsoft.com" //Value: "path_to_menu_file_online/"

oCMenu.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
oCMenu.checkscroll=1 //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
oCMenu.resizecheck=1 //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
oCMenu.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

//Background bar properties
oCMenu.usebar=1 
oCMenu.barcolor="#1F7FB2" 
oCMenu.barwidth="100%" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary=0 
oCMenu.barinheritborder=0 

//Placement properties
oCMenu.rows=1 
oCMenu.fromleft=20 
oCMenu.fromtop=0 
oCMenu.pxbetween=20 

/*You have several different ways to place the top items. 
You can have them right beside eachother (only adding the pxbetween variable)
oCMenu.menuplacement=0

Values: (If you get strange results check the fromleft,fromtop and pxbetween variables above)
For menus that are placed in columns (align=left or align=right (se below)) you can align them to the "right" or "center"
For menus that are placed in rows (align=top or align=bottom (se below)) you can align them to the "bottom", "center" or "bottomcenter"
oCMenu.menuplacement="center"
oCMenu.menuplacement=new Array(10,200,400,600)

Or you can place in percentage: (remember to use the ' ' around the numbers)


Choose one of those options to get the desired results.
*/
oCMenu.menuplacement=new Array('2%','17%','33%','48%','63%','78%') 



//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() 
oCMenu.level[0].width=110 
oCMenu.level[0].height=22 
oCMenu.level[0].bgcoloroff="#1F7FB2" 
oCMenu.level[0].bgcoloron="#6095CA" 
oCMenu.level[0].textcolor="White" 
oCMenu.level[0].hovercolor="Navy" 
oCMenu.level[0].style="padding:2px; font-family:arial,helvetica; font-size:13px; font-weight:bold" 
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="red" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="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=5 
oCMenu.level[0].cliptim=1 

oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=0)"

oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

//SUB LEVEL[1] PROPERTIES
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=20
oCMenu.level[1].bgcoloroff="#2C5885"
oCMenu.level[1].bgcoloron="#FFB415"
oCMenu.level[1].style="padding:2px; font-family:tahoma,helvetica,arial; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=3
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#006699"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=130
oCMenu.level[2].height=20
oCMenu.level[2].hovercolor="#FFB415"
oCMenu.level[2].bgcoloroff="#666699"
oCMenu.level[2].bgcoloron="#990000"
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:11px; 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"


/*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','','&nbsp;Home','http://www.madrigalsoft.com','')

	
oCMenu.makeMenu('top1','','&nbsp;ResSched','')
	oCMenu.makeMenu('sub10','top1','ResSched Main','fresmulti.html')
	oCMenu.makeMenu('sub11','top1','For Current Users','flicensed.html')
	oCMenu.makeMenu('sub12','top1','Web Module','resweb.html')
	oCMenu.makeMenu('sub13','top1','FAQs','FAQ/faqopen.html')
	oCMenu.makeMenu('sub14','top1','Reviews','fresrev.html')
	oCMenu.makeMenu('sub15','top1','Version Francaise','http://www.logikub.com')
	
oCMenu.makeMenu('top2','','&nbsp;Delegator','')
	oCMenu.makeMenu('sub21','top2','Multi User','')
		oCMenu.makeMenu('sub210','sub21','Multi User Main','fdelmulti.html')
		oCMenu.makeMenu('sub211','sub21','For Current Users','fdmcurrent.html')
		oCMenu.makeMenu('sub212','sub21','Version Francaise','http://www.logikub.com')
	oCMenu.makeMenu('sub22','top2','Single User','')
		oCMenu.makeMenu('sub220','sub22','Single User Main','fdelegat.html')
		oCMenu.makeMenu('sub221','sub22','For Current Users','fdscurrent.html')
	oCMenu.makeMenu('sub23','top2','Reviews','fdelrev.html')		

oCMenu.makeMenu('top3','','&nbsp;Ordering','')
	oCMenu.makeMenu('sub30','top3','ResSched','order.html#resmulti')
	oCMenu.makeMenu('sub31','top3','DELEGATOR','')
		oCMenu.makeMenu('sub320','sub31','Multi User','order.html#delmulti','',80,19)
		oCMenu.makeMenu('sub321','sub31','Single User','order.html#delegat','',80,19)	

oCMenu.makeMenu('top4','','&nbsp;About Us','')
	oCMenu.makeMenu('sub40','top4','Contact Us','contact.html')
	oCMenu.makeMenu('sub41','top4','Overviews','findex2.html')
	oCMenu.makeMenu('sub42','top4','Our Clients','fclients.html')
	oCMenu.makeMenu('sub43','top4','Partners','')	
		oCMenu.makeMenu('sub410','sub43','Logikub','http://www.logikub.com','',80,19)
	oCMenu.makeMenu('sub44','top4','Reseller Program','associate.html')
	
		
oCMenu.makeMenu('top5','','&nbsp;Our Clients','')
	oCMenu.makeMenu('sub050','top5','Some of our clients','fclients.html','',108,37)
	oCMenu.makeMenu('sub051','top5','What do they say','comments.html')	
		
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()			