/*****************************************************************************
Default browsercheck
******************************************************************************/
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.ver.indexOf("MSIE 8")>-1)) || (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.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()
var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame=""
oCMenu.useNS4links=0
oCMenu.NS4padding=2
oCMenu.checkselect=0
oCMenu.offlineUrl="file:///C|/thebest12/scripts/coolmenus3/"
oCMenu.onlineUrl="http://simplythebest.net/scripts/coolmenus3/"

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1
oCMenu.wait=1000

oCMenu.usebar=1
oCMenu.barcolor="009933"
oCMenu.barwidth="100%"
oCMenu.barheight="menu"
oCMenu.barx=0
oCMenu.bary="menu"
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=5
oCMenu.fromtop=0
oCMenu.pxbetween=0
oCMenu.menuplacement=new Array(5,90,155,250,325,475,600)
oCMenu.NS4hover=1

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=145
oCMenu.level[0].height=18
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="#ffffff"
oCMenu.level[0].hovercolor="#006600" 
oCMenu.level[0].style="font-family:arial,helvetica,sans serif; 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,sans serif"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom"

//menu definitions
oCMenu.level[1]=new Array() 
oCMenu.level[1].width=150
oCMenu.level[1].height=18
oCMenu.level[1].bgcoloroff="00CC33"
oCMenu.level[1].bgcoloron="009933"
oCMenu.level[1].textcolor="#003333"
oCMenu.level[1].hovercolor="#ffffff"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica,sans serif; font-size:11px; font-weight:normal"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=0 
oCMenu.level[1].bordercolor="#006699"
oCMenu.level[1].NS4font="arial,helvetica,sans serif"
oCMenu.level[1].NS4fontSize="1"
oCMenu.level[1].NS4fontColor="black"

oCMenu.makeMenu('top0','','&nbsp;About Us')
	oCMenu.makeMenu('sub00','top0','HOME','http://theatreontario.org')
	oCMenu.makeMenu('sub01','top0','What We Do','http://theatreontario.org/content/activities.htm')
	oCMenu.makeMenu('sub02','top0','Mandate and History','http://theatreontario.org/content/mandate.htm')
	oCMenu.makeMenu('sub03','top0','Supporters','http://theatreontario.org/content/supporters.htm')
        oCMenu.makeMenu('sub04','top0','Membership','http://theatreontario.org/content/membership.htm')
        oCMenu.makeMenu('sub05','top0','Staff & Board','http://theatreontario.org/content/staff_board.htm')
        oCMenu.makeMenu('sub06','top0','Awards','http://theatreontario.org/content/awards.htm')
        oCMenu.makeMenu('sub07','top0','Contact Us','http://theatreontario.org/content/contact_us.htm')

oCMenu.makeMenu('top1','','&nbsp;News')
	oCMenu.makeMenu('sub10','top1','E-Newsletter','http://theatreontario.org/content/enewsletter.htm')
	oCMenu.makeMenu('sub11','top1','Media Releases','http://theatreontario.org/content/news_releases.htm')
	oCMenu.makeMenu('sub12','top1','Newsletter','http://theatreontario.org/content/newsletter.htm')
	
oCMenu.makeMenu('top2','','&nbsp;ONstage')
	oCMenu.makeMenu('sub21','top2','ONstage','http://theatreontario.org/content/on_stage.htm')
	oCMenu.makeMenu('sub22','top2','Summer Theatre','http://theatreontario.org/content/summer_theatre.htm')
	oCMenu.makeMenu('sub23','top2','Festivals','http://theatreontario.org/content/festivals.htm')
	
oCMenu.makeMenu('top3','','&nbsp;Training')
        oCMenu.makeMenu('sub30','top3','Training & Counselling','http://theatreontario.org/content/training.htm')
	oCMenu.makeMenu('sub31','top3','Adult Summer Courses','http://theatreontario.org/content/a_summercourses.htm')
	oCMenu.makeMenu('sub32','top3','Youth Summer Courses','http://theatreontario.org/content/y_summercourses.htm')
        oCMenu.makeMenu('sub33','top3','Shaw Directors Project','http://theatreontario.org/content/shaw.htm')
        oCMenu.makeMenu('sub34','top3','Professional Theatre Training','http://theatreontario.org/content/pttp.htm')
        oCMenu.makeMenu('sub35','top3','Youth Theatre Training','http://theatreontario.org/content/yttp.htm')
        oCMenu.makeMenu('sub36','top3','Talent Bank','http://theatreontario.org/content/tb.htm')
         oCMenu.makeMenu('sub37','top3','Workshops You Want','http://theatreontario.org/content/tbworkshops.htm')
		 oCMenu.makeMenu('sub38','top3','Teacher Training','http://theatreontario.org/content/classroomstages.htm')
        oCMenu.makeMenu('sub39','top3','Shaw Appreciation','http://theatreontario.org/content/shawappreciation.htm')
		
		

oCMenu.makeMenu('top4','','&nbsp;Actors & Producers')
	oCMenu.makeMenu('sub40','top4','FAQs','http://theatreontario.org/content/faq.htm')
	oCMenu.makeMenu('sub41','top4','Auditions','http://theatreontario.org/content/auditions.htm')
	oCMenu.makeMenu('sub42','top4','Getting Into Acting','http://theatreontario.org/content/acting.htm')
	oCMenu.makeMenu('sub43','top4','Workshops & Counselling','http://theatreontario.org/content/workshops.htm')
        oCMenu.makeMenu('sub44','top4','Non-Union Talent Files','http://theatreontario.org/content/paths.htm')
        oCMenu.makeMenu('sub45','top4','Studios & Other Workshops','http://theatreontario.org/content/training.htm')
        oCMenu.makeMenu('sub46','top4','Acting Modelling Info Service','http://theatreontario.org/content/amis.htm')

oCMenu.makeMenu('top5','','&nbsp;Resource Centre')
        oCMenu.makeMenu('sub50','top5','Career Research','http://theatreontario.org/content/career_research.htm')
        oCMenu.makeMenu('sub51','top5','Community Theatre Regions','http://theatreontario.org/content/community_theatre_regions.htm')
        oCMenu.makeMenu('sub52','top5','Education and TYA','http://theatreontario.org/content/education.htm')
	oCMenu.makeMenu('sub53','top5','Funding','http://theatreontario.org/content/funding_organizations.htm')
        oCMenu.makeMenu('sub54','top5','Professional Associations','http://theatreontario.org/content/professional_associations.htm')
        oCMenu.makeMenu('sub55','top5','Service Organizations','http://theatreontario.org/content/service_organizations.htm')
        oCMenu.makeMenu('sub56','top5','Touring Organizations','http://theatreontario.org/content/touring.htm')
	oCMenu.makeMenu('sub57','top5','Copyright','http://theatreontario.org/content/copyright.htm')
	oCMenu.makeMenu('sub58','top5','Publications','http://theatreontario.org/content/publications.htm')
        oCMenu.makeMenu('sub59','top5','Recommended Reading','http://theatreontario.org/content/reading.htm')
        oCMenu.makeMenu('sub510','top5','Health & Safety','http://theatreontario.org/content/health.htm')

oCMenu.makeMenu('top6','','&nbsp;School Tools')
	oCMenu.makeMenu('sub60','top6','Post Secondary Training','http://theatreontario.org/content/post_secondary.htm')
	oCMenu.makeMenu('sub61','top6','Co-op Placements','http://theatreontario.org/content/co_op.htm')
        oCMenu.makeMenu('sub62','top6','Writing Play Reviews','http://theatreontario.org/content/play_reviews.htm')
        oCMenu.makeMenu('sub63','top6','Careers in Theatre','http://theatreontario.org/content/careers_in_theatre.htm')
        oCMenu.makeMenu('sub64','top6','Actor Craft','http://theatreontario.org/content/actors_craft.htm')
        oCMenu.makeMenu('sub65','top6','Designing for Theatre','http://theatreontario.org/content/design.htm')
        oCMenu.makeMenu('sub66','top6','Stage Management','http://theatreontario.org/content/stage_management.htm')
        oCMenu.makeMenu('sub67','top6','Playwrighting','http://theatreontario.org/content/playwrighting.htm')

//menu activation
oCMenu.makeStyle(); oCMenu.construct()		

//check scrolling routine
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)
}