/*** 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. **/ //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 //Using the cm_page object to place the menu ---- oCMenu.fromLeft=0 oCMenu.fromTop=0 oCMenu.rows=1 oCMenu.menuPlacement=0 oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=1 oCMenu.wait=1000 oCMenu.fillImg="images/spacer.gif" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=0 //Level properties - ALL properties have to be spesified in level 1 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=180; oCMenu.level[0].height=26 oCMenu.level[0].regClass="" oCMenu.level[0].overClass="" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevelborder" oCMenu.level[0].offsetX=0 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].arrow="" oCMenu.level[0].arrowWidth=0 oCMenu.level[0].arrowHeight=0 oCMenu.level[0].align="right" oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //Level properties - ALL properties have to be spesified in level 2 oCMenu.level[1]=new cm_makeLevel() //Add this for each new level oCMenu.level[1].width=180 oCMenu.level[1].height=26 oCMenu.level[1].regClass="" oCMenu.level[1].overClass="" oCMenu.level[1].borderX=0 oCMenu.level[1].borderY=0 oCMenu.level[1].borderClass="clLevelborder" oCMenu.level[1].offsetX=0 oCMenu.level[1].offsetY=0 oCMenu.level[1].rows=0 oCMenu.level[1].arrow="images/arrow.gif" oCMenu.level[1].arrowWidth=15 oCMenu.level[1].arrowHeight=12 oCMenu.level[1].align="right" oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //Level properties - ALL properties have to be spesified in level 3 oCMenu.level[2]=new cm_makeLevel() //Add this for each new level oCMenu.level[2].width=180 oCMenu.level[2].height=26 oCMenu.level[2].regClass="" oCMenu.level[2].overClass="" oCMenu.level[2].borderX=0 oCMenu.level[2].borderY=0 oCMenu.level[2].borderClass="clLevelborder" oCMenu.level[2].offsetX=0 oCMenu.level[2].offsetY=0 oCMenu.level[2].rows=0 oCMenu.level[2].arrow="images/arrow.gif" oCMenu.level[2].arrowWidth=15 oCMenu.level[2].arrowHeight=12 oCMenu.level[2].align="right" oCMenu.level[2].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //Level properties - ALL properties have to be spesified in level 4 oCMenu.level[3]=new cm_makeLevel() //Add this for each new level oCMenu.level[3].width=180 oCMenu.level[3].height=26 oCMenu.level[3].regClass="" oCMenu.level[3].overClass="" oCMenu.level[3].borderX=0 oCMenu.level[3].borderY=0 oCMenu.level[3].borderClass="clLevelborder" oCMenu.level[3].offsetX=0 oCMenu.level[3].offsetY=0 oCMenu.level[3].rows=0 oCMenu.level[3].arrow="images/arrow.gif" oCMenu.level[3].arrowWidth=15 oCMenu.level[3].arrowHeight=12 oCMenu.level[3].align="bottom" oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" /****************************************** Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass, align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ // Level1 (id=1) - HOME (no parent) oCMenu.makeMenu('10','',"HOME",'http://www.floridastage.org/home.htm','_self','20','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level1 (id=43) - About Florida Stage (no parent) oCMenu.makeMenu('430','',"
About Florida Stage
",'http://www.floridastage.org/about','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level2 (id=22) - Mission (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('22043','430','Mission','http://www.floridastage.org/pages','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=21) - History (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('21043','430','History','http://www.floridastage.org/history','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=24) - Past Seasons & Photo Gallery (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('24043','430','Past Seasons & Photo Gallery','http://www.floridastage.org/pastseasons','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=25) - Board of Trustees (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('25043','430','Board of Trustees','http://www.floridastage.org/board','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=53) - Staff (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('53043','430','Staff','http://www.floridastage.org/staff','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=265) - Blog: 1st Draft (parent of Level1 (id=43) - About Florida Stage) oCMenu.makeMenu('265043','430','Blog: 1st Draft ','http://floridastage.typepad.com/floridastage/','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level1 (id=7) - TICKETS (no parent) oCMenu.makeMenu('70','',"TICKETS",'http://www.floridastage.org/ticketinfo','_self','110','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level2 (id=8) - Ticket Info (parent of Level1 (id=7) - TICKETS) oCMenu.makeMenu('807','70','Ticket Info ','http://www.floridastage.org/ticketinfo','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=94) - Subscriptions (parent of Level1 (id=7) - TICKETS) oCMenu.makeMenu('9407','70','Subscriptions','http://www.floridastage.org/subscriptions.htm','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=79) - Purchase Tickets Online (parent of Level1 (id=7) - TICKETS) oCMenu.makeMenu('7907','70','Purchase Tickets Online','http://purchase.tickets.com/buy/TicketPurchase?organ_val=21842','_blank','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=253) - Other Tix Packages (parent of Level1 (id=7) - TICKETS) oCMenu.makeMenu('25307','70','Other Tix Packages','http://www.floridastage.org/other_tix','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level1 (id=270) - Florida Stage
at the Kravis (no parent) oCMenu.makeMenu('2700','',"
Florida Stage
at the Kravis
",'http://www.floridastage.org/Florida-Stage-Kravis-Center','_self','157','54','','','clLevelB1','clLevelB1over','right','','','','','') // Level2 (id=297) - Campaign for
the Future (parent of Level1 (id=270) - Florida Stage
at the Kravis) oCMenu.makeMenu('2970270','2700','Campaign for
the Future','http://www.floridastage.org/CampaignfortheFuture ','_self','200','66','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=296) - Take A Seat (parent of Level1 (id=270) - Florida Stage
at the Kravis) oCMenu.makeMenu('2960270','2700','Take A Seat','http://www.floridastage.org/takeaseat','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=298) - Future Society (parent of Level1 (id=270) - Florida Stage
at the Kravis) oCMenu.makeMenu('2980270','2700','Future Society','http://www.floridastage.org/FutureSociety','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level1 (id=9) - 10-11 SEASON (no parent) oCMenu.makeMenu('90','',"10-11 SEASON",'http://www.floridastage.org/season','_self','105','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level2 (id=333) - Cane (parent of Level1 (id=9) - 10-11 SEASON) oCMenu.makeMenu('33309','90','Cane','http://www.floridastage.org/cane','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=334) - Goldie, Max & Milk (parent of Level1 (id=9) - 10-11 SEASON) oCMenu.makeMenu('33409','90','Goldie, Max & Milk','http://www.floridastage.org/goldiemaxmilk','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=335) - Ghost-Writer (parent of Level1 (id=9) - 10-11 SEASON) oCMenu.makeMenu('33509','90','Ghost-Writer','http://www.floridastage.org/ghostwriter','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level2 (id=336) - The Cha-Cha of a Camel Spider (parent of Level1 (id=9) - 10-11 SEASON) oCMenu.makeMenu('33609','90','The Cha-Cha of a Camel Spider','http://www.floridastage.org/chacha','_self','200','26','','','clLevelA2','clLevelA2over','right','','','','','') // Level1 (id=44) - Educational Programs (no parent) oCMenu.makeMenu('440','',"
Educational Programs
",'http://www.floridastage.org/youngvoices','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level1 (id=10) - NEWS (no parent) oCMenu.makeMenu('100','',"NEWS",'http://www.floridastage.org/news.htm','_self','90','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level1 (id=16) - Support Florida Stage (no parent) oCMenu.makeMenu('160','',"
Support Florida Stage
",'http://www.floridastage.org/donatenow','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level2 (id=124) - Donate Now (parent of Level1 (id=16) - Support Florida Stage) oCMenu.makeMenu('124016','160','Donate Now','http://www.floridastage.org/donatenow','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=190) - Donors (parent of Level1 (id=16) - Support Florida Stage) oCMenu.makeMenu('190016','160','Donors','http://www.floridastage.org/donorsmain','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=319) - Corporate Membership Levels (parent of Level1 (id=16) - Support Florida Stage) oCMenu.makeMenu('319016','160','Corporate Membership Levels','http://www.floridastage.org/CorporateMembershipLevels','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=320) - Corporate Sponsorship (parent of Level1 (id=16) - Support Florida Stage) oCMenu.makeMenu('320016','160','Corporate Sponsorship ','http://www.floridastage.org/CorporateSponsorship','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=321) - Center Stage Society (parent of Level1 (id=16) - Support Florida Stage) oCMenu.makeMenu('321016','160','Center Stage Society ','http://www.floridastage.org/CenterStageSociety ','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level1 (id=19) - CALENDAR (no parent) oCMenu.makeMenu('190','',"CALENDAR",'http://www.floridastage.org/Main','_self','90','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level1 (id=180) - FurtherMore (no parent) oCMenu.makeMenu('1800','',"
FurtherMore
",'http://www.floridastage.org/fmintro','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level1 (id=3) - CONTACT US (no parent) oCMenu.makeMenu('30','',"CONTACT US",'http://www.floridastage.org/contact','_self','105','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level1 (id=36) - 1st Stage (no parent) oCMenu.makeMenu('360','',"
1st Stage
",'http://www.floridastage.org/festival','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level1 (id=37) - Lee Wolf's
Theatre Club (no parent) oCMenu.makeMenu('370','',"
Lee Wolf`s
Theatre Club
",'http://www.floridastage.org/theatreclub','_self','157','54','','','clLevelB1','clLevelB1over','right','','','','','') // Level2 (id=289) - About Theatre Club (parent of Level1 (id=37) - Lee Wolf's
Theatre Club) oCMenu.makeMenu('289037','370','About Theatre Club ','http://www.floridastage.org/theatreclub','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=288) - Theatre Club Members (parent of Level1 (id=37) - Lee Wolf's
Theatre Club) oCMenu.makeMenu('288037','370','Theatre Club Members','http://www.floridastage.org/theatreclubmembers','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=290) - Lee Wolf Fund (parent of Level1 (id=37) - Lee Wolf's
Theatre Club) oCMenu.makeMenu('290037','370','Lee Wolf Fund ','http://www.floridastage.org/LeeWolfFund','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level1 (id=317) - DIRECTIONS (no parent) oCMenu.makeMenu('3170','',"DIRECTIONS",'http://www.floridastage.org/directions','_self','110','26','','','clLevelA1','clLevelA1over','bottom','','','','','') // Level1 (id=39) - Other Information (no parent) oCMenu.makeMenu('390','',"
Other Information
",'http://www.floridastage.org/Auditions','_self','157','35','','','clLevelB1','clLevelB1over','right','','','','','') // Level2 (id=40) - Auditions (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('40039','390','Auditions','http://www.floridastage.org/Auditions','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=41) - Script Submission (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('41039','390','Script Submission','http://www.floridastage.org/scriptsubmission','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=42) - Internships (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('42039','390','Internships','http://www.floridastage.org/Internships','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=318) - Ushering (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('318039','390','Ushering ','http://www.floridastage.org/Ushering ','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=55) - Employment Opportunities (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('55039','390','Employment Opportunities','http://www.floridastage.org/employmentopportunities','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') // Level2 (id=107) - Photo Credits (parent of Level1 (id=39) - Other Information) oCMenu.makeMenu('107039','390','Photo Credits','http://www.floridastage.org/photocredits','_self','200','35','','','clLevelB2','clLevelB2over','right','','','','','') //Leave this line - it constructs the menu oCMenu.construct() //Extra code to find position: function findPos(num){ //alert(num) if(bw.ns4){ //Netscape 4 x = document.layers["layerMenu"+num].pageX y = document.layers["layerMenu"+num].pageY }else{ //other browsers x=0; y=0; var el,temp el = bw.ie4?document.all["divMenu"+num]:document.getElementById("divMenu"+num); if(el.offsetParent){ temp = el while(temp.offsetParent){ //Looping parent elements to get the offset of them as well temp=temp.offsetParent; if(bw.ns6) { x+=temp.offsetLeft; } else { x+=temp.offsetLeft; } y+=temp.offsetTop; } } x+=el.offsetLeft y+=el.offsetTop } //Returning the x and y as an array return [x,y] } function placeElements(){ //Changing the position of ALL top items: pos = findPos(10) oCMenu.m["10"].b.moveIt(pos[0],pos[1]) pos = findPos(430) oCMenu.m["430"].b.moveIt(pos[0],pos[1]) pos = findPos(70) oCMenu.m["70"].b.moveIt(pos[0],pos[1]) pos = findPos(2700) oCMenu.m["2700"].b.moveIt(pos[0],pos[1]) pos = findPos(90) oCMenu.m["90"].b.moveIt(pos[0],pos[1]) pos = findPos(440) oCMenu.m["440"].b.moveIt(pos[0],pos[1]) pos = findPos(100) oCMenu.m["100"].b.moveIt(pos[0],pos[1]) pos = findPos(160) oCMenu.m["160"].b.moveIt(pos[0],pos[1]) pos = findPos(190) oCMenu.m["190"].b.moveIt(pos[0],pos[1]) pos = findPos(1800) oCMenu.m["1800"].b.moveIt(pos[0],pos[1]) pos = findPos(30) oCMenu.m["30"].b.moveIt(pos[0],pos[1]) pos = findPos(360) oCMenu.m["360"].b.moveIt(pos[0],pos[1]) pos = findPos(370) oCMenu.m["370"].b.moveIt(pos[0],pos[1]) pos = findPos(3170) oCMenu.m["3170"].b.moveIt(pos[0],pos[1]) pos = findPos(390) oCMenu.m["390"].b.moveIt(pos[0],pos[1]) //Setting the fromtop value oCMenu.fromTop = pos[1] } placeElements() //Setting it to re place the elements after resize - the resize is not perfect though.. oCMenu.onafterresize="placeElements()"