JavaScript Vertical Rolling Menu

Hi there, I got a problem: I cant make vertical rollign menu in javascript - all what I did is appearing menu but it dont moves up and down please tell me how to do it so it moves. The live script is under this address: http://www.iguana999.nazwa.pl/witek/demo/20/index.php?cPath=4
and source more or less looks like that:


<style type="text/css">
 <!--
td.boxText ul{
list-style-type: none;
padding:0;
margin:0;
margin-left:10px;
}
-->
 </style>

<script language="JavaScript">

var ids=new Array();

function switchid(id){		
	hideallids();
	showul(id-1,"block");
	return false;
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++)
		showul(i,"none");
}

function showul(id,value) {
	//safe function to show or hide an element with a specified id
	  for (var j=0;j<ids2[id];j++)
		showul2((id+1)+'_'+j,value);
	return false;
}

function showul2(id,value)
{
	if (document.getElementById) // DOM3 = IE5, NS6
		document.getElementById(id).style.display = value;
        else 
	if (document.all)
		document.all[id].style.display = value;
}
</script>

<ul id="1">
<li id="1_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=17">CDROM Drives</a></li><li id="1_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=4"><b>Graphics Cards</b>&nbsp;(2)</a></li><li id="1_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=8">Keyboards&nbsp;(1)</a></li><li id="1_3"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=16">Memory</a></li><li id="1_4"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=9">Mice&nbsp;(2)</a></li><li id="1_5"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=6">Monitors</a></li><li id="1_6"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=5">Printers&nbsp;(1)</a></li><li id="1_7"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=7">Speakers</a></li></ul>
<a class="cat" onclick="return  switchid(2)" href="http://www.free-store-templates.com/demo/20/index.php?cPath=2">Software&nbsp;(4) &raquo;</a>

<ul id="2">
<li id="2_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=19">Action&nbsp;(1)</a></li><li id="2_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=18">Simulation&nbsp;(1)</a></li><li id="2_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=20">Strategy&nbsp;(2)</a></li></ul>
<a class="cat" onclick="return  switchid(3)" href="http://www.free-store-templates.com/demo/20/index.php?cPath=3">DVD Movies&nbsp;(17) &raquo;</a>
<ul id="3">
<li id="3_0"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=10">Action&nbsp;(9)</a></li><li id="3_1"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=13">Cartoons&nbsp;(1)</a></li><li id="3_2"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=12">Comedy&nbsp;(2)</a></li><li id="3_3"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=15">Drama&nbsp;(3)</a></li><li id="3_4"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=11">Science Fiction&nbsp;(1)</a></li><li id="3_5"><a class="cat" href="http://www.free-store-templates.com/demo/20/index.php?cPath=14">Thriller&nbsp;(1)</a></li></ul>