/*** 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 topMenu=new makeCM("topMenu"); //Making the menu object. Argument: menuname //Menu properties topMenu.pxBetween=9; topMenu.fromLeft=Ext.get("logo").getX() - 4; topMenu.fromTop=88; topMenu.rows=1; topMenu.menuPlacement="left"; topMenu.offlineRoot="/"; topMenu.onlineRoot="http://www.vcv.org/vcv/"; topMenu.resizeCheck=1; topMenu.wait=100; topMenu.fillImg="cm_fill.gif"; topMenu.zIndex=0; //Background bar properties /*topMenu.useBar=0; topMenu.barWidth="menu"; topMenu.barHeight="menu"; topMenu.barClass="clBar"; topMenu.barX="menu"; topMenu.barY="menu"; topMenu.barBorderX=0; topMenu.barBorderY=0; topMenu.barBorderClass="";*/ //Level properties - ALL properties have to be specified in level 0 topMenu.level[0]=new cm_makeLevel(); //Add this for each new level topMenu.level[0].width=100; topMenu.level[0].height=30; topMenu.level[0].regClass="clLevel0"; topMenu.level[0].overClass="clLevel0over"; topMenu.level[0].borderX=0; topMenu.level[0].borderY=0; topMenu.level[0].borderClass="clLevel0border"; topMenu.level[0].offsetX=0; topMenu.level[0].offsetY=0; topMenu.level[0].rows=0; topMenu.level[0].arrow=0; topMenu.level[0].arrowWidth=0; topMenu.level[0].arrowHeight=0; topMenu.level[0].align="bottom"; //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this topMenu.level[1]=new cm_makeLevel(); //Add this for each new level (adding one to the number) topMenu.level[1].width=150; topMenu.level[1].height=24; topMenu.level[1].regClass="clLevel1"; topMenu.level[1].overClass="clLevel1over"; topMenu.level[1].borderX=1; topMenu.level[1].borderY=1; topMenu.level[1].align="right"; topMenu.level[1].offsetX=0; topMenu.level[1].offsetY=0; topMenu.level[1].borderClass="clLevel1border"; topMenu.level[1].rows=0; topMenu.level[1].arrow="/vcv/images/topmenu_arrow_right.gif"; topMenu.level[1].arrowWidth=10; topMenu.level[1].arrowHeight=10; //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this topMenu.level[2]=new cm_makeLevel(); //Add this for each new level (adding one to the number) topMenu.level[2].width=200; topMenu.level[2].height=24; topMenu.level[2].offsetX=200; topMenu.level[2].offsetY=0; topMenu.level[2].regClass="clLevel2"; topMenu.level[2].overClass="clLevel2over"; topMenu.level[2].borderClass="clLevel2border"; /****************************************** Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ topMenu.makeMenu('aa14','','Home ','home.do','','62'); topMenu.makeMenu('aa15','','VCV','','','50'); topMenu.makeMenu('aa30','','Alumni','alumni/search.do','','72'); topMenu.makeMenu('aa31','','Communities','','','125'); topMenu.makeMenu('aa32','','Actualities','','','102'); topMenu.makeMenu('aa2212','','Career','','','70'); topMenu.makeMenu('aa2200','','Bulletin board','bulletinboard.do','','132'); topMenu.makeMenu('aa19','aa15','Who is who','pages/property/show.do?property=vcv.staticcontent.tiles.whoiswho','',''); topMenu.makeMenu('aa20','aa15','History','vcvhistory.do','',''); topMenu.makeMenu('aa21','aa15','Association','','',''); topMenu.makeMenu('aa24','aa15','Membership','pages/property/show.do?property=vcv.staticcontent.tiles.membership','',''); topMenu.makeMenu('aa25','aa15','Special members','pages/property/show.do?property=vcv.staticcontent.tiles.specialmembers','',''); topMenu.makeMenu('aa26','aa15','Media','pages/property/show.do?property=vcv.staticcontent.tiles.media','',''); topMenu.makeMenu('aa2222','aa15','Benefits','pages/property/show.do?property=vcv.staticcontent.tiles.benefits','',''); topMenu.makeMenu('aa2220','aa21','Organisation','pages/property/show.do?property=vcv.staticcontent.tiles.organisation','',''); topMenu.makeMenu('aa22','aa21','Council of Representatives','pages/property/show.do?property=vcv.staticcontent.tiles.councilofrepresentatives','',''); topMenu.makeMenu('aa23','aa21','Year representatives','pages/property/show.do?property=vcv.staticcontent.tiles.yearrepresentatives','',''); topMenu.makeMenu('aa520','aa31','Circles','group/circlesoverview.do','',''); topMenu.makeMenu('aa521','aa31','Groups','group/groupsoverview.do','',''); topMenu.makeMenu('aa33','aa32','Agenda','agenda.do','',''); topMenu.makeMenu('aa34','aa32','News','news.do','',''); topMenu.makeMenu('aa2217','aa2212','Education','pages/property/show.do?property=vcv.staticcontent.tiles.education','',''); topMenu.makeMenu('aa2218','aa2212','Vacancies','vacancies.do','',''); topMenu.makeMenu('aa2216','aa2212','Career Counseling','pages/property/show.do?property=vcv.staticcontent.tiles.careercenter','',''); //Leave this line - it constructs the menu topMenu.construct();