var MENU_ITEMS_XP = [
	[wrap_child('Hovedside', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'search.php', {'bw' : 150}
	],

    [wrap_child('Søketips', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'article.php?action=fullnews&id=7', {'bw' : 150}
	],

    [wrap_child('Stilling ledig', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'search.stilling.php', {'bw' : 150}
	],

	[wrap_child('Registrering', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'article.php?action=fullnews&id=9', {'bw' : 150}
	],

	[wrap_child('Annonsere', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'article.php?action=fullnews&id=12', {'bw' : 150}
	],

	[wrap_child('Logg inn', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'selfservice/', {'bw' : 150}
	],

	[wrap_child('Glemt passord', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'forgotten_password.php', {'bw' : 150}
	],

	[wrap_child('Hjelp', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'article.php?action=fullnews&id=11', {'bw' : 150}
	],

	[wrap_child('Kontakt', 'knapp1_16.gif', 'knapp2_16.gif', 'knapp_ny_16.gif'), 'article.php?action=fullnews&id=13', {'bw' : 150}
	]
]; 
var ii0 = new Image(); ii0.src = 'icons/arr.gif';
var ii1 = new Image(); ii1.src = 'icons/i.gif';
var ii2 = new Image(); ii2.src = 'icons/n7.gif';
var ii3 = new Image(); ii3.src = 'icons/m12.gif';
var ii4 = new Image(); ii4.src = 'icons/o.gif';
var ii5 = new Image(); ii5.src = 'icons/email.gif';
var ii6 = new Image(); ii6.src = 'icons/icq.gif';
var ii7 = new Image(); ii7.src = 'icons/yahoo.gif';
var ii8 = new Image(); ii8.src = 'icons/aol.gif';
var ii9 = new Image(); ii9.src = 'menu_files/pixel.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'menu_files/icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td><td><img src=menu_files/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% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'menu_files/icons/' + icon: 'menu_files/menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=menu_files/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'menu_files/icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=menu_files/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon1,icon2,icon3) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#008fd4><tr><td bgcolor=#008fd4><img height=16 src=', icon1 !=null ? 'menu_files/icons/' + icon1: 'menu_files/pixel.gif width=15', ' hspace=3></td><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% bgcolor=#008fd4><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#000000><tr><td><img height=16 src=', icon2 !=null ? 'menu_files/icons/' + icon2: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon1 !=null ? 'menu_files/icons/' + icon1: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&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><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a0 align="left">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="left">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="left">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}
