// JavaScript Document
// the first number is the distance from the left, increase by 120 each time
// the last number is the menu height and it must be set correctly.
// menu height = 21*(number of items) + 1 + 5 
var menus = [
	new ypSlideOutMenu("menu0", "down", 105, 136, 130, 600),
	new ypSlideOutMenu("menu1", "down", 205, 136, 130, 166),
	new ypSlideOutMenu("menu2", "down", 305, 136, 130, 166),
	new ypSlideOutMenu("menu3", "down", 405, 136, 130, 166)
]
if (document.getElementById) {
	for (var i = 0; i < menus.length; i++) {
		menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='mnavlinka';");
		menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='mnavlink';");
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
function setArticleNav() {
	document.getElementById('articleNav1').style.display = 'block';
	document.getElementById('articleNav2').style.display = 'none';
}

function do_menu(data)
{
document.write('<div id="'+data[2]+'Container"><div id="'+data[2]+'Content"><table width="101" border="0" cellspacing="0" cellpadding="0">');

	for (i=0; i<data[0].length; i++)
	{
if (data[1] == 0)
{
	var url = '/articles/cat_'+data[0][i][1]+'.html';
}
else
{
	var url = 'dunno';
}
document.write('<tr><td class="mmenuside"><img src="/img/spacer.gif" alt="" width="1" height="1" /></td><td class="mmenucell"><a href="' + url + '" class="mmenulink">');
if (data[0][i][2]!='' && data[0][i][2]!=null)
{
document.write('<img src="' + data[0][i][2] + '" width="9" height="9" border="0" class="navicons" />');
}

document.write(data[0][i][0] + '</a></td><td class="mmenuside"><img src="/img/spacer.gif" alt="" width="1" height="1" /></td></tr>');
	}

document.write('<tr> <td colspan="3" style="height:1px; background-color:#595959;"></td></tr></table></div></div>');
}
