var home_image = '/wp-content/themes/idealscience/images/navbar/navbar_home_off.jpg';
var home_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_home_on.gif';
var home_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_home_down.gif';

var product_image = '/wp-content/themes/idealscience/images/navbar/navbar_products_off.jpg';
var product_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_products_on.gif';
var product_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_products_down.gif';

var services_image = '/wp-content/themes/idealscience/images/navbar/navbar_services_off.jpg';
var services_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_services_on.gif';
var services_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_services_down.gif';

var about_image = '/wp-content/themes/idealscience/images/navbar/navbar_about_off.jpg';
var about_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_about_on.gif';
var about_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_about_down.gif';

var support_image = '/wp-content/themes/idealscience/images/navbar/navbar_support_off.jpg';
var support_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_support_on.gif';
var support_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_support_down.gif';

var store_image = '/wp-content/themes/idealscience/images/navbar/navbar_store_off.jpg';
var store_image_on = '/wp-content/themes/idealscience/images/navbar/navbar_store_on.gif';
var store_image_down = '/wp-content/themes/idealscience/images/navbar/navbar_store_down.gif';

var MENU_ITEMS0 = [
	[wrap_rootwithRolloverDownImage(home_image,home_image_on,home_image_down), 'http://www.idealscience.com/site/default.aspx', null,
	
		[wrap_child('Home'), 'http://www.idealscience.com/site/default.aspx', null],		
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Clients'), 'http://www.idealscience.com/site/about/clients.aspx', null],
		[wrap_child('Press Releases'), 'http://www.idealscience.com/site/press/default.aspx', null],		
		[wrap_child('Corporate Blog'), 'http://www.idealscienceblog.com', null],
		[wrap_child('Forums'), 'http://forums.idealscience.com/ibb/', null]
		
							
	],	
	[wrap_rootwithRolloverDownImage(product_image,product_image_on,product_image_down), 'http://www.idealscience.com/site/products/default.aspx', null,
				
		[wrap_child('Products Home'), 'http://www.idealscience.com/site/products/default.aspx', null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Ideal BB.NET'), 'http://www.idealscience.com/site/products/idealbb.net.aspx', null],
		[wrap_child('Ideal BB'), '/site/products/idealbb.aspx', null],
		[wrap_child('Ideal Login.NET'), 'http://www.idealscience.com/site/products/login.net.aspx', null]								
				
	],
	[wrap_rootwithRolloverDownImage(services_image,services_image_on,services_image_down), 'http://www.idealscience.com/site/services/default.aspx', null,		
	
		[wrap_child('Services Home'), 'http://www.idealscience.com/site/services/default.aspx', null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Technical Support'), 'http://www.idealscience.com/site/services/support.aspx', null],		
		[wrap_child('Purchase Support'), 'http://www.idealscience.com/site/store/catalog.aspx?catID=1', null],						
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Hosting Services'), 'http://www.idealscience.com/site/services/hosting.aspx', null],		
		[wrap_child('Moderation Services'), 'http://www.idealscience.com/site/services/moderation.aspx', null],		
		[wrap_child('Custom Development'), 'http://www.idealscience.com/site/services/custom.aspx', null],
		[wrap_child('Custom Graphics'), 'http://www.idealscience.com/site/services/customgraphix.aspx', null]		
		
	],
	[wrap_rootwithRolloverDownImage(about_image,about_image_on,about_image_down), 'http://www.idealscience.com/site/about/default.aspx', null,
	
		[wrap_child('About Home'), 'http://www.idealscience.com/site/about/default.aspx', null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Company Profile'), 'http://www.idealscience.com/site/about/default.aspx',null],
		[wrap_child('Contact Information'),'http://www.idealscience.com/site/about/contact.aspx',null],
		[wrap_child('Employment'),'http://www.idealscience.com/site/about/employment.aspx',null],
		[wrap_child('Partnership'),'http://www.idealscience.com/site/about/partners.aspx',null]
	],
	[wrap_rootwithRolloverDownImage(support_image,support_image_on,support_image_down), 'http://www.idealscience.com/site/support/default.aspx', null,
	
		[wrap_child('Support Home'), 'http://www.idealscience.com/site/support/default.aspx', null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],		
		[wrap_child('Online Support'), 'http://www.idealscience.com/site/support/online.aspx', null],
		[wrap_child('Report a bug'), 'http://support.idealscience.com/CustomerPortal/', null],
		[wrap_child('Customer Portal'), 'http://support.idealscience.com/CustomerPortal/', null],
		[wrap_child('Support forums'), 'http://forums.idealscience.com/ibb/', null],						
		[wrap_child('Contact support'), 'http://www.idealscience.com/site/about/contact.aspx', null],
		[wrap_child('Video tutorials'), 'http://www.idealscience.com/site/support/videotutorials.aspx', null],				
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Ideal BB.NET Manual'), 'http://www.idealscience.com/site/documentation/ibbnet/user_manual.htm', null],
		[wrap_child('Ideal BB Manual'), 'http://www.idealscience.com/site/documentation/ibb/idealbb.htm', null],
		[wrap_child('Product revision history'), 'http://www.idealscience.com/site/support/revisionhistory.aspx', null],
		[wrap_child('Product fixes'), 'http://www.idealscience.com/site/support/idealbb-fixes.aspx', null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Lost password'), 'http://www.idealscience.com/site/store/lostpassword.aspx', null],
		[wrap_child('Login difficulty'), 'http://www.idealscience.com/site/support/logindownloadproblems.aspx', null],
		[wrap_child('Download problems'), 'http://www.idealscience.com/site/support/logindownloadproblems.aspx', null]
							
	],
	[wrap_rootwithRolloverDownImage(store_image,store_image_on,store_image_down), 'http://www.idealscience.com/site/store/catalog.aspx', null,
		[wrap_child('Store Home'), 'http://www.idealscience.com/site/store/catalog.aspx',null],
		[wrap_spacer('<img src=/wp-content/themes/idealscience/images/drop.menu.div.gif height=2 width=100%>'), null, null],
		[wrap_child('Account history'), 'http://www.idealscience.com/site/store/account.aspx',null],
		[wrap_child('Customer Lockbox'), 'http://www.idealscience.com/site/store/licenses.aspx',null],
		[wrap_child('Downloads'), 'http://www.idealscience.com/site/store/downloads.aspx',null]
		
	]
]



function wrap_child (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=100% height=20><tr><td bgcolor=#9399A5 width=21><img src=/wp-content/themes/idealscience/images/spacer.gif width=21 height=20></td><td width=100%>&nbsp;&nbsp;' + text + '</td></tr></table>'
	return res;
}

function wrap_childWithIcon (text, icon) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=100% height=20><tr><td bgcolor=#9399A5 width=21><img src=/wp-content/themes/idealscience/images/spacer.gif width=21 height=20></td><td><img src=/wp-content/themes/idealscience/images/spacer.gif width=5></td><td><img src=' + icon + '></td><td width=100%>&nbsp;' + text + '</td></tr></table>'
	return res;
}

function wrap_spacer (text) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]='<table border=0 cellspacing=0 cellpadding=0 width=100% height=20><tr><td valign="middle" bgcolor=#9399A5 width=21><img src=/wp-content/themes/idealscience/images/spacer.gif width=21 height=20></td><td valign=middle width=100%>' + text + '</td></tr></table>'
	return res;
}


function wrap_rootwithimage(vimage) {		
	return '<td width=70 align=center><img height=26 src=' + vimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td>';		
}

function wrap_rootwithRolloverImage(vimage,oimage) {	
	var res=[];
	res[0] = '<td width=70 align=center><img height=26 src=' + vimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td>';	
	res[1] = '<td width=70 align=center><img height=26 src=' + oimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td>';	
	res[2] = '<td width=70 align=center><img height=26 src=' + oimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td>';	
	return res;
}
function wrap_rootwithRolloverDownImage(vimage,oimage,dimage) {	
	var res=[];
	res[0] = '<table cellpadding=0 cellspacing=0 border=0><td width=70 align=center><img height=26 src=' + vimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td></table>';	
	res[1] = '<table cellpadding=0 cellspacing=0 border=0><td width=70 align=center><img height=26 src=' + oimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td></table>';	
	res[2] = '<table cellpadding=0 cellspacing=0 border=0><td width=70 align=center><img height=26 src=' + dimage + '></td><td align=center><img width=2 height=26 src=/wp-content/themes/idealscience/images/navbar/navbar_divider.gif></td></table>';	
	return res;
}