slideMenu = new createSlideMenu("slideMenu")

//Variables to set:
slideMenu.menuy=150 
slideMenu.menux=0 
slideMenu.useImages = 1 
slideMenu.pxspeed=20 //The pixel speed of the animation
slideMenu.timspeed=25 //The timer speed of the animation
slideMenu.inset = 10 //How much the selected items should pop to the left
slideMenu.arrow = 0 //Set this to className that has font-family:webdings

//Needed dummy classes - leave in the stylesheet!
slideMenu.bgClass =	"slideMenuBG"
slideMenu.txtClass = "slideMenuText"
/*******************************************************************************
Level properties - ALL properties have to be specified in level 0
This works the same way as the CM4 script (if you have used it)

The level[0] values will be the default value. Any value not specified
in higher levels will be inherited from level[0]. If anything
is spesified in level[1], but not in level[2], level[2] (sub2 menus) 
will get the property value from level[1] and so on.

The availble values to control the menu by level are:

left           - The left placement of all items in the current level ( px value )
width          - The width of all items in the current level  ( px value )
height         - The height of all items in the current level  ( px value )
between        - The number of pixels between each item in  the current level ( px value)
className      - A name of a class specified in the stylesheet to control the
	               look of all items in this level. 
	               NOTE: The class MUST be in a stylesheet, and it most have position:absolute.
classNameA     - A name of a class specified in the stylesheet that will control the 
 								 Look of the TEXT for all items in this level. (you can also specify 
								 a hover class for this className to get a mouseover effect on the 
								 text.
regImage 			 - If you choose to use image feature of the script you have to
                 spesify the default image here.
roundImg       - This is the image that will used when a item is selected.
roundImg2      - This is the image used for sub-levels on the last item in a list.
								 (that's how the last items in this example are rounded on the sub-levels)
subImg         - The image used when the item has sub-items. Only in use for sub-levels
subRound       - Same as roundImg2 - only for items that have sub-items.

********************************************************************************/
slideMenu.level[0] = new slideMenu_makeLevel(
	left = 0,
	width = 138,
	height = 21,
	between = 0,
	className = "clSlideMenu",
	classNameA = "clA0",
	regImage = "images/nav/menu/level0_regular.gif",
	roundImg = "images/nav/menu/level0_round.gif",
	roundImg2 = "",
	subImg = "",
	subRound= "")
	
slideMenu.level[1] = new slideMenu_makeLevel(10,127,20,2,"clSlideMenu","clA1","images/nav/menu/level1_regular.gif","images/nav/menu/level1_round2.gif","images/nav/menu/level1_round.gif","images/nav/menu/level1_sub.gif","level1_sub_round.gif")
slideMenu.level[2] = new slideMenu_makeLevel(21,118,18,2,"clSlideMenu","clA2","images/nav/menu/level2_regular.gif","images/nav/menu/level2_round2.gif","images/nav/menu/level2_round.gif","images/nav/menu/level2_sub.gif","level2_sub_round.gif")
slideMenu.level[3] = new slideMenu_makeLevel(33,108,20,2,"clSlideMenu","clA3","images/nav/menu/level3_regular.gif","images/nav/menu/level3_round2.gif","images/nav/menu/level3_round.gif","images/nav/menu/level3_sub.gif","level3_sub_round.gif")
/* slideMenu.level[4] = new slideMenu_makeLevel(40,107,19,2,"clSlideMenu","clA4","level4_regular.gif", "level4_round2.gif","level4_round.gif","level4_sub.gif", "level4_sub_round.gif")

//Image preload --- leave this
for(var i=0;i<slideMenu.level;i++){
	var l = slideMenu.level[i]
	new preLoadBackgrounds(l.regImage,l.roundImg,l.roundImg2,l.subImg,l.subRound)
}

/**********************************************************************
Making the menus is the same as in SlideMenu 1 only that now
you can make as many levels as you want.

The arguments to the makeMenu function are:

mySlideMenu.makeMenu('TYPE','TEXT','LINK','TARGET')
************************************************************************/

//Menu 1 -----------------------
slideMenu.makeMenu('top','Home','index.shtml')
slideMenu.makeMenu('top','About Us','abt.shtml')
slideMenu.makeMenu('top','Personal')
	slideMenu.makeMenu('sub','Accounts','peracc.shtml')
	slideMenu.makeMenu('sub','Loans','perloan.shtml')
	slideMenu.makeMenu('sub','Services','persvc.shtml')
slideMenu.makeMenu('top','Commercial')
	slideMenu.makeMenu('sub','Accounts','comacc.shtml')
	slideMenu.makeMenu('sub','Loans','comloans.shtml')
	slideMenu.makeMenu('sub','Services','comsvc.shtml')
slideMenu.makeMenu('top','Locations','loc.shtml')
slideMenu.makeMenu('top','Q&A','qa.shtml')
slideMenu.makeMenu('top','Properties For Sale','properties.php')
slideMenu.makeMenu('top','Online Banking')
//	slideMenu.makeMenu('sub','Personal','unavailable.html')
//	slideMenu.makeMenu('sub','Commercial','unavailable.html')
//	slideMenu.makeMenu('sub','Personal','https://global1.onlinebank.com/vtg/login.htm?rxd=&banknr=1951')
	slideMenu.makeMenu('sub','Personal','helpPersonal.html')
	slideMenu.makeMenu('sub','Commercial','helpCom.html')
//	slideMenu.makeMenu('sub','Commercial','https://command.onlinebank.com/1952')
slideMenu.makeMenu('top','Andover Bancorp','http://www.andoverbancorp.com','_blank')


//Initiating the menu !! 
slideMenu.init()
