/*****************************************************************************
Default browsercheck - Leave alone
******************************************************************************/
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 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame=0
oCMenu.useNS4links=1 
oCMenu.checkselect=0
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
oCMenu.onlineUrl="http://www.shopsmith.com/"


oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=1 
oCMenu.barcolor="#E8112D" 
oCMenu.barwidth=740
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=0 
oCMenu.fromtop=73 
oCMenu.pxbetween=30

avail="0+((toppage.x2-210)/7)" 
oCMenu.menuplacement=new Array(10,100,200,300,400,500,600)

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=180 
oCMenu.level[0].height=19 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="#FCCE55" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=130
oCMenu.level[1].height=22
oCMenu.level[1].bgcoloroff="#CCCCCC"
oCMenu.level[1].bgcoloron="#CCCCCC"
oCMenu.level[1].textcolor="black"
oCMenu.level[1].hovercolor="#E8112D"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="black"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:2px; font-family: 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="black"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#666666"
oCMenu.level[2].bgcoloron="#000000"
oCMenu.level[2].textcolor="white"
oCMenu.level[2].hovercolor="#FCCE55"

oCMenu.makeMenu('top0','','&nbsp;Catalogs','http://www.shopsmith.com/ownersite/catalogindex.htm','')
	oCMenu.makeMenu('sub00','top0','Accessory Catalog','http://www.shopsmith.com/ownersite/catalog/productindex.htm')
	oCMenu.makeMenu('sub01','top0','Service Parts Catalog','http://www.shopsmith.com/ownersite/partscat/index.htm')
	oCMenu.makeMenu('sub02','top0','Email Offers','http://www.shopsmith.com/ownersite/specials/currentemailoffers.htm')
                oCMenu.makeMenu('sub021','sub02','Current Email Offers','http://www.shopsmith.com/ownersite/specials/currentemailoffers.htm','',150,40)
	oCMenu.makeMenu('sub03','top0','Shopsmith Gift Card','http://www.shopsmith.com/ownersite/giftcard/index.htm')
                oCMenu.makeMenu('sub031','sub03','The perfect gift for anyone','http://www.shopsmith.com/ownersite/giftcard/index.htm','',130,30)
	
oCMenu.makeMenu('top1','','&nbsp;Tips','http://www.shopsmith.com/ownersite/tipsindex.htm')
	oCMenu.makeMenu('sub10','top1','Woodshop Tips','http://www.woodshoptips.com/')
oCMenu.makeMenu('sub100','sub10','Woodshoptips Website www.woodshoptips.com','http://www.woodshoptips.com/','',150,40)
	oCMenu.makeMenu('sub11','top1','Service Tips','http://www.shopsmith.com/ownersite/servicetips/index.htm')
    oCMenu.makeMenu('sub12','top1','Video Tips','http://www.shopsmithacademy.com/Tips.htm')
	oCMenu.makeMenu('sub13','top1','Links','http://www.shopsmith.com/ownersite/links.htm')
	
	
oCMenu.makeMenu('top2','','&nbsp;Education','http://www.shopsmith.com/ownersite/educationindex.htm')
oCMenu.makeMenu('sub21','top2','National Academy','http://www.shopsmith.com/ownersite/nationalacademy/index.htm')
oCMenu.makeMenu('sub23','top2','Sawdust Sessions','http://www.shopsmithacademy.com/Sawdust_Sessions.htm')	        
oCMenu.makeMenu('sub24','top2','Video Shop Tips','http://www.shopsmithacademy.com/Tips.htm')
	        


oCMenu.makeMenu('top3','','&nbsp;MARK V','http://www.shopsmith.com/ownersite/markvindex.htm')
	oCMenu.makeMenu('sub30','top3','History','http://www.shopsmith.com/ownersite/toolhistory.htm')
		oCMenu.makeMenu('sub300','sub30','Use this reference to look up your MARK V','http://www.shopsmith.com/ownersite/toolhistory.htm','',150,40)
        oCMenu.makeMenu('sub31','top3','Serial Numbers','http://www.shopsmith.com/ownersite/serialnumber.htm')
		oCMenu.makeMenu('sub310','sub31','Use this reference to look up your MARK V serial number','http://www.shopsmith.com/ownersite/serialnumber.htm','',150,40)
	oCMenu.makeMenu('sub32','top3','Brochure','http://www.shopsmith.com/markvsite/index.htm')
                oCMenu.makeMenu('sub320','sub32','Shopsmith MARK V Brochure site. See all the benefits.','http://www.shopsmith.com/markvsite/index.htm','',150,40)
	oCMenu.makeMenu('sub33','top3','Technical Advice','http://www.shopsmith.com/ownersite/contact.htm')
                oCMenu.makeMenu('sub330','sub33','For help on technical issues you might have with your Shopsmith products.','http://www.shopsmith.com/ownersite/contact.htm','',150,40)
	oCMenu.makeMenu('sub34','top3','Demo Schedule','http://www.shopsmith.com/ownersite/demo/index.htm')
	oCMenu.makeMenu('sub35','top3','Service Tips','http://www.shopsmith.com/ownersite/servicetips/index.htm')
oCMenu.makeMenu('sub36','top3','FAQs','http://www.shopsmith.com/ownersite/faq/index.htm')

oCMenu.makeMenu('top4','','&nbsp;Projects','http://www.shopsmith.com/ownersite/projectsindex.htm')
	oCMenu.makeMenu('sub40','top4','Hands-On','http://www.shopsmithhandson.com/')
		oCMenu.makeMenu('sub400','sub40','On-line Magazine','http://www.shopsmithhandson.com/','',150,20)
        oCMenu.makeMenu('sub41','top4','Hands-On Archives','http://www.shopsmith.com/ownersite/handson/index.htm')
	oCMenu.makeMenu('sub42','top4','Projects & Articles','http://www.shopsmith.com/ownersite/proj_articles/index.htm')
		oCMenu.makeMenu('sub420','sub42','Free projects and articles for your use and reference.','http://www.shopsmith.com/ownersite/proj_articles/index.htm','',150,40)
		

oCMenu.makeMenu('top5','','&nbsp;Shopsmith','http://www.shopsmith.com/ownersite/shopsmithindex.htm')
	oCMenu.makeMenu('sub50','top5','Company History','http://www.shopsmith.com/ownersite/history.htm')
        oCMenu.makeMenu('sub51','top5','Policies','http://www.shopsmith.com/ownersite/policies.htm')
        oCMenu.makeMenu('sub52','top5','Employment','http://www.shopsmith.com/ownersite/employment.htm')
        oCMenu.makeMenu('sub53','top5','Contact','http://www.shopsmith.com/ownersite/contact.htm')
        oCMenu.makeMenu('sub54','top5',' ',' ')
		oCMenu.makeMenu('sub540','sub54',' ',' ','',150,20)
        oCMenu.makeMenu('sub55','top5','Chairman','http://www.shopsmith.com/ownersite/chairman.htm')
		oCMenu.makeMenu('sub550','sub55','A message from the Chairman of Shopsmith.','http://www.shopsmith.com/ownersite/chairman.htm','',150,40)
        oCMenu.makeMenu('sub56','top5','Links','http://www.shopsmith.com/ownersite/links.htm')
        oCMenu.makeMenu('sub57','top5','Service Locations','http://www.shopsmith.com/ownersite/servicelocations.htm')


oCMenu.makeMenu('top6','','&nbsp;Archives','http://www.shopsmith.com/ownersite/archiveindex.htm')
	oCMenu.makeMenu('sub60','top6','Hands-On Archives','http://www.shopsmith.com/ownersite/handson/index.htm')
        oCMenu.makeMenu('sub61','top6','Woodtips Archives','http://www.woodshoptips.com/dailytips/index.htm')
        oCMenu.makeMenu('sub62','top6','Product Manuals','http://www.shopsmith.com/ownersite/productmanuals.htm')


oCMenu.makeStyle(); oCMenu.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)
}
