//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 ---- //There are some differences between the browsers that I try to fix here. //oCMenu.fromLeft=!bw.ns4?cmpage.x2 - 160:cmpage.x2 - 176 //We also need to "replace" the menu on resize. So: //oCMenu.onresize="oCMenu.fromLeft=cmpage.x2 - 160" oCMenu.fromLeft=70 oCMenu.fromTop=207 oCMenu.rows=0 oCMenu.menuPlacement=0 oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=0 oCMenu.wait=1000 oCMenu.fillImg="" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=0 oCMenu.barWidth="menu" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX="menu" oCMenu.barY="menu" oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" //Level properties - ALL properties have to be spesified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=244 oCMenu.level[0].height=21 oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX=1 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].arrow=0 oCMenu.level[0].arrowWidth=0 oCMenu.level[0].arrowHeight=0 oCMenu.level[0].align="right" //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 oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[1].width=170 oCMenu.level[1].height=21 oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].borderX=1 oCMenu.level[1].borderY=1 oCMenu.level[1].align="right" oCMenu.level[1].offsetX=0 oCMenu.level[1].offsetY=0 oCMenu.level[1].borderClass="clLevel1border" //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[2].width=170 oCMenu.level[2].height=21 oCMenu.level[2].offsetX=0 oCMenu.level[2].offsetY=0 oCMenu.level[2].regClass="clLevel1" oCMenu.level[2].overClass="clLevel1over" oCMenu.level[2].borderClass="clLevel1border" /****************************************** Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ oCMenu.makeMenu('m6035','m5','Abstract','http://photodiartis.com/category/abstract.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6035','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6036','m6035','General','http://photodiartis.com/category/6036.html','','170','21','','','','');oCMenu.makeMenu('m6038','m6035','Shapes and colors','http://photodiartis.com/category/shapes-and-colors.html','','170','21','','','','');oCMenu.makeMenu('m9206','m6035','Texture','http://photodiartis.com/category/texture.html','','170','21','','','','');oCMenu.makeMenu('m6009','m5','Animals and insects','http://photodiartis.com/category/animals-and-insects.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6009','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6011','m6009','Birds','http://photodiartis.com/category/birds.html','','170','21','','','','');oCMenu.makeMenu('m6024','m6009','Fish','http://photodiartis.com/category/fish.html','','170','21','','','','');oCMenu.makeMenu('m6012','m6009','*Insects*','http://photodiartis.com/category/6012.html','','170','21','','','','');oCMenu.makeMenu('m6013','m6009','*Reptiles*','http://photodiartis.com/category/6013.html','','170','21','','','','');oCMenu.makeMenu('m8640','m6009','Shells','http://photodiartis.com/category/shells.html','','170','21','','','','');oCMenu.makeMenu('m6014','m5','Arhitecture','http://photodiartis.com/category/arhitecture.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6014','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m7640','m6014','Ambient','http://photodiartis.com/category/ambient.html','','170','21','','','','');oCMenu.makeMenu('m6016','m6014','*Doors*','http://photodiartis.com/category/6016.html','','170','21','','','','');oCMenu.makeMenu('m6017','m6014','Detail','http://photodiartis.com/category/detail.html','','170','21','','','','');oCMenu.makeMenu('m6039','m6014','*Urban*','http://photodiartis.com/category/6039.html','','170','21','','','','');oCMenu.makeMenu('m6019','m6014','Windows','http://photodiartis.com/category/windows.html','','170','21','','','','');oCMenu.makeMenu('m8871','m5','Composition','http://photodiartis.com/category/composition.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm8871','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6045','m5','Food and drinks','http://photodiartis.com/category/food-and-drinks.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6045','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6046','m6045','General','http://photodiartis.com/category/6046.html','','170','21','','','','');oCMenu.makeMenu('m6047','m6045','Fruits and vegetables','http://photodiartis.com/category/fruits-and-vegetables.html','','170','21','','','','');oCMenu.makeMenu('m6048','m6045','Drinks','http://photodiartis.com/category/drinks.html','','170','21','','','','');oCMenu.makeMenu('m6049','m5','Medical','http://photodiartis.com/category/medical.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6049','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6050','m6049','*General*','http://photodiartis.com/category/6050.html','','170','21','','','','');oCMenu.makeMenu('m6053','m5','Nature','http://photodiartis.com/category/nature.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6053','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6054','m6053','*Caves*','http://photodiartis.com/category/6054.html','','170','21','','','','');oCMenu.makeMenu('m6055','m6053','Clouds','http://photodiartis.com/category/clouds.html','','170','21','','','','');oCMenu.makeMenu('m6056','m6053','Flowers','http://photodiartis.com/category/flowers.html','','170','21','','','','');oCMenu.makeMenu('m6058','m6053','Landscape','http://photodiartis.com/category/landscape.html','','170','21','','','','');oCMenu.makeMenu('m6057','m6053','*Mountains*','http://photodiartis.com/category/6057.html','','170','21','','','','');oCMenu.makeMenu('m6059','m6053','*Trees*','http://photodiartis.com/category/6059.html','','170','21','','','','');oCMenu.makeMenu('m6060','m6053','*Water - Miscellaneous*','http://photodiartis.com/category/6060.html','','170','21','','','','');oCMenu.makeMenu('m6061','m5','People','http://photodiartis.com/category/people.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6061','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6062','m6061','General','http://photodiartis.com/category/6062.html','','170','21','','','','');oCMenu.makeMenu('m6070','m5','Structure','http://photodiartis.com/category/structure.html','','160','21','','','menubg','menubg2');oCMenu.makeMenu('mm6070','m5','','','','160','1','/images/e.gif','','','');oCMenu.makeMenu('m6071','m6070','Ground','http://photodiartis.com/category/ground.html','','170','21','','','','');oCMenu.makeMenu('m6073','m6070','Fire','http://photodiartis.com/category/fire.html','','170','21','','','','');oCMenu.makeMenu('m6074','m6070','Ice','http://photodiartis.com/category/ice.html','','170','21','','','','');oCMenu.makeMenu('m7293','m6070','Geo','http://photodiartis.com/category/geo.html','','170','21','','','','');oCMenu.makeMenu('m6076','m6070','Mineral','http://photodiartis.com/category/mineral.html','','170','21','','','','');oCMenu.makeMenu('m6075','m6070','Metal','http://photodiartis.com/category/metal.html','','170','21','','','','');oCMenu.makeMenu('m9175','m6070','Paint','http://photodiartis.com/category/paint.html','','170','21','','','','');oCMenu.makeMenu('m6080','m6070','*Water*','http://photodiartis.com/category/6080.html','','170','21','','','','');oCMenu.makeMenu('m6079','m6070','Wall','http://photodiartis.com/category/wall.html','','170','21','','','','');oCMenu.makeMenu('m6081','m6070','Wood','http://photodiartis.com/category/wood.html','','170','21','','','',''); //Leave this line - it constructs the menu oCMenu.construct()