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)
}

////////////////////////////////////
// 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.2);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
}


timegap=150			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=8;	// Sub menu offset Top position 
suboffset_left=2;	// 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.
"666666",			// Mouse Off Font Color
"F9F9F9",			// Mouse Off Background Color
"000000",			// Mouse On Font Color
"EEEEEE",			// Mouse On Background Color
"BDBDBD",			// Menu Border Color 
10,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"Verdana",			// Font Name
4,					// Menu Item Padding
"tri.gif width='9' height='9'",	// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
,					// Current Page Item Font Color (leave this blank to disable)
,					// Current Page 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)
"BDBDBD",			// Menu Item Separator Color
]





/*
addmenu(menu=[		// This is the array that contains your menu properties and details
"aboutMenu",		// Menu Name - This is needed in order for the menu to be called
190,				// Menu Top - The Top position of the menu in pixels
197,				// Menu Left - The Left position of the menu in pixels
150,				// Menu Width - Menus width in pixels
1,					// Menu Border Width 
,					// 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
0,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// 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=on/0=off)
, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or click elsewhere on the 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)
,					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use
,"Home","http://www.dynamicdrive.com",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"News&nbsp;sites&nbsp;&nbsp;","show-menu=news",,"",1
,"Webmaster&nbsp;&nbsp;","show-menu=webmaster",,"",1
,"Downloads&nbsp;&nbsp;","show-menu=downloads",,"",1
,"Search&nbsp;&nbsp;","show-menu=search",,"",1
,"Other&nbsp;&nbsp;","show-menu=other",,"",1
])*/


// calculate menu position
if (document.all) {
  var screenWidth = document.body.offsetWidth;
} else if (document.layers) {
  var screenWidth = window.innerWidth;
}

var menu_start = (((screenWidth-20) / 2) - 382) + 85;

addmenu(menu=["products",
111,menu_start,120,1,"",style1,0,"left",,,0,,,,,,,,,,,
"Forums","",,"Forums",1
])

addmenu(menu=["solutions",
111,menu_start+91,180,1,"",style1,0,"left",,,0,,,,,,,,,,,
"Media Integration","/solutions/",,"Media Integration",1,
"E-learning/E-training","/solutions/e-training.html",,"E-learning/E-training",1,
"Sales and Marketing","/solutions/sales.html",,"Sales and Marketing",1,
"E-documentation","/solutions/e-documentation.html",,"E-documentation",1,
"Simulation & What-if analysis","/solutions/simulation.html",,"Simulation & What-if analysis",1
])

addmenu(menu=["services",
111,menu_start+191,170,1,"",style1,0,"left",,,0,,,,,,,,,,,
"IVRI Platform","/services/",,"IVRI Platform",1,
"Consulting","/services/consulting.html",,"Consulting",1,
"Technology","/services/technology.html",,"Technology",1
])

addmenu(menu=["support",
111,menu_start+272,170,1,"",style1,0,"left",,,0,,,,,,,,,,,
"Forums","/support/forums.php",,"Forums",1
])

addmenu(menu=["about",
//111,menu_start+449,230,1,"",style1,0,"left",,,0,,,,,,,,,,,
111,menu_start+272,170,1,"",style1,0,"left",,,0,,,,,,,,,,,
"Why IVRI?","/about/",,"Why IVRI?",1,
"Overview","/about/overview.html",,"Overview",1,
//"Team IVRI","/about/team.html",,"Team IVRI",1,
//"Research papers from IVRI members","/about/research.html",,"Research papers from IVRI members",1,
"News and Events","/about/news.html",,"News and Events",1
//"Investor Relations","/about/investor.html",,"Investor Relations",1
])

dumpmenus()