/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

var oM=new makeCM("oM")
oM.pxBetween =0
oM.fromTop=180
oM.fromLeft=10
oM.menuPlacement="center"
oM.wait=600
oM.fillImg=0
oM.zIndex=100 
oM.resizeCheck=0
oM.zIndex=100  

oM.onlineRoot=""
oM.offlineRoot=""

oM.rows=1

//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=130
oM.level[0].height=20
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=1
oM.level[0].borderY=0
oM.level[0].borderClass="clB2" 
oM.level[0].rows=0
oM.level[0].align="bottom"
oM.level[0].offsetX=0
oM.level[0].offsetY=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0

oM.level[1]=new cm_makeLevel()
oM.level[1].width=130
oM.level[1].height=20
oM.level[1].regClass="clS" 
oM.level[1].overClass="clSover" 
oM.level[1].borderX=1
oM.level[1].borderY=1
oM.level[1].borderClass="clB1"
oM.level[1].align="bottomright"
oM.level[1].rows=1
oM.level[1].arrow=0
oM.level[1].arrowWidth=1
oM.level[1].arrowHeight=1

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oM.makeMenu('top0','','Studio 03','index.html','',130,'','','','','',"center")
	oM.makeMenu('0sub01','top0','Move With Us','move.html','',130,20)
	oM.makeMenu('0sub02','top0','Classes Offered','classes-offered.html','',130,20)
	oM.makeMenu('0sub03','top0','Dress Code','dress-code.html','',130,20)
	oM.makeMenu('0sub04','top0','Services','services.html','',130,20)

oM.makeMenu('top1','','About Us','about-us.html','',130,'','','','','',"center")
	oM.makeMenu('1sub01','top1','Studio 03','about-us.html','',180,20)
	oM.makeMenu('1sub02','top1','Faculty','faculty.html','',180,20)
	oM.makeMenu('1sub03','top1','CORE Dance Company','core.html','',180,20)

oM.makeMenu('top2','','Registration','tuition-info.html','',130,'','','','','',"center")
	oM.makeMenu('2sub01','top2','Registration Form','Registration Form-2010.pdf','_blank',130,20)
	oM.makeMenu('2sub02','top2','Fees','tuition-fees.html','',130,20)
	oM.makeMenu('2sub03','top2','Policies','policies.html','',130,20)
//	oM.makeMenu('2sub03','top2','Tuition','tuition-info.html','',130,20)
	oM.makeMenu('2sub04','top2','Class Cards','class-card.html','',130,20)

oM.makeMenu('top3','','Schedule','schedule.html','',130,'','','','','',"center")
    oM.makeMenu('3sub01','top3','Fall 2010 Schedule','Fall Schedule 2010.pdf','',230,20)
	//oM.makeMenu('3sub02','top3','Intensive schedule','Summer Intensive Schedule 2010.pdf','',230,20)
	//oM.makeMenu('3sub03','top3','Intensive registration form','Summer Intensive Registration Form 2010.pdf','',230,20)
	//oM.makeMenu('3sub04','top3','Jam schedule','Summer Jam Schedule 2010.pdf','_blank',230,20)
	//oM.makeMenu('3sub05','top3','Jam registration form','Summer Jam Registration Form 2010.pdf','_blank',230,20)
//	oM.makeMenu('3sub04','top3','Summer Workshop Schedule','summer-schedule.html','',200,20)
//	oM.makeMenu('3sub05','top3','Summer Workshop Tuition','summer-tuition.html','',200,20)

oM.makeMenu('top4','','Contact Us','contact.html','',130,'','','','','',"center")
	oM.makeMenu('4sub01','top4','Email & Directions','contact.html','',130,20)
	oM.makeMenu('4sub02','top4','Friends of Studio 03','friends.html','',130,20)

oM.construct()

//Extra test code to customize the CoolMenus.
var xx,yy
oM.m["top0"].b.hideIt() //Hiding the 1st item.
oM.m["top1"].b.hideIt() //Hiding the 2nd item.
oM.m["top2"].b.hideIt() //Hiding the 3rd item.
oM.m["top3"].b.hideIt() //Hiding the 4th item.
oM.m["top4"].b.hideIt() //Hiding the 5th item.

function getCoords(e){
	xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
  yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
}

//Capturing onmousemove event
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getCoords;