var MENU_ITEMS_XP = [
	[wrap_root('Home'), 'http://ccgovernment.carr.org/ccg/election/default.asp',{'sw' : 80},
			[wrap_child('Home'),'http://ccgovernment.carr.org/ccg/election/default.asp',{'sw':100}],
			[wrap_child('About the Board'),'http://ccgovernment.carr.org/ccg/election/about.asp',{'sw':100}],
	],
	[wrap_root('Voter Registration'), 'http://ccgovernment.carr.org/ccg/election/default.asp',{'sw' : 160},
			[wrap_child('Are You Registered'),'http://www.elections.state.md.us/voting/where.html',{'tw':'_blank','sw':100}],
			[wrap_child('How To Register'),'http://www.elections.state.md.us/voter_registration/index.html',{'tw':'_blank','sw':100}],
			[wrap_child('Absentee Information'),'http://ccgovernment.carr.org/ccg/election/absent.asp',{'sw':100}],
			[wrap_child('Voting District Map'),'http://ccgovernment.carr.org/ccg/election/voter_map.asp',{'sw':100}],
			[wrap_child('Text Listing of Legislative <br>&nbsp;&nbsp;Districts and Precints'),'http://ccgovernment.carr.org/ccg/election/districts.asp',{'sw':100}],
			[wrap_child('Text Listing of Commissioner <br>&nbsp;&nbsp;Districts and Precints'),'http://ccgovernment.carr.org/ccg/election/comm-districts.asp',{'sw':100}],
			[wrap_child('Polling Places'),'http://ccgovernment.carr.org/ccg/election/polling.asp',{'sw':100}],
			[wrap_child('Elected Officials'),'http://ccgovernment.carr.org/ccg/election/officials.asp',{'sw':100}],
			[wrap_child('FAQs'),'http://ccgovernment.carr.org/ccg/election/faq.asp',{'sw':100}],
			[wrap_child('Facts & Figures'),'http://ccgovernment.carr.org/ccg/election/facts.asp',{'sw':100}],
			[wrap_child('Provisional Voting'),'http://elections.state.md.us/voting/provisional_voting.html',{'tw':'_blank','sw':100}],
			
	],
	[wrap_root('Candidate Information'), 'http://ccgovernment.carr.org/ccg/election/candinfo.asp',{'sw' : 160},
			[wrap_child('Filing For Office'),'http://ccgovernment.carr.org/ccg/election/candinfo.asp',{'sw':100}],
	],
	[wrap_root('Products'), 'http://ccgovernment.carr.org/ccg/election/products.asp',{'sw' : 110}],
	[wrap_root('Links'), 'http://ccgovernment.carr.org/ccg/election/links.asp',{'sw' : 80}],
	[wrap_root('Election Results'), 'http://ccgovernment.carr.org/ccg/election/results.asp',{'sw' : 160},
			[wrap_child('All Election Results'),'http://ccgovernment.carr.org/ccg/election/results.asp',{'sw':100}],
			[wrap_child('2008 Official General<br>&nbsp;&nbsp;Election Results'),'http://ccgovernment.carr.org/ccg/election/docs/2008-g.pdf',{'sw':100}],
			[wrap_child('Statement of Votes<br>&nbsp;&nbsp;Cast 2008 Offical<br>&nbsp;&nbsp;General Election Results'),'http://ccgovernment.carr.org/ccg/election/docs/2008-g-sovc.pdf',{'sw':100}],
			[wrap_child('2008 Official Primary<br>&nbsp;&nbsp;Election Results Summary'),'http://ccgovernment.carr.org/ccg/election/docs/esr08p-official.pdf',{'sw':100}],
			[wrap_child('2008 Official Primary<br>&nbsp;&nbsp;Election Results by<br>&nbsp;&nbsp;Precinct'),'http://ccgovernment.carr.org/ccg/election/docs/08p-official-results.pdf',{'sw':100}],
			[wrap_child('2006 General Election'),'http://ccgovernment.carr.org/ccg/election/docs/2006-g.pdf',{'sw':100}],
			[wrap_child('2006 General Election by<br>&nbsp;&nbsp;Precinct'),'http://ccgovernment.carr.org/ccg/election/docs/2006-gp.pdf',{'sw':100}],
			[wrap_child('2006 Primary Election'),'http://ccgovernment.carr.org/ccg/election/docs/2006-pp.pdf',{'sw':100}],
			[wrap_child('2004 General Election'),'http://ccgovernment.carr.org/ccg/election/docs/2004-g.pdf',{'sw':100}],
			[wrap_child('2004 Primary Election'),'http://ccgovernment.carr.org/ccg/election/docs/2004-p.pdf',{'sw':100}],
			[wrap_child('2002 General Election'),'http://ccgovernment.carr.org/ccg/election/docs/2002-g.pdf',{'sw':100}],
			[wrap_child('2002 Primary Election'),'http://ccgovernment.carr.org/ccg/election/docs/2002-p.pdf',{'sw':100}],
			[wrap_child('2000 General Election'),'http://ccgovernment.carr.org/ccg/election/docs/2000-g.pdf',{'sw':100}],
			[wrap_child('2000 Primary Election'),'http://ccgovernment.carr.org/ccg/election/docs/2000-p.pdf',{'sw':100}],			
			[wrap_child('Maryland Election Results'),'http://elections.state.md.us/elections/index.html',{'tw':'_blank','sw':100}],
			
			
			
	],
	]; 
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=#FFFFFF><img height=16 src=', icon !=null ? '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=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=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FFFFFF><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=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=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FFFFFF><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#0000FE><img height=16 src=', icon !=null ? 'icons/' + icon: '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=a2>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#0000FE><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#0000FE><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a3>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#0000FE><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#0000FE><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a3>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#0000FE><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a0 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#0000FE><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#0000FE><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}