/*****************************************************************************
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.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7
	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.ie7 || 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=256
oCMenu2.fromtop=43 
oCMenu2.pxbetween=0

oCMenu2.menuplacement="left"

oCMenu2.level[0]=new Array() 
oCMenu2.level[0].width=115 
oCMenu2.level[0].height=20 
oCMenu2.level[0].bgcoloroff="transparent"
oCMenu2.level[0].bgcoloron="transparent" 
oCMenu2.level[0].textcolor="white"
oCMenu2.level[0].hovercolor="black" 
oCMenu2.level[0].style="font-family:arial,helvetica; font-size:15px; font-weight:bold"
oCMenu2.level[0].border=0 
oCMenu2.level[0].bordercolor="" 
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=115
oCMenu2.level[1].height=20
oCMenu2.level[1].bgcoloroff="#ED1C24"
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:bold"
oCMenu2.level[1].align="bottom" 
oCMenu2.level[1].offsetX=0
oCMenu2.level[1].offsetY=0
oCMenu2.level[1].border=1 
oCMenu2.level[1].bordercolor="#000000"
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','','<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;About Us','aboutus.html','','118','52','','','#EB1B1B','#EB1B1B')
oCMenu2.makeMenu('sub10','top1','About Us','aboutus.html','','','','','','#EB1B1B','','#FFFFFF')
oCMenu2.makeMenu('sub11','top1','Our Staff','staff.htm','','','','','','#EB1B1B','','#FFFFFF')
oCMenu2.makeMenu('sub12','top1','History','history.html','','','','','','#EB1B1B','','#FFFFFF')
    oCMenu2.makeMenu('sub13','top1','Auditory/Oral','auditoryoral.html','','','','','','#EB1B1B','','#FFFFFF')
		oCMenu2.makeMenu('sub14','top1','Developmental Milestones','milestones.htm','','','30','','','#EB1B1B','','#FFFFFF')
		oCMenu2.makeMenu('sub15','top1','Newsletters','newsletters.htm','','','','','','#EB1B1B','','#FFFFFF')
	oCMenu2.makeMenu('sub16','top1','Alumni','alumni.html','','','','','','#EB1B1B','','#FFFFFF')
	oCMenu2.makeMenu('sub17','top1','Our Board','board.html','','','','','','#EB1B1B','','#FFFFFF')
	oCMenu2.makeMenu('sub18','top1','Contact Us','contact.html','','','','','','#EB1B1B','','#FFFFFF')
	oCMenu2.makeMenu('sub19','top1','Directions','directions.html','','','','','','#EB1B1B','','#FFFFFF')
    
oCMenu2.makeMenu('top2','','<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programs','programs.html','','118','52','','','#EB811B','#EB811B')
oCMenu2.makeMenu('sub20','top2','Programs','programs.html','','','30','','','#EB811B','','#FFFFFF')
oCMenu2.makeMenu('sub21','top2','Parent/Infant Program','parentinfant.html','','','30','','','#EB811B','','#FFFFFF')
oCMenu2.makeMenu('sub22','top2','Preschool Program','preschool.html','','','','','','#EB811B','','#FFFFFF')
oCMenu2.makeMenu('sub23','top2','Itinerant Program','itinerant.html','','','','','','#EB811B','','#FFFFFF')

oCMenu2.makeMenu('top3','','<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Audiology','audiology.html','','118','52','','','#FB710C','#FB710C')
    	
oCMenu2.makeMenu('top4','','<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parents','parents.html','','118','52','','','#D944B8','#D944B8')
oCMenu2.makeMenu('sub30','top4','Parents','parents.html','','','','','','#D944B8','','#FFFFFF')
oCMenu2.makeMenu('sub31','top4','FAQ','parentsfaq.html','','','','','','#D944B8','','#FFFFFF')
	oCMenu2.makeMenu('sub32','top4','Links','parentslinks.html','','','','','','#D944B8','','#FFFFFF')
        
oCMenu2.makeMenu('top5','','<br>&nbsp;&nbsp;&nbsp;Professionals','professionals.html','','118','52','','','#7B3EC9','#7B3EC9')
	oCMenu2.makeMenu('sub40','top5','Professionals','professionals.html','','','','','','#7B3EC9','','#FFFFFF')
	oCMenu2.makeMenu('sub41','top5','Links','professionallinks.html','','','','','','#7B3EC9','','#FFFFFF')
    
oCMenu2.makeMenu('top6','','<br>&nbsp;&nbsp;&nbsp;&nbsp;Support Us','supportus.html','','118','52','','','#4A86CC','#4A86CC')    
oCMenu2.makeMenu('sub50','top6','Support Us','supportus.html','','','','','','#4A86CC','','#FFFFFF')
oCMenu2.makeMenu('sub51','top6','Our Supporters','supporters.html','','','','','','#4A86CC','','#FFFFFF')
oCMenu2.makeMenu('sub52','top6','Donate Online','donations.html','','','','','','#4A86CC','','#FFFFFF')	

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)
}
