	/********************************************************************************
	Calling the write functions and setting variables
	********************************************************************************/

	//Variables to set

	oFoldMenu=new foldoutMenuObj('oFoldMenu')
	oFoldMenu.substay=false //Should the sub menus stay folded?
	oFoldMenu.sub2stay=false //Should the sub2 menus stay folded?
	oFoldMenu.sub3stay=false //Should the sub3 menus stay folded?
	oFoldMenu.sub4stay=false //Should the sub4 menus stay folded?
	oFoldMenu.sub5stay=false //Should the sub5 menus stay folded?
	oFoldMenu.sub6stay=false //Should the sub6 menus stay folded?

	oFoldMenu.menubetween=0 //The pixel value between the foldoutmenus

	oFoldMenu.left=0 //The left position of the menu
	oFoldMenu.top=0 //The top position of the menu
	oFoldMenu.width=170 //The width of the menu
	oFoldMenu.maxheight=0 //The maxheight of the menu, be sure to set this one high enough

	//Setting styles
	oFoldMenu.clFold="color: #535763; width: 130px; height: 16px; padding-bottom: 2px; padding-left: 20px; padding-top: 2px; display: block; " //Regular styles for the topDivs
	oFoldMenu.clSub="color: #535763; width: 116px; height: 16px; padding-bottom: 1px; padding-left: 36px; display: block; " //Styles for the subDivs
	oFoldMenu.clSub2="color: #535763; width: 100px; height: 16px; padding-bottom: 1px; padding-left: 46px; display: block; " //Styles for the sub2Divs
	oFoldMenu.clSub3="color: #535763; width: 90px; height: 16px; padding-bottom: 1px; padding-left: 56px; display: block; " //Styles for the sub3Divs
	oFoldMenu.clSub4="color: #535763; width: 80px; height: 16px; padding-bottom: 1px; padding-left: 66px; display: block; " //Styles for the sub4Divs
	oFoldMenu.clSub5="color: #535763; width: 70px; height: 16px; padding-bottom: 1px; padding-left: 76px; display: block; " //Styles for the sub5Divs

	oFoldMenu.clFoldHover="width: 130px; height: 16px; padding-bottom: 2px; padding-left: 20px; padding-top: 2px; background-color: #6F7072; color: #FFFFFF; display: block; " //Regular hover styles for the topDivs
	oFoldMenu.clSubHover="width: 116px; height: 16px; padding-bottom: 1px; padding-left: 36px; background-color: #6F7072; color: #FFFFFF; display: block; " //Hover Styles for the subDivs
	oFoldMenu.clSub2Hover="width: 100px; height: 16px; padding-bottom: 1px; padding-left: 46px; background-color: #6F7072; color: #FFFFFF; display: block;" //Hover Styles for the sub2Divs
	oFoldMenu.clSub3Hover="width: 90px; height: 16px; padding-bottom: 1px; padding-left: 55px; background-color: #6F7072; color: #FFFFFF; display: block;" //Hover Styles for the sub3Divs
	oFoldMenu.clSub4Hover="width: 80px; height: 16px; padding-bottom: 1px; padding-left: 66px; background-color: #6F7072; color: #FFFFFF; display: block;" //Hover Styles for the sub4Divs
	oFoldMenu.clSub5Hover="width: 70px; height: 16px; padding-bottom: 1px; padding-left: 76px; background-color: #6F7072; color: #FFFFFF; display: block;" //Hover Styles for the sub5Divs

	oFoldMenu.clCont="position:relative;" //The cont layer, set position to relative if you want to try and have it inside a layer or whatever

	oFoldMenu.clFoldLinks="text-decoration:none; font-weight:normal; display: block; " //The style for the toplinks
	oFoldMenu.clSubLinks="font-family:Arial, Helvetica; font-size:13px; font-weight:normal; text-decoration:none; display: block; " //The style for the sublinks
	oFoldMenu.clSub2Links="font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub2links
	oFoldMenu.clSub3Links="font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub3links
	oFoldMenu.clSub4Links="font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub4links
	oFoldMenu.clSub5Links="font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub5links


	oFoldMenu.clFoldLinksHover="color: #FFFFFF; text-decoration:none; font-weight:normal; display: block; " //The style for the toplinks
	oFoldMenu.clSubLinksHover="color: #FFFFFF; font-family:Arial, Helvetica; font-size:13px; font-weight:normal; text-decoration:none; display: block; " //The style for the sublinks
	oFoldMenu.clSub2LinksHover="color: #FFFFFF; font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub2links
	oFoldMenu.clSub3LinksHover="color: #FFFFFF; font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub3links
	oFoldMenu.clSub4LinksHover="color: #FFFFFF; font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub4links
	oFoldMenu.clSub5LinksHover="color: #FFFFFF; font-family:Arial, Helvetica; font-size:13px; text-decoration:none; display: block; " //The style for the sub5links


	/*ARGUMENTS:
		type = what type of menu this item is (top,sub,sub2,sub3,sub4,sub5)
		text = the text for the item
		lnk = the link for the item (not needed if submenus)
		target = the target for the link (not needed if no target or no link)
		offimage = the default "arrow" image for this element (if you spesify no text, you can use the image only)
		onimage = the image to swap to when clicked (not needed if you don't want a swap image)
		fc = if you want the item to execute another javascript function aswell use this
		opn = if you want this particilar item to be opened on load set this to 1 (0,1)
	*/

	//Do not change this line!
	oFoldMenu.makeStyle();

