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 //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=0

oCMenu.offlineUrl="file:///C|/temp/" 
oCMenu.onlineUrl="http://www.spectrum-pub.com/js/" 

oCMenu.pagecheck=0 //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=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
oCMenu.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
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 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCMenu.barcolor="transparent" //The color of the background bar - Value: "color"
oCMenu.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"
oCMenu.barheight="menu" //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"
oCMenu.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"
oCMenu.bary="menu" //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"
oCMenu.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
oCMenu.rows=1 //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
oCMenu.fromleft=30 //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 || "%"
oCMenu.fromtop=95 //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 || "%"
oCMenu.pxbetween=4 //How much space you want between each of the top items. - Value: px || "%"

/*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

You can have them aligned to one of the sides - This is mostly when not using frames, but can be used in both conditions
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"

You can also set them directly in pixels: (Remember to have as many array members as you have top items)
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=0

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() //Add this for each new level
oCMenu.level[0].width=110 
oCMenu.level[0].height=20 
oCMenu.level[0].bgcoloroff="transparent" 
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="#000000" 
oCMenu.level[0].hovercolor="#333333" 
oCMenu.level[0].style="padding:3px; font-family:helvetica; font-size:11px; font-weight:bold" 
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="transparent" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0 
oCMenu.level[0].NS4font="helvetica"
oCMenu.level[0].NS4fontSize="2"

oCMenu.level[0].align="bottom" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
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=19
oCMenu.level[1].bgcoloroff="CCCCCC"
oCMenu.level[1].bgcoloron="E5E5E5"
oCMenu.level[1].style="padding:2px; font-family:helvetica; font-size:9px; font-weight:bold"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="red"
oCMenu.level[1].NS4font="helvetica"
oCMenu.level[1].NS4fontSize="1"

//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=155
oCMenu.level[2].height=19
oCMenu.level[2].bgcoloroff="#AAAAAA"
oCMenu.level[2].bgcoloron="#E5E5E5"
oCMenu.level[2].style="padding:2px; font-family:helvetica; font-size:9px; font-weight:bold"
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="red"
oCMenu.level[2].NS4font="helvetica"
oCMenu.level[2].NS4fontSize="1"

//EXAMPLE SUB LEVEL[3] 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[3]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=180
oCMenu.level[3].height=31
oCMenu.level[3].bgcoloroff="#F3E7DE"
oCMenu.level[3].bgcoloron="#F3E7DE"
oCMenu.level[3].style="padding:4px; font-family:helvetica; font-size:9px; font-weight:bold"
oCMenu.level[3].align="right" 
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].border=1 
oCMenu.level[3].bordercolor="black"
oCMenu.level[3].NS4font="helvetica"
oCMenu.level[3].NS4fontSize="1"


oCMenu.makeMenu('top0','','SpecPub Books','http://www.spectrum-pub.com/books/books.html')
	oCMenu.makeMenu('sub0A','top0','Synch Management v1','http://www.spectrum-pub.com/books/synchmanv1.html')		
	oCMenu.makeMenu('sub0B','top0','Synch Management v2','http://www.spectrum-pub.com/books/synchmanv2.html')
	oCMenu.makeMenu('sub0C','top0','Measurements','http://www.spectrum-pub.com/books/measure.html')
	oCMenu.makeMenu('sub0D','top0','Regain Compet','http://www.spectrum-pub.com/books/regaincomp.html')
	oCMenu.makeMenu('sub0E','top0','Synch Mfg Book','http://www.spectrum-pub.com/books/synchmfg.html')
	oCMenu.makeMenu('sub0F','top0','Synch Mfg WorkBook','http://www.spectrum-pub.com/books/synchmfgwb.html')
		
oCMenu.makeMenu('top1','','Other Books','http://www.spectrum-pub.com/books/otherbooks.html','')
	oCMenu.makeMenu('sub1A','top1','The Goal','http://www.spectrum-pub.com/books/goal.html')		
	oCMenu.makeMenu('sub1B','top1','Not Luck','http://www.spectrum-pub.com/books/notluck.html')
	oCMenu.makeMenu('sub1C','top1','The Race','http://www.spectrum-pub.com/books/race.html')
	oCMenu.makeMenu('sub1D','top1','Haystack Synd','http://www.spectrum-pub.com/books/haystack.html')
	oCMenu.makeMenu('sub1E','top1','Reengineer','http://www.spectrum-pub.com/books/reengineer.html')
	oCMenu.makeMenu('sub1F','top1','Compete Future','http://www.spectrum-pub.com/books/compfutr.html')
oCMenu.makeMenu('top2','','Software','http://www.spectrum-pub.com/software/software.html','')
	
oCMenu.makeMenu('top3','','Links','http://www.spectrum-pub.com/links/links.html','')
		
oCMenu.makeMenu('top4','','Shopping','http://www.spectrum-pub.com/shopping/index.html','')
	oCMenu.makeMenu('sub4A','top4','SpecPub Books','http://www.spectrum-pub.com/shopping/shopping.php?fname=specpub.txt')		
	oCMenu.makeMenu('sub4B','top4','Bundles','http://www.spectrum-pub.com/shopping/shopping.php?fname=bundles.txt')
	oCMenu.makeMenu('sub4C','top4','Other Books','http://www.spectrum-pub.com/shopping/shopping.php?fname=otherbooks.txt')
	oCMenu.makeMenu('sub4D','top4','All Books','https://www.2checkout.com/2co/buyer/orderpage?sid=490556')
	
oCMenu.makeMenu('top5','','Contact Us','http://www.spectrum-pub.com/contact/contactus.asp','')

oCMenu.makeMenu('top6','','About Us','http://www.spectrum-pub.com/about/aboutus.html','')
	oCMenu.makeMenu('sub6A','top6','About Us','http://www.spectrum-pub.com/about/aboutus.html')		
	oCMenu.makeMenu('sub6B','top6','Return Policy','http://www.spectrum-pub.com/about/return.html')
	

		
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()