/*********************************

The actual script file is inside the

slidemenu.js file - remember to link 

that to your HTML file.

**********************************/

//Creating the menu object -- You can call it whatever you want - just remember to

//have the same name as the argument.

slideMenu = new createSlideMenu("slideMenu")

//Variables to set:

slideMenu.menuy=200 //The top placement of the menu.


slideMenu.menux=0 //The left placement of the menu


slideMenu.useImages = 1 //Are you using images or not?


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

//if you want to use the arrow feature. Note:

//This ONLY works on DOM capable browsers, and with

//useImages set to 0 - It's basically just a test I did.

//I hope to improve it later on.


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


To understand the image setup see the images supplied with this script.


NOTE: Always specify the full (relative) path to the images!


The slideMenu_makeLevel function provides a shortcut to making levels.


If you are more comfortable with setting the properties by name you can


also set them like this:


slideMenu.level[0] = new Array()


slideMenu.level[0].left = 0


slideMenu.level[0].width = 138


..... and so on.


NOTE: In level 0 below I have included the names of the variables just for



readability - feel free to remove left = , width = , height = et cetera...


********************************************************************************/


slideMenu.level[0] = new slideMenu_makeLevel(


	left = 0,


	width = 138,


	height = 21,

	between = 3,


	className = "clSlideMenu",


	classNameA = "clA0",


	regImage = "../../level0_regular.gif",


	roundImg = "../../level0_round.gif",


	roundImg2 = "",


	subImg = "",


	subRound= "")

slideMenu.level[1] = new slideMenu_makeLevel(10,127,20,2,"clSlideMenu","clA1","../../level1_regular.gif","../../level1_round2.gif","../../level1_round.gif","../../level1_sub.gif", "../../level1_sub_round.gif")


slideMenu.level[2] = new slideMenu_makeLevel(21,118,18,2,"clSlideMenu","clA2","../../level2_regular.gif","../../level2_round2.gif","../../level2_round.gif", "../../level2_sub.gif", "../../level2_sub_round.gif")


slideMenu.level[3] = new slideMenu_makeLevel(33,108,20,2,"clSlideMenu","clA3","../../level3_regular.gif","../../level3_round2.gif","../../level3_round.gif","../../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")
slideMenu.level[5] = new slideMenu_makeLevel(40,107,19,2,"clSlideMenu","clA5","../../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.



NOTE: If you are converting from SlideMenu1 remember to add: theNameOfYourMenu.


in front of all menu creation calls.


The arguments to the makeMenu function are:

TYPE - top for top item, sub for sub item, sub2 for sub2 item, sub3 





       for sub3 item and so on (I've done it like that to keep it the same way as version 1)





TEXT - The link text for the item






TARGET - The target frame to open the links in. You do not have to spesify this if you





are not in a frame enviroment. (see below for more info)





------------------------------------------------------------





NOTE: I get mail about this all the time so I will try and explain more:





If you where to make a regular link that would open a link in another





frame you would probably do like this:





<a href="mylink.html" target="myOtherFrameName">Link</a>





To do the same for a slideMenu link you do like this:




slideMenu.makeMenu('top','My link','mylink.html','myOtherFrameName')





------------------------------------------------------------



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

************************************************************************/

//Menu 1 -----------------------

slideMenu.makeMenu('top','National Program')

	slideMenu.makeMenu('sub','HQ - Regulatory','http://www.usace.army.mil/CECW/Pages/cecwo_reg.aspx')

	slideMenu.makeMenu('sub','Announcements','http://www.usace.army.mil/CECW/Pages/nnpi.aspx')

	slideMenu.makeMenu('sub','Corps Laws & Regs','http://www.usace.army.mil/CECW/Pages/reg_materials.aspx')

	slideMenu.makeMenu('sub','U.S. EPA Laws & Regs','http://www.epa.gov/owow/laws.html')

	slideMenu.makeMenu('sub','Regulatory Guidance Letters','http://www.usace.army.mil/CECW/Pages/cecwo_reg.aspx')

	slideMenu.makeMenu('sub','Other Corps Districts','http://www.usace.army.mil/about/Pages/Locations.aspx')

	slideMenu.makeMenu('sub','Public Service','pubserv.htm')

slideMenu.makeMenu('top','Regulatory Program')

slideMenu.makeMenu('sub','Permit Program Info','http://www.usace.army.mil/CECW/Pages/reg_permit.aspx')

slideMenu.makeMenu('sub','Corps Reg Program FAQs','reg-bro.htm')

slideMenu.makeMenu('sub','Reg Program Videos','http://www.saj.usace.army.mil/Divisions/Regulatory/NationalVideos.htm')

slideMenu.makeMenu('sub','Regulatory Map','http://www.lrb.usace.army.mil/regulatory/RegMap.htm')

slideMenu.makeMenu('top','Nationwide Permits')

	slideMenu.makeMenu('sub','HQ Info.','http://www.usace.army.mil/CECW/Pages/nw_permits.aspx')

	slideMenu.makeMenu('sub','District Info.')
	slideMenu.makeMenu('sub2','2007 Nationwide Permits','nwp.htm')
	slideMenu.makeMenu('sub2','2012 Nationwide Permits','2012_comment.htm')
	
slideMenu.makeMenu('top','Regional Permits - NY','reg_perms.htm')

slideMenu.makeMenu('top','Actions & Notices')

	slideMenu.makeMenu('sub','Recent Permit Requests','apps.htm')

	slideMenu.makeMenu('sub','Public Notices','notices.htm')

	slideMenu.makeMenu('sub','Final Permit Actions','action.htm')

	slideMenu.makeMenu('sub','All Permit Actions','allaction.htm')

	slideMenu.makeMenu('sub','JD Forms','jd.htm')

	slideMenu.makeMenu('sub','Appeals','http://www.lrd.usace.army.mil/regulatory/appealprocess/')

slideMenu.makeMenu('top','District Information')

	slideMenu.makeMenu('sub','Navigable Waterways')

		slideMenu.makeMenu('sub2','New York','NavWatersNY.htm')

		slideMenu.makeMenu('sub2','Ohio','NavWatersOH.htm')

	slideMenu.makeMenu('sub','General Information')

		slideMenu.makeMenu('sub2','Great Lake Water Levels','http://www.glerl.noaa.gov/data/now/wlevels/levels.html')

		slideMenu.makeMenu('sub2','Living on the Coast','http://www.lre.usace.army.mil/coastalprocesses/Publications/Living_on_the_Coast.pdf')

	slideMenu.makeMenu('sub','N-J. Isolated Waters','NJD_epa.htm')

	slideMenu.makeMenu('sub','Safety Programs')

		slideMenu.makeMenu('sub2','Water Safety Program','http://watersafety.usace.army.mil/')

		slideMenu.makeMenu('sub2','Ice Safety Information','http://www.crrel.usace.army.mil/ierd/ice_safety/safety.html')

slideMenu.makeMenu('top','Application Forms')

	slideMenu.makeMenu('sub','New York')

	slideMenu.makeMenu('sub2','Application &amp; Instrs','http://www.lrb.usace.army.mil/regulatory/jointapp.pdf')
		
	slideMenu.makeMenu('sub2','Corps/DEC Boundaries','http://www.lrb.usace.army.mil/regulatory/Regulatory_NY_NoName.pdf')

		slideMenu.makeMenu('sub2','NY CZM Form','http://www.nyswaterfronts.com/downloads/pdfs/fcaf2.pdf')

		slideMenu.makeMenu('sub2','NY CZM Policies','http://www.lrb.usace.army.mil/orgs/reg/other/State_Policy.pdf')

	slideMenu.makeMenu('sub','Ohio')

		slideMenu.makeMenu('sub2','OH Application','http://www.lrb.usace.army.mil/orgs/reg/other/E4345.pdf')

		slideMenu.makeMenu('sub2','Instructions','appl_inst.htm')

		slideMenu.makeMenu('sub2','Checklist','ohchecklist.pdf')

		slideMenu.makeMenu('sub2','Water Qual. Cert.','http://www.epa.state.oh.us/dsw/')

slideMenu.makeMenu('top','Mitigation & Monitoring')
slideMenu.makeMenu('sub','Guidelines, Wetland Ohio','guidelines wetland mitigation-Ohio.pdf')
slideMenu.makeMenu('sub','Final Mitigatn Rule 4/2008','Final Mitigaiton Rule April 2008.pdf')
slideMenu.makeMenu('sub','Q&amp;A Final Mitigatn Rule 4/2008','Questions and Answers Final Mitigation Rule April 2008.pdf')

slideMenu.makeMenu('top','Wetland Information')

slideMenu.makeMenu('sub','Wetlands','wetlands.htm')

slideMenu.makeMenu('sub','Recognizing Wetlands','http://www.usace.army.mil/CECW/Documents/cecwo/reg/rw_bro.pdf')

slideMenu.makeMenu('sub','Wetlands & Agriculture','http://www.spk.usace.army.mil/cespk-co/regulatory/SB.html')

slideMenu.makeMenu('top','Other Agencies')

	slideMenu.makeMenu('sub','Federal','ags_orgs.htm#fed-agency')

	slideMenu.makeMenu('sub','New York State','ags_orgs.htm#NY-agency')

	slideMenu.makeMenu('sub','Ohio','ags_orgs.htm#OH-agency')

	slideMenu.makeMenu('sub','Other','ags_orgs.htm#other')

slideMenu.makeMenu('top','High Profile Issues')

slideMenu.makeMenu('sub','Cleveland-Cuyahoga CPA','update.htm')

slideMenu.makeMenu('sub','Gas Drilling.','FrackingFactSheet_01-12.pdf')

slideMenu.makeMenu('sub','GL Off-Shore Wind FS','http://www.lrb.usace.army.mil/regulatory/hpi/document2010-11-08-125838.pdf')

slideMenu.makeMenu('top','Customer Survey','http://per2.nwp.usace.army.mil/survey.html')

slideMenu.makeMenu('top','Contact Us')

slideMenu.makeMenu('sub','Contact Us','contactus.htm')

slideMenu.makeMenu('sub','FOIA Requests','http://www.lrb.usace.army.mil/regulatory/FOIA.doc')

slideMenu.makeMenu('sub','Report a Violation','http://www.lrb.usace.army.mil/regulatory/ReportofViolation.pdf')

//Initiating the menu !! 

slideMenu.init()


