/*** 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('aa13','','Home ','home.do','','65'); topMenu.makeMenu('aa1','','VCV','','','50'); topMenu.makeMenu('aa6','','Alumni','alumni/search.do','','80'); topMenu.makeMenu('aa8','','Communities','','','125'); topMenu.makeMenu('aa10','','Actueel','','','80'); topMenu.makeMenu('aa2210','','Career','','','70'); topMenu.makeMenu('aa2199','','Prikbord','bulletinboard.do','','86'); topMenu.makeMenu('aa2','aa1','Wie is wie','pages/property/show.do?property=vcv.staticcontent.tiles.whoiswho','',''); topMenu.makeMenu('aa3','aa1','Geschiedenis','vcvhistory.do','',''); topMenu.makeMenu('aa4','aa1','Vereniging','','',''); topMenu.makeMenu('aa2207','aa1','Lidmaatschap','pages/property/show.do?property=vcv.staticcontent.tiles.membership','',''); topMenu.makeMenu('aa2208','aa1','Speciale leden','pages/property/show.do?property=vcv.staticcontent.tiles.specialmembers','',''); topMenu.makeMenu('aa2203','aa1','Media','pages/property/show.do?property=vcv.staticcontent.tiles.media','',''); topMenu.makeMenu('aa2221','aa1','Benefits','pages/property/show.do?property=vcv.staticcontent.tiles.benefits','',''); topMenu.makeMenu('aa2219','aa4','Organisatie','pages/property/show.do?property=vcv.staticcontent.tiles.organisation','',''); topMenu.makeMenu('aa5','aa4','Raad van Afgevaardigden','pages/property/show.do?property=vcv.staticcontent.tiles.councilofrepresentatives','',''); topMenu.makeMenu('aa7','aa4','Jaarvertegenwoordigers','pages/property/show.do?property=vcv.staticcontent.tiles.yearrepresentatives','',''); topMenu.makeMenu('aa2223','aa4','Statuten (PDF)','http://www.vcv.org/vcv/binary/retrieveFile?instanceid=463&itemid=3883&style=home','',''); topMenu.makeMenu('aa519','aa8','Kringen','group/circlesoverview.do','',''); topMenu.makeMenu('aa522','aa8','Groepen','group/groupsoverview.do','',''); topMenu.makeMenu('aa11','aa10','Agenda','agenda.do','',''); topMenu.makeMenu('aa12','aa10','Nieuws','news.do','',''); topMenu.makeMenu('aa2214','aa2210','Educatie','pages/property/show.do?property=vcv.staticcontent.tiles.education','',''); topMenu.makeMenu('aa2213','aa2210','Vacatures','vacancies.do','',''); topMenu.makeMenu('aa2215','aa2210','Career Counseling','pages/property/show.do?property=vcv.staticcontent.tiles.careercenter','',''); //Leave this line - it constructs the menu topMenu.construct();