
if(_type != "Home"){
text = '<div id="home">';
text = text + '<a href="index.htm">';
text = text + 'Home';
text = text + '</a>';
text = text + '</div>';
document.write(text);
}
 
if(_type == "Category" || _type == "Home"){
text = '<table id="categoryindex">';
text = text + '<tr><td class="menulabel" id="menulabel">';
text = text + '@';
text = text + '</td></tr>';
for (i=1;i<idlist.length;i++){
//	text = text + '<tr><td class="menuitem">';
	if(_title != idlist[i]){
		text = text + '<tr><td class="menuitem">';
		text = text + '<a href="' + urllist[i] + '">';
		text = text + labellist[i];
		text = text + '</a>';
	}
	else{
		text = text + '<tr><td class="menuitem" id="curcategory2">';
	 	text = text + labellist[i];
	}
	text = text + '</td></tr>';
}
text = text + '</table>';
document.write(text);
}


if(_type == "Topic" || _type == "Home"){
    text = '<table id="topicindex">';
    text = text + '<tr><td class="menulabel" id="topicmenulabel">';
    text = text + 'Topics';
    text = text + '</td></tr>';
    for(i=0;i<topiclist.length;i++){
	if(_title != topicidlist[i]){
	        text = text + '<tr><td class="topicmenuitem">';
		text = text + '<a href="'+ topicurl[i] + '">';
		text = text + topiclist[i];
		text = text + '</a>';
	}
	else{
	        text = text + '<tr><td class="topicmenuitem" id="curcategory2">';
                text = text + topiclist[i];
        }
	text = text + '</td></tr>';
    }
    text = text + '</table>';
    document.write(text);
}


