timegap=500
followspeed=5
followrate=40
suboffset_top=10;
suboffset_left=10;

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

// 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.2);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=2)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=2)" // Stop IE5.5 bug when using more than one filter
}

//effect = "fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=2)"

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

//Main menu IE
prop1_IE=[				// prop1 is an array of properties you can have as many property arrays as you need
"000000",				// Off Font Color
"",				// Off Back Color
"ffffff",				// On Font Color
"",				// On Back Color
"",				// Border Color
9,						// Font Size
"normal",				// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
2,						// Padding
"/images/arrow.gif",	// Sub Menu Image
0,						// 3D Border & Separator
"",				// 3D High Color
"",				// 3D Low Color
"",						// Referer item Font Color (leave this blank to disable)
"",						// Referer item Back 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)
]

//Main menu NS
prop1_NS=[				// prop1 is an array of properties you can have as many property arrays as you need
"000000",				// Off Font Color
"BFC2CF",				// Off Back Color
"ffffff",				// On Font Color
"BFC2CF",				// On Back Color
"999999",				// Border Color
10,						// Font Size
"normal",				// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
0,						// Padding
"/images/arrow.gif",	// Sub Menu Image
0,						// 3D Border & Separator
"66ffff",				// 3D High Color
"000099",				// 3D Low Color
"",						// Referer item Font Color (leave this blank to disable)
"",						// Referer item Back 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)
]

//Submenu IE
prop2_IE=[				// prop1 is an array of properties you can have as many property arrays as you need
"000000",				// Off Font Color
"ddddcc",				// Off Back Color
"ffffff",				// On Font Color
"999988",				// On Back Color
"000000",				// Border Color
9,						// Font Size
"normal",				// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
2,						// Padding
"/images/arrow.gif",	// Sub Menu Image
0,						// 3D Border & Separator
"66ffff",				// 3D High Color
"000099",				// 3D Low Color
"",						// Referer item Font Color (leave this blank to disable)
"",						// Referer item Back 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)
]

//Submenu NS
prop2_NS=[				// prop1 is an array of properties you can have as many property arrays as you need
"000000",				// Off Font Color
"ddddcc",				// Off Back Color
"ffffff",				// On Font Color
"999988",				// On Back Color
"000000",				// Border Color
10,						// Font Size
"normal",				// Font Style 
"bold",					// Font Weight
"Verdana,Tahoma,Helvetica",	// Font
2,						// Padding
"/images/arrow.gif",	// Sub Menu Image
0,						// 3D Border & Separator
"66ffff",				// 3D High Color
"000099",				// 3D Low Color
"",						// Referer item Font Color (leave this blank to disable)
"",						// Referer item Back 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)
]

var menusArr = new Array();
function menu(top,left,borderWidth,alignment,prop) {
	this.addItem = menuAddItem
	this.menuArr = [top,left,,borderWidth,"left",prop,1,alignment,,,1,,,,]
	this.items = new Array()
	this.index=menusArr.length+1;
	menusArr[menusArr.length]=this;
}

function subMenu(width,borderWidth,alignment) {
	this.menuArr = [,,width,borderWidth,"",prop2,,alignment,effect,,,,,,]
	this.addItem = menuAddItem
	this.items = new Array()
	this.index=menusArr.length+1;
	menusArr[menusArr.length]=this;
}

function menuItem(description,url,separator,subMenuWidth) {
	this.subMenuWidth = subMenuWidth;
	this.itemArr = [description,url,,,separator]
	this.addSubMenu = itemAddSubMenu
}

function menuAddItem(item) {
	this.items[this.items.length]=item;
}

function itemAddSubMenu(menu) {
	this.itemArr[2] = this.itemArr[1]
	this.itemArr[1] = "show-menu"+menu.index
	this.itemArr[3] = ""
	this.subMenu = menu
}

function initMenus() {
	for(i=1;i<=menusArr.length;i++) {
		menu = menusArr[i-1]
		for(k=0;k<menu.items.length;k++) {
			for(j=0;j<menu.items[k].itemArr.length;j++)
				menu.menuArr[menu.menuArr.length] = menu.items[k].itemArr[j]
		}
		document.write("menu"+i+"=["+menusArr[(i-1)].menuArr+"]")
		//eval("menu"+i+"=menusArr["+(i-1)+"].menuArr")
		//alert("menu"+i+"="+eval("menu"+i))
	}
}
