/* --- menu items --- */
var MENU_ITEMS = [
	['Publications', null, {'sw' : 105, 'bw' : 140},
		[sub_level('&nbsp;Books'), 'publications_books.html',],
		[sub_level('&nbsp;Articles'), 'publications_articles.html'],
		[sub_level_end('&nbsp;Distance&nbsp;Learning'), 'publications_learning.html']
	],
	['Speaking', 'speaking.html', {'sw' : 100}],
	['Bio', 'bio.html', {'sw' : 50}],
	['Psychotherapy', 'psychotherapy.html', {'sw' : 130}],
	['Meditations', null, {'sw' : 110, 'bw' : 120},
		[sub_level('&nbsp;Instructions',1), null, null,
			[subsub_level('&nbsp;Mindfulness'), 'meditations_mindfulness.html'],
			[subsub_level('&nbsp;Atención Plena'), 'meditations_mindfulness_sp.html'],
			[subsub_level('&nbsp;Self-Compassion'), 'meditations_selfcompassion.html'],
			[subsub_level_end('&nbsp;Auto-Compasión'), 'meditations_selfcompassion_sp.html']
		],
		[sub_level_end('&nbsp;Downloads'), 'meditations_downloads.html']
	],
	['Resources', null, {'sw' : 110, 'bw' : 120},
		[sub_level('&nbsp;Bibliography',1), null, null,
			[subsub_level('&nbsp;Books'), 'resources_biblibooks.html'],
			[subsub_level_end('&nbsp;Articles'), 'resources_bibliarticles.html']
		],
		[sub_level('&nbsp;Links',1), null, null,
			[subsub_level('&nbsp;General'), 'resources_linksgeneral.html'],
			[subsub_level('&nbsp;Teachers'), 'resources_linksteachers.html'],
			[subsub_level_end('&nbsp;Centers'), 'resources_linkscenters.html']
		],
		[sub_level_end('&nbsp;Handouts'), 'resources_handouts.html']
	],
	['e-Networks', null, {'sw' : 110, 'bw' : 100},
		[sub_level('&nbsp;Blog'), 'http://mindfulselfcompassion.wordpress.com/" onclick="window.open(this.href); return false;"'],
		[sub_level_end('&nbsp;Facebook'), 'http://www.facebook.com/pages/Christopher-K-Germer-PhD-The-Mindful-Path-to-Self-Compassion/141943624277?ref=ts" onclick="window.open(this.href); return false;"']
	]
];

function sub_level (text,icon) {
	return [['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#e4d391"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr><tr><td width="1" height="1" bgcolor="#f5f5d9"></td><td width="1" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ebdfaf"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr><tr><td width="100%" height="1" bgcolor="#f5f5d9"></td><td width="1" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#e4d391"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr><tr><td width="100%" height="1" bgcolor="#f5f5d9"></td><td width="1" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join('')];
}

function sub_level_end (text,icon) {
	return [['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#e4d391"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ebdfaf"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#e4d391"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td><td><img src="menu_files/', (icon?'arrow_b':'pixel'), '.gif" width="7" height="7" border="0"></td></tr></table>'].join('')];
}

function subsub_level (text,icon) {
	return [['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f0e7c3"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr><tr><td width="1" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f0d9"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr><tr><td width="100%" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f0e7c3"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr><tr><td width="100%" height="1" bgcolor="#f5f5d9"></td></tr></table>'].join('')];
}

function subsub_level_end (text,icon) {
	return [['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f0e7c3"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f6f0d9"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr></table>'].join(''),
		['<table cellpadding="0" cellspacing="0" border="0" bgcolor="#f0e7c3"><tr><td align="left" width="140" height="25"><span style="font-size: 12px; font-weight: bold; color: #303c4e">',text,'</span></td></tr></table>'].join('')];
}


