var states = ['mout', 'mover', 'mdown']
var MENU_ITEM  = new Array()
var MENU_ITEM1 = new Array()
var MENU_ITEMS_LEFT1 = new Array()
var MENU_ITEMS_LEFT = new Array()

 MENU_ITEM = 	[wrap_root('TEST', 1), '../services/index.html', {'tw':'content'}, 
		[wrap_child('For EAI software vendors'), null, ,
			[wrap_child('Audit your offer'),'../services/audits.html'],
			[wrap_child('Mediation and Moderation'),'../services/mediation.html']
		]
		];



MENU_ITEMS_LEFT = [
	[wrap_root('Services', 1), '../services/index.html', {'tw':'content'},
		[wrap_child('For EAI software vendors'), null, ,
			[wrap_child('Audit your offer'),'../services/audits.html'],
			[wrap_child('Mediation and Moderation'),'../services/mediation.html']
		],
		[wrap_child('For EAI implementors'), null, ,
			[wrap_child('Strategy Audit'),'../services/strategy.html'],
			[wrap_child('Coaching'),'../services/coaching.html'],
			[wrap_child('Mediation and Moderation'),'../services/mediation.html']
		],
		[empty_space(), null]
	],
	
	[wrap_root('Events'), '../events/index.html', {'tw':'content'},
		[wrap_child('ESA Contest 2006'), '../events/ESA2006.html'
		],
		[empty_space(), null]
	],
	
	[wrap_root('Papers'), '../papers/.html', {'tw':'content'},
		[empty_space(), null],
 	   [wrap_child('Editorials'), '../editorial/index.html', {'tw':'content'},
			[wrap_child('Mice'), '../editorial/mice.html'],
			[wrap_child('Formula 1'), '../editorial/formula1.html'],
   		[empty_space(), null]
		],
		[wrap_child('SAP Netweaver'), null, ,
			[wrap_PDF('Netweaver FAQ')],
			[wrap_PDF('WebAS I')],
			[wrap_PDF('WebAS II')],
			[wrap_PDF('Clash of the Titans')],
   		[empty_space(), null]
		],
		[wrap_child('Enterpise Service Architecture'), 'content.html', {'tw':'content'}, 
			[wrap_PDF('Sidestepping the Labyrinth I'),'../papers/Labyrinth1.pdf'],
			[wrap_PDF('Sidestepping the Labyrinth II'),'../papers/Labyrinth2.pdf'],
   		[empty_space(), null]
		],
		[wrap_child('SAP Enterprise Portal'), null,,
			[wrap_PDF('Why ABAP is Better than Java'),'../papers/Portal.pdf'],
   		[empty_space(), null]
		],
		[wrap_child('SAP Netweaver ABAP'), null, ,
			[wrap_PDF('Why ABAP is Better than Java'),'../papers/Portal.pdf'],
			[wrap_PDF('WebAS I'),'../papers/WebAS_Part_1.pdf'],
			[wrap_PDF('WebAS II'),'../papers/WebAS_Part_2.pdf'],
			[wrap_PDF('Clash of the Titans'),'../papers/ClashOfTheTitans.pdf'],
   		[empty_space(), null]
		],
		[wrap_child('EDI, IDocs, ALE'), null, ,
			[wrap_PDF('R/3 Guide to EDI, IDocs ...')],
			[wrap_PDF('Connecting R/3 to the World')],
			[wrap_PDF('Coming soon: Mini ESB')],
   		[empty_space(), null]
		 ],
		[wrap_child('Presentations'), null, ,
			[wrap_PDF('Chicago Palmer July 2005 (PDF)'),'../papers/Palmer2005/sapForum_Palmer_final.pdf'],
   		[empty_space(), null]
		],
		[empty_space(), null]
	],

	[wrap_root('Cool'), '../home/index.html', {'tw':'content'}		

	],
	
	[wrap_root('Partner'), '../partner/index.html', {'tw':'content'}

	],
	
	
	[wrap_root('Contact'), null, {},
		[empty_space(), null],
		[wrap_child('E-mail'), 'http://www.softcomplex.com/support.html'],
		[wrap_child('ICQ: 31599891')],
		[wrap_child('Y! ID: softcomplex')],
		[wrap_child('AIM ID: softcomplex')],
		[empty_space(), null]
	],
	
	[wrap_root('Home', 0), '../home/index.html', {'tw':'content'}		
		]

]

function wrap_child (text) {
	return '&nbsp;&nbsp;' + text + '&nbsp;&nbsp;';
}

function wrap_contact (text) {
	return '&nbsp;&nbsp;' + text + '&nbsp;&nbsp;';
}

function wrap_PDF (text) {
	return '&nbsp;&nbsp;' + text + '&nbsp;&nbsp;';
}

function hline () {
	return '<hr/>';
}

function empty_space () {
	return '&nbsp;';
}

function wrap_root (text, cc) {
	var c = cc
	var res = [];
	for (var i in states)
		res[i] = '<table cellpadding=0 cellspacing=0 border=0 width=100%><tr>' + (c ? '' : '<td><font color=white>|</font></td>' ) + '<td valign=middle align=center class=m0' + states[i] + 'i width=100% height=18>&nbsp;&nbsp;' + text + '&nbsp;&nbsp;</td></tr></table>'
	return res;
}
