/*** 
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

//Netscape 4 - bug fix - 
//maybe -stupid NS4 - objects are not handled correctly when
//the object creator is in a linked file
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()

//Frame properties
oCMenu.frames = 1

//Menu properties   
oCMenu.pxBetween=30
oCMenu.fromLeft=0
oCMenu.fromTop=20  
oCMenu.rows=0 
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="file:///C|/Documents and Settings/David Howery/My Documents/Freelancing/jjable/jjubillee/htdocs/" 
oCMenu.onlineRoot="/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
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=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="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=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=-(oCMenu.level[0].width-2)/2+20
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=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"


/******************************************
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;Web Based and Intuitive','webbased.htm','frmMain','300','','','','','','right')
	oCMenu.makeMenu('sub40','top0','Designed for Internet','webbased.htm#internet','frmMain','220')
	oCMenu.makeMenu('sub41','top0','Web browser and Adobe Reader','webbased.htm#explorer','frmMain','220')
	oCMenu.makeMenu('sub42','top0','Ease of Training','webbased.htm#reader','frmMain','220')
	oCMenu.makeMenu('sub43','top0','Reliable IBM Web Server','webbased.htm#server','frmMain','220')

oCMenu.makeMenu('top1','','&nbsp;Totally New','totallynew.htm','frmMain','200','','','','','','right')
	oCMenu.makeMenu('sub50','top1','Built From Ground Up','totallynew.htm#built','frmMain','220')
	oCMenu.makeMenu('sub51','top1','21st Century Specification','totallynew.htm#specification','frmMain','220')
	oCMenu.makeMenu('sub52','top1','Convergent Billing','totallynew.htm#billing','frmMain','220')
	oCMenu.makeMenu('sub53','top1','Multi-Multi','totallynew.htm#company','frmMain','220')

oCMenu.makeMenu('top2','','&nbsp;Innovative','innovative.htm','frmMain','200','','','','','','right')
	oCMenu.makeMenu('sub70','top2','Automated Work Flow','innovative.htm#work','frmMain','220')
	oCMenu.makeMenu('sub71','top2','Bar Codes, Scanners, Receipt Printers','innovative.htm#paper','frmMain','220')
//	oCMenu.makeMenu('sub72','top2','Bar Coding','innovative.htm#bar','frmMain','200')
//	oCMenu.makeMenu('sub73','top2','Scanners and Receipt Printers','innovative.htm#scanner','frmMain','200')
	oCMenu.makeMenu('sub74','top2','Powerful Searches and Queries','innovative.htm#search','frmMain','220')
	oCMenu.makeMenu('sub75','top2','Archived Bills and Reports','innovative.htm#bills','frmMain','220')
	oCMenu.makeMenu('sub76','top2','Notes and Reminders','innovative.htm#reminders','frmMain','220')
	oCMenu.makeMenu('sub77','top2','Toll and CABS Repositories, AMA Record Displays','innovative.htm#tolls','frmMain','220','40')
	

oCMenu.makeMenu('top3','','&nbsp;Comprehensive','comprehensive.htm','frmMain','200','','','','','','right')
	oCMenu.makeMenu('sub80','top3','Customer Biling','comprehensive.htm#billing','frmMain','220')
	oCMenu.makeMenu('sub81','top3','CABS','comprehensive.htm#cabs','frmMain','220')
	oCMenu.makeMenu('sub82','top3','Toll Rating','comprehensive.htm#toll','frmMain','220')
	oCMenu.makeMenu('sub83','top3','Trouble Reporting','comprehensive.htm#trouble','frmMain','220')
	oCMenu.makeMenu('sub84','top3','Automated Switch Interfaces','comprehensive.htm#switch','frmMain','220')
	oCMenu.makeMenu('sub85','top3','Automated E-911 Updates','comprehensive.htm#911','frmMain','220')
	oCMenu.makeMenu('sub86','top3','Automated CNAM Updates','comprehensive.htm#cnam','frmMain','220')
	oCMenu.makeMenu('sub87','top3','Automated ICONS Updates','comprehensive.htm#icons','frmMain','220')
	oCMenu.makeMenu('sub88','top3','Accounting','comprehensive.htm#accounting','frmMain','220')
	oCMenu.makeMenu('sub89','top3','Management Reports','comprehensive.htm#reports','frmMain','220')

oCMenu.makeMenu('top4','','&nbsp;Affordable','affordable.htm','frmMain','200','','','','','','right')

oCMenu.makeMenu('top5','','&nbsp;Brochure','images/JJubillee Brochure VER6.pdf','_blank','300','','','','','','right')

//Leave this line - it constructs the menu
oCMenu.construct()		

function placeElements(){
  //Changing the position of ALL top items:
  oCMenu.m["top0"].b.moveIt(10,39)
  oCMenu.m["top1"].b.moveIt(10,64)
  oCMenu.m["top2"].b.moveIt(10,89)
  oCMenu.m["top3"].b.moveIt(10,114)
  oCMenu.m["top4"].b.moveIt(10,139)
  oCMenu.m["top5"].b.moveIt(10,164)
 }
placeElements()
//Setting it to re place the elements after resize - the resize is not perfect though..
oCMenu.onafterresize="placeElements()"

/*OPTIONAL LINE:
Because some browsers (especially our old friend NS4)
have problems with this initial frame load you might
want to add a line similar to this (replace MyFrameName
with the name of you frame):

top.frmMain.location.reload()

This will ensure that the menu is loaded when 
the first page is loaded in the main frame.

This also helps the resize problems in Opera and NS4
*/
top.frmMain.location.reload() 
