var MENU_ITEMS = [
	[wrap_firstroot('Home'), 'http://www.solalbert.info/index.php', {'sw':70}],
	[wrap_root('Aktuelles'), null, {'sw':100, 'bw':70},
			[wrap_child('News'), 'http://www.solalbert.info/news/index.php'],
			[wrap_child('Forum'), 'http://www.solalbert.info/punbb/index.php'],
	],
    [wrap_root('Photovoltaik'), null, {'sw':130, 'bw':170},
            [wrap_child('Anlageninfo'), 'http://www.solalbert.info/pv/anlageninfo/index.php'],
			[wrap_child('Anlagenvergleich'), 'http://www.solalbert.info/pv/vergleich/index.php'],
            [wrap_child('Anmelden'), 'http://www.solalbert.info/pv/addanlage/step1.php'],
            [wrap_child('Statistik'), 'http://www.solalbert.info/pv/statistik/index.php'],
            [wrap_child('Technik'), 'http://www.solalbert.info/pv/technik/index.php'],
            [wrap_child('Planung'), 'http://www.solalbert.info/pv/planung/index.php'],
            [wrap_child('Hersteller'), 'http://www.solalbert.info/links/index.php?kategorie=1&teil=links'],
			[wrap_child('Bachelorarbeit'), 'http://www.solalbert.info/pv/bachelorarbeit.php'],
			[wrap_child('Videos'), 'http://www.solalbert.info/pv/video.php']
	],
    [wrap_root('Service'), null, {'sw':90, 'bw':130},
			[wrap_child('Suche'), 'http://www.solalbert.info/suche/index.php'],
			[wrap_child('Downloads'), 'http://www.solalbert.info/downloads/index.php'],
			[wrap_child('Links'), 'http://www.solalbert.info/links/index.php'],
            [wrap_child('Partner werden'), 'http://www.solalbert.info/partner/partnerwerden.php'],
            [wrap_child('Wir über uns'), 'http://www.solalbert.info/aboutus/index.php']
	],
    [wrap_root('Sitemap'), 'http://www.solalbert.info/sitemap.php', {'sw':100}],
    [wrap_root('Login'), 'http://www.solalbert.info/pv/webadmin/index.php', {'sw':80}]
]; 

var ii0 = new Image(); ii0.src = 'http://www.solalbert.info/includes/mymenu/icons/arr.gif';
var ii1 = new Image(); ii1.src = 'http://www.solalbert.info/includes/mymenu/menu_files/pixel.gif';



function wrap_parent (text) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=http://www.solalbert.info/includes/mymenu/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100% class=a1>&nbsp; ', text, '</td><td><img src=http://www.solalbert.info/includes/mymenu/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100% class=a2>&nbsp; ', text, '</td><td><img src=http://www.solalbert.info/includes/mymenu/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join('')
	];
}

function wrap_child (text) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a1>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a2>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td class=nav>|</td><td width=100% class=a0 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td class=nav>|</td><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td class=nav>|</td><td width=100% class=a2 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>'
	];
}

function wrap_firstroot (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100% class=a0 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td width=100% class=a2 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table>'
	];
}
