//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

oCMenu.frames=0

//New properties in 4.06 - Set to open and/or close the menu onclick
oCMenu.openOnClick=0
oCMenu.closeOnClick=0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=25 
oCMenu.fromTop=88   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///I|/Home Page/atmlj" 
oCMenu.onlineRoot="http://www.myoptics.at/atmlj" 
oCMenu.resizeCheck=1 
oCMenu.wait=500 
oCMenu.fillImg="/images/fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=87
oCMenu.barBorderX=1
oCMenu.barBorderY=1
oCMenu.barBorderClass="clBarBorder"

//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=110
oCMenu.level[0].height=25 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
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="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
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=22
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"
oCMenu.level[1].arrow="/images/arrow.gif"
oCMenu.level[1].arrowWidth=12
oCMenu.level[1].arrowHeight=9

//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=150
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"
oCMenu.level[2].arrow="/images/arrow.gif"
oCMenu.level[2].arrowWidth=12
oCMenu.level[2].arrowHeight=9

//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('top0','','&nbsp;Home','http://www.myoptics.at','_blank',75)
  oCMenu.makeMenu('sub00','top0','&nbsp;My Optics','http://www.myoptics.at','_blank',150)  
  oCMenu.makeMenu('sub01','top0','&nbsp;MODAS','http://www.myoptics.at/modas/','_blank',150)
  oCMenu.makeMenu('sub02','top0','&nbsp;JODAS','http://www.myoptics.at/jodas/','_blank',150)
  oCMenu.makeMenu('sub03','top0','&nbsp;SUNDI','http://www.myoptics.at/sundi/','_blank',150)
  oCMenu.makeMenu('sub04','top0','&nbsp;ATMLJ','http://www.myoptics.at/atmlj/','_blank',150)
oCMenu.makeMenu('top1','','&nbsp;About','/about.html',0,70)
oCMenu.makeMenu('top2','','&nbsp;Current Issue','/current.html',0,115)
oCMenu.makeMenu('top3','','&nbsp;Back Issues','/archives.html',0,105)
  oCMenu.makeMenu('sub30','top3','&nbsp;2003','/volume01.html',0,150)  
  oCMenu.makeMenu('sub31','top3','&nbsp;2004','/volume02.html',0,150)
  oCMenu.makeMenu('sub32','top3','&nbsp;2005','/volume03.html',0,150)
  oCMenu.makeMenu('sub33','top3','&nbsp;2006','/volume04.html',0,150)
  oCMenu.makeMenu('sub34','top3','&nbsp;2007','/volume05.html',0,150)
  oCMenu.makeMenu('sub35','top3','&nbsp;2008','/volume06.html',0,150)
  oCMenu.makeMenu('sub36','top3','&nbsp;2009','/volume07.html',0,150)
  oCMenu.makeMenu('sub37','top3','&nbsp;2010','/volume08.html',0,150)
  oCMenu.makeMenu('sub38','top3','&nbsp;2011','/volume09.html',0,150)
oCMenu.makeMenu('top4','','&nbsp;Samples','/samples.html',0,85)
oCMenu.makeMenu('top5','','&nbsp;Subscribe','/subscribe.html',0,95)
  oCMenu.makeMenu('sub50','top5','&nbsp;Submit Article','/submit.html',0,150)  
oCMenu.makeMenu('top6','','&nbsp;Contact','/contact.html',0,85)
oCMenu.makeMenu('top7','','&nbsp;ATM Stuff','',0,85)
  oCMenu.makeMenu('sub70','top7','&nbsp;Calculators','',150)  
    oCMenu.makeMenu('sub700','sub70','&nbsp;2-Element Focal Length Calculator','/stuff/2eecalc.html','_blank',225)  
    oCMenu.makeMenu('sub701','sub70','&nbsp;3-Element Focal Length Calculator','/stuff/3eecalc.html','_blank',225)  
    oCMenu.makeMenu('sub702','sub70','&nbsp;Eyepiece Field of View Calculator','/stuff/fovcalc.html','_blank',225)  
    oCMenu.makeMenu('sub703','sub70','&nbsp;Eyepiece Projection Calculator','/stuff/epcalc.html','_blank',225)  
    oCMenu.makeMenu('sub704','sub70','&nbsp;Pixel Size and FOV Calculator','/stuff/psfovcalc.html','_blank',225)  
    oCMenu.makeMenu('sub705','sub70','&nbsp;Lurie-Houghton Calculator','/stuff/lhtcalc.html','_blank',225)  
    oCMenu.makeMenu('sub706','sub70','&nbsp;One Mirror Calculator','/stuff/omtcalc.html','_blank',225)  
    oCMenu.makeMenu('sub707','sub70','&nbsp;Two Mirror Calculator','/stuff/tmtcalc.html','_blank',225)  
    oCMenu.makeMenu('sub708','sub70','&nbsp;Doublet Calculator','/stuff/doubletcalc.html','_blank',225)  
    oCMenu.makeMenu('sub709','sub70','&nbsp;Baffle Calculator','/stuff/bafflecalc.html','_blank',225)  
    oCMenu.makeMenu('sub70A','sub70','&nbsp;Glass Calculator','/stuff/glasscalc.html','_blank',225)  
    oCMenu.makeMenu('sub70B','sub70','&nbsp;Lens Calculator','/stuff/lenscalc.html','_blank',225)  
  oCMenu.makeMenu('sub71','top7','&nbsp;Applets','',150)  
    oCMenu.makeMenu('sub710','sub71','&nbsp;Mt. Palomar View 1','/stuff/palomarview1.html','_blank',150)  
    oCMenu.makeMenu('sub711','sub71','&nbsp;Mt. Palomar View 2','/stuff/palomarview2.html','_blank',150)  
    oCMenu.makeMenu('sub712','sub71','&nbsp;Mt. Wilson View','/stuff/wilsonview.html','_blank',150)  
    oCMenu.makeMenu('sub713','sub71','&nbsp;Newtonian Raytrace','/stuff/raytrace.html','_blank',150)  
    oCMenu.makeMenu('sub714','sub71','&nbsp;Graphic Calculator','/stuff/graphcalc.html','_blank',150)  
    oCMenu.makeMenu('sub715','sub71','&nbsp;DXF Viewer','/stuff/dxfviewer.html','_blank',150)  
  oCMenu.makeMenu('sub72','top7','&nbsp;Excel','',150)  
    oCMenu.makeMenu('sub720','sub72','&nbsp;Mirror Profile by D. Maksutov','/stuff/maksprof.xls','_blank',200)  
    oCMenu.makeMenu('sub721','sub72','&nbsp;Mirror Profile by R. Sinnott','/stuff/sinnprof.xls','_blank',200)  
    oCMenu.makeMenu('sub722','sub72','&nbsp;Millies-Lacroix GA','/stuff/mlgraph.xls','_blank',200)  
    oCMenu.makeMenu('sub723','sub72','&nbsp;One Mirror Calculator','/stuff/omtcalc.xls','_blank',200)  
    oCMenu.makeMenu('sub724','sub72','&nbsp;Two Mirror Calculator','/stuff/tmtcalc.xls','_blank',200)  
    oCMenu.makeMenu('sub725','sub72','&nbsp;EODAS','/stuff/eodas.xls','_blank',200)  

//Leave this line - it constructs the menu
oCMenu.construct()		

