﻿/*

 DHTML Menu version 3.3.19
 Written by Andy Woolley
 Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
 Please vist http://www.milonic.co.uk/menu or e-mail menu3@milonic.com
 You may use this menu on your web site free of charge as long as you place prominent links to http://www.milonic.co.uk/menu and
 your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page
 Comercial support contracts are available on request if you cannot comply with the above rules.
 This script featured on Dynamic Drive (http://www.dynamicdrive.com)
 */

/*
 Modifications and enhancements by Bruce Valeriani, July 2009
*/

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files

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 if it not already enabled unless this file is part of a multi pack.

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

// Editable properties START here //

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

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
/*
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.3);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
}
*/

effect=""  // the above shadow effect only works in IE - this disables it completely  BV 2009

// this script is designed for use with absolute screen values
// for use with TABLES, need to convert to relative screen values

isFirefox = ( navigator.appName.indexOf( "Netscape" ) >=0 );  // NOTE  the "safari" browser returns true for the "netscape" check
isIE = ( navigator.appName.indexOf( "Microsoft" ) >=0 );
tableWidthInPixels = 750;				// we need the total table width in pixels
absScreenWidth = tableWidthInPixels;	// presume the window matches the table-size to start off
if ( isFirefox )		// get the absolute width from the current window - FIREFOX
{
	absScreenWidth = window.innerWidth;
}
else if ( isIE )		// get the absolute width from the current window - IE has to be different *rolleyes*
{
	absScreenWidth = document.body.offsetWidth;
}

/* else 
	// we've already set the screenwidth to the tablewidth above, which has the effect of  
	// presuming that the relative and absolute positions are the same, and the horz offset cancels out
*/

relHorOffset = 0;					// assume no horizontal offset at first
relVerOffset = 0;					// assume no vertical offset either

// if the current window is larger than the table, then we need a relative offset
if ( absScreenWidth > tableWidthInPixels )
{
	screenDiff = absScreenWidth - tableWidthInPixels;
	if ( ( screenDiff % 2 ) > 0 )
 		screenDiff += 1;   // round up if needed (to get an even division)

	// relative offset is the half the difference between the table width and the current window width 

	relHorOffset += ( screenDiff / 2 );
	if ( ( ( absScreenWidth - tableWidthInPixels ) % 2 ) > 0 )
	{
 		relHorOffset += 1;   // round up if needed
	}
}

// at some point - we may need to modify the height the same way as we did for the width
// if so, we can place that here, but for now, just set it to the value we want it to be...

relVerOffset = 171;

/* if ( isFirefox )					// get the absolute width from the current window - FIREFOX
{
	relVerOffset = SOME CALCULATION RELATED TO FIREFOX;
}
else if ( isIE )					// get the absolute width from the current window - IE has to be different *rolleyes*
{
	relVerOffset = SOME CALCULATION RELATED TO IE;
}  */

function openwin(url)
{
	nwin=window.open(url, "nwin",config="scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes,");
	nwin.focus();
}


timegap=500;											// The time delay for menus to remain visible
followspeed=5;										// Follow Scrolling speed
followrate=40;										// Follow Scrolling Rate
suboffset_top=0; 									// Sub menu offset Top position 
suboffset_left=10;									// Sub menu offset Left position

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.
"e4e7e6",											// Mouse Off Font Color
"101065",											// Mouse Off Background Color
"e4e7e6",											// Mouse On Font Color
"101065",											// Mouse On Background Color
"101065",											// Menu Border Color 
12,													// Font Size in pixels
"normal",											// Font Style (italic or normal)
"bold",												// Font Weight (bold or normal)
"Arial,Helvetic,Geneva,Swiss,SunSans-Regular",		// Font Name
5,													// Menu Item Padding
"/extras/arrow.gif",									// Sub Menu Image (Leave this blank if not needed)
,													// 3D Border & Separator bar
"101065",											// 3D High Color
"101065",											// 3D Low Color
"e4e7e6",											// Current Page Item Font Color (leave this blank to disable)
"101065",											// Current Page Item Background Color (leave this blank to disable)
,													// Top Bar image (Leave this blank to disable)
"101065",											// Menu Header Font Color (Leave blank if headers are not needed)
"101065",											// Menu Header Background Color (Leave blank if headers are not needed)
]

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
relVerOffset,		// Menu Top - The Top position of the menu in pixels  NOTE: DEFINED ABOVE
relHorOffset ,	    // Menu Left - The Left position of the menu in pixels	  NOTE: DEFINED ABOVE
125,				// Menu Width - Menus width in pixels
0,					// Menu Border Width
"center",			// Screen Position - here you can use "center;left;right;middle;top;bottom or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center",			// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,		    	// 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=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps menu visible until the user moves over another menu or clicks elsewhere on page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"Home","index.html",,,1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Services","services.html",,,1
,"Testimonials","testimonials.html",,"",1
,"Links","links.html",,"",1
,"Meet Michele","bio.html",,"",1
,"Contact","contact.html",,"",1
])

dumpmenus()