// Milonic DHTML Menu version 3.2

// Please note that major changes to this file have been made and is not compatible with earlier versions..

//

// You no longer need to number your menus as in previous versions. 

// The new menu structure allows you to name the menu instead. This means that you to remove menus and not break the system.

// The structure should also be much easier to modify, add & remove menus and menu items.

// 

// If you are having difficulty with the menu please read the FAQ at http://www.milonic.co.uk/menu/faq.php before contacting us.

//

// Please note that the above text CAN be erased if you wish.





// Milonic DHTML Menu version 3.2.0

// The following line is critical for menu operation, and must appear only once.

//menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}

//Please leave the above line intact. The above also needs to be enabled.







////////////////////////////////////

// Editable properties START here //

////////////////////////////////////



timegap=500					// The time delay for menus to remain visible on mouse off

followspeed=7				// Follow Scrolling speed (higher number makes the scrolling smoother but slower)

followrate=30				// Follow Scrolling Rate (use a minimum of 40 or you may experience problems)

suboffset_top=6;			// Sub menu offset Top position 

suboffset_left=12;			// Sub menu offset Left position



effect = "fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)" // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters



style1=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.

"FFFFFF",					// Mouse Off Font Color

"336699",					// Mouse Off Background Color

"FFFFFF",					// Mouse On Font Color

"6699CC",					// Mouse On Background Color

"336699",					// Menu Border Color

10,							// Font Size

"normal",					// Font Style 

"normal",					// Font Weight

"Verdana,Tahoma,Helvetica",	// Font Name

5,							// Menu Item Padding

"arrow.gif",			// Sub Menu Image (Leave this blank if not needed)

,							// 3D Border & Separator bar

"66ffff",					// 3D High Color

"000099",					// 3D Low Color

"",					// Referer Item Font Color (leave this blank to disable)

"",					// Referer Item Background Color (leave this blank to disable)

"",				// Top Bar image (Leave this blank to disable)

"ffffff",					// Menu Header Font Color (Leave blank if headers are not needed)

"000099",					// Menu Header Background Color (Leave blank if headers are not needed)

]

style2=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.

"",					// Mouse Off Font Color

"",					// Mouse Off Background Color

"",					// Mouse On Font Color

"",					// Mouse On Background Color

"",					// Menu Border Color

12,							// Font Size

"normal",					// Font Style 

"normal",					// Font Weight

"Verdana,Tahoma,Helvetica",	// Font Name

,							// Menu Item Padding

"arrow.gif",			// Sub Menu Image (Leave this blank if not needed)

,							// 3D Border & Separator bar

"",					// 3D High Color

"",					// 3D Low Color

"00ff33",					// Referer Item Font Color (leave this blank to disable)

"",					// Referer Item Background Color (leave this blank to disable)

"",				// Top Bar image (Leave this blank to disable)

"",					// Menu Header Font Color (Leave blank if headers are not needed)

"",					// Menu Header Background Color (Leave blank if headers are not needed)

]



formprops = new Array()

formprops=style1.concat()

formprops[0]=formprops[2]

formprops[3]=formprops[1]









addmenu(menu=[		// This is the array that contains your menu properties and details

"mainmenu",			// Menu Name - This is needed in order for the menu to be called

,				// Menu Top - The Top position of the menu in pixels

,				// Menu Left - The Left position of the menu in pixels

,					// Menu Width - Menus width in pixels

0,					// Menu Border Width 

,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"

style2,				// Properties Array - this is set higher up, as above

1,					// Always Visible - allows the menu item to be visible at all time

"center",					// Alignment - sets the menu elements text alignment, values valid here are: left, right or center

,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info

,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times)

1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style

,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page

,					// Position of TOP sub image left:center:right

,					// Type of menu use "form" or blank

,					// Right To Left - Used in Hebrew for example.

,					// Open the Menus OnClick - leave blank for OnMouseover

,					// Menu Header Text (only works on Vertical menus)

,					// Reserved for future use

,					// Reserved for future use

,					// Reserved for future use

,"<img src='images/1px_clear.gif' border='0' width='57' height='38' name='articles'>","show-menu=articles",,,0

,"<img src='images/1px_clear.gif' border='0' width='92' height='38' name='clients'>","show-menu=clients",,,0

,"<img src='images/1px_clear.gif' border='0' width='77' height='38' name='bankruptcy'>","show-menu=bankruptcy",,,0

])







//onfunction=playsound();



function showtopandleft()

{

	mn=getMenuByName("mainmenu");

	menu=eval("menu"+mn);

	alert(menu[1] + " - " + menu[2]);

}


addmenu(menu=["articles",,,125,1,"",style1,,"left",effect,,,,,,,,,,,,

,"<img src='images/arrows.gif' border='0'>Articles&nbsp;","articles.php",,,1

,"<img src='images/arrows.gif' border='0'>Newsletter&nbsp;","newsletter.php",,,1

])


addmenu(menu=["bankruptcy",,,150,1,"",style1,,"left",effect,,,,,,,,,,,,

,"<img src='images/arrows.gif' border='0'>Bankruptcy FAQs&nbsp;","bankruptcy_faqs.php",,,1

,"<img src='images/arrows.gif' border='0'>Bankruptcy Primer&nbsp;","bankruptcy.php",,,1

])


addmenu(menu=["clients",,,150,1,"",style1,,"left",effect,,,,,,,,,,,,

,"<img src='images/arrows.gif' border='0'>Clients/Cases&nbsp;","clients.php",,,1

,"<img src='images/arrows.gif' border='0'>Client Documents&nbsp;","client_files.php",,,1

])





function SetOffset(otop,oleft)

{

	mn=getMenuByName("mainmenu");

	menu=eval("menu"+mn);

	

	menu[1] = "offset="+otop

	menu[2] = "offset="+oleft

	

	if(!otop)menu[1]="";

	if(!oleft)menu[2]="";

	

	

	if(menu[5].indexOf("left")>=0||menu[5].indexOf("center")>=0||menu[5].indexOf("right")>=0)

	{

	}

	else

	{

		if(menu[2].indexOf("offset")>=0)

		{

			alert("Please Note.\n\nSetting an Offset for LEFT without setting a Vertical position first \nwill result in the menu not moving to your specified vertical offset position\n\nPlease select either Top, Middle or Bottom to move the menu '"+otop+"' offset")

		}

	} 





	if(menu[5].indexOf("top")>=0||menu[5].indexOf("middle")>=0||menu[5].indexOf("bottom")>=0)

	{

	}

	else

	{

		if(menu[1].indexOf("offset")>=0)

		{

			alert("Please Note.\n\nSetting an Offset for Top without setting a Vertical position first \nwill result in the menu not moving to your specified vertical offset position\n\nPlease select either Top, Middle or Bottom to move the menu '"+otop+"' offset")

		}

	} 



	

	

	document.offsets.oTop.value = otop

	document.offsets.oLeft.value = oleft

	//alert(menu[1] + " - " + menu[2])

	setpos();

	

	

	closeallmenus();

	return false

}





function SetAbsolute(otop,oleft)

{

	mn=getMenuByName("mainmenu");

	menu=eval("menu"+mn);

	

menu[5]="";	

	

	if(otop)menu[1]=otop

	if(oleft)menu[2]=oleft

	

	mnobj=gmobj("menu"+mn)

	alert(mnobj  + " - " + mn)

	spos(mnobj,otop,oleft,null,null);

	closeallmenus();

	return false

}



addmenu(menu=["offsets",

"offset=30","offset=30",160,1,,formprops,,"center",effect,,,1,1,"form",,,,,,,

,"<form name=offsets onSubmit=\"return SetOffset(oTop.value,oLeft.value)\"><table border=0><tr><td align=center colspan=2>Offsets</td></tr><tr><td>Top</td><td><input size=5 name=oTop></td></tr><tr><td>Left</td><td><input size=5 name=oLeft ></td></tr><tr><td height=40 colspan=2 valign=bottom align=center><input type=\"submit\" value=\"Set Offsets\"></td></tr></table></form>","#",,,0

])



addmenu(menu=["absolutepos",

,,160,1,,formprops,,"center",effect,,,1,1,"form",,,,,,,

,"<form name=absolutes onSubmit=\"return SetAbsolute(aTop.value,aLeft.value)\"><table border=0><tr><td align=center colspan=2>Positioning</td></tr><tr><td>Top</td><td><input size=5 name=aTop></td></tr><tr><td>Left</td><td><input size=5 name=aLeft ></td></tr><tr><td height=40 colspan=2 valign=bottom align=center><input type=\"submit\" value=\"Set Position\"></td></tr></table></form>","#",,,0

])



function Set_TimeGap(TG)

{

	timegap=TG

	document.tdform.timedelay.value = timegap

	alert("The timegap value has now been set to " + timegap + "\n\nPlease ensure that 'Keep Menus Alive' is turned OFF to see the new value in action")

	closeallmenus();

	return false

}







addmenu(menu=["timedelay",

,,160,1,,formprops,,"center",effect,,,1,1,"form",,,,,,,

,"<form name=tdform onSubmit=\"return Set_TimeGap(timedelay.value)\"><table border=0><tr><td align=center>Time Delay</td></tr><tr><td align=center><input size=5 name=timedelay value="+timegap+"></td></tr><tr><td height=40 colspan=2 valign=bottom align=center><input type=\"submit\" value=\"Set Time Delay\"></td></tr></table></form>","#",,"Allows you to change the time delay when moving off a menu",0

])







//////////////////////////////////

// Editable properties END here //

//////////////////////////////////

dumpmenus() // This must be the last line in this file



