// JavaScript Document
var previoustab="";

function showsub(cid){
//on mouseover
if (document.getElementById){
    //if we have already displayed a sub list we want hide it
	if (previoustab!=""){
		if (document.getElementById("sub-" + previoustab)!=null){
			document.getElementById("sub-" + previoustab).style.display="none";
		}
		if (document.getElementById("current")!=null){
			document.getElementById("current").id="top-" + previoustab;
		}
	}
	if (document.getElementById("sub-" + cid)!=null){
		document.getElementById("sub-" + cid).style.display="block";
	}
	}
}
	
function settop(cid){
	if (document.getElementById("top-" + cid)!=null){
		document.getElementById("top-" + cid).id = "current";
		previoustab=cid;
	}
}