
/* please register to get documentation */
var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#0A6FFA', '#043DD2', '#99CCFF'];


var MENU_ITEMS = [

	[wrap_parent('NEWS', 'd'), 'news.html', [0, null, 144],
	],
		
	[wrap_parent('COMPANY', 'd'), 'company.html', [144, null, 170],
		[wrap_child('About Us'), 'company.html'],
		[wrap_child('Customers'), 'customers.html'],
		[wrap_child('Contacts'), 'contacts.html'],
		[wrap_child('Careers'), 'career.html'],
		[wrap_child('How to reach us'), 'reach_us.html'],
	],
	
	[wrap_parent('SOLUTIONS', 'd'), 'solutions.html', [170,null,200],
		[wrap_child('Radio Interface Simulation'), 'radio_interface_simulation.html', null],
		[wrap_child('GSM Networks Simulation'), 'gsm_simulators.html', null],
		[wrap_child('UMTS Networks Simulation'), 'umts_simulators.html', null],
	/*	[wrap_child('WiMAX Network Simulation'), 'wimax.html', null], */
	/*	[wrap_child('LTE Sim'), 'wimax.html', null],*/
		[wrap_child('Special Features'), 'special_functions.html', null],
		[wrap_child('Monitoring Solutions'), 'monitoring.html', null],
	],
	
	[wrap_parent('PRODUCTS', 'd'), 'lsu.html', [200, null, 208],
/*		[wrap_child('Line Server Unit (LSU)'), 'lsu.html', null],*/
		[wrap_child('LSU Standard'), 'lsu_standard.html', null],
		[wrap_child('LSU Compact'), 'lsu_compact.html', null],
		[wrap_child('LSU Radio'), 'lsu_radio.html', null],
		[wrap_child('LSU Net'), 'lsu_net.html', null],
		[wrap_child('LSU IP Server'), 'lsu_server.html', null],
		[wrap_child('Micro LSU'), 'lsu_micro.html', null],
		[wrap_child('Architecture'), 'lsu_architecture.html', null],
				
	],


/*
	[wrap_parent('SOLUTIONS', 'd'), 'solutions.html', [144,null,144],
		[wrap_child('MsSim GSM'), 'mssim_gsm.html', null],
		[wrap_child('UeSim LTE'), 'uesim_lte.html', null],
		[wrap_child('Charging Verification'), 'lsu_ticket.html', null],
		[wrap_child('CESoP Monitoring'), 'cesop.html', null],
		[wrap_child('WiMAX'), 'wimax.html', null],
		[wrap_child('Monitoring'), 'monitoring.html', null],
		[wrap_child('Test GSM GPRS EDGE'), 'gsm_simulators.html', null],
		[wrap_child('Test UMTS'), 'umts_simulators.html', null],
		[wrap_child('Special Features'), 'special_functions.html', null],
		[wrap_child('ATM Tester'), 'atm-tester.html', null],
	],
	
	[wrap_parent('PRODUCTS', 'd'), 'products.html', [144, null, 144],
		[wrap_child('Line Server Unit (LSU)'), 'lsu.html', null],
		[wrap_child('SDR Cards'), 'sdr_cards.html', null],
		[wrap_child('Interface Cards'), 'boards.html', null],
				
	],

	
	[wrap_parent('CAREER', 'd'), 'career.html', [144, null, 144],
				
	],
	*/

];

function wrap_parent (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++) {
		if (text=='NEWS') 
			res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#0A6FFA" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="icons/arrows/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="white"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="icons/arrows/' + states[i] + '_' + pos + 'arrow.gif" width="0" height="0"></td></tr></table></td></tr></table>';
		else
			res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#0A6FFA" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="icons/arrows/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="white"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="icons/arrows/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12"></td></tr></table></td></tr></table>';
	}
	return res;
}
function wrap_child (text, icon) {
	var res = new Array;
	var tblWidth = "100%";
	for (var i=0; i<states.length; i++) {
			/* Solutions*/
		if ((text=='Radio Interface Simulation') ||
			(text=='GSM Networks Simulation') ||
			(text=='UMTS Networks Simulation') ||
			/*(text=='WiMAX Network Simulation') ||*/
			(text=='Special Features') ||
			(text=='Monitoring Solutions') )
	
				tblWidth = "200";
				
			/* Company*/
		else if	(	
			(text=='About Us') ||
			(text=='Customers') ||
			(text=='Contacts') ||
			(text=='How to reach us') ||
			(text=='Careers') )
	
				tblWidth = "170";

			/* Product*/
		else if	(	
			(text=='Line Server Unit (LSU)') ||
			(text=='LSU Standard') ||
			(text=='LSU Compact') ||
			(text=='Micro LSU') ||
			(text=='LSU IP Server') ||
			(text=='LSU Radio') ||
			(text=='LSU Net') ||
			(text=='Architecture') )
			
			tblWidth = "208";
			
		else
		
			tblWidth = "100%";
				
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0584FF" width="'+tblWidth+'"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="icons/arrows/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="white"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
	}
	return res;
}
