function switchtopic(topicid)
{
	topicid = topicid.replace(" ", "");
	if ((topicid == null) || (topicid.length == 0))
	{
		topicid = "a";
	}
	
	var topica=document.getElementById("topica");
	var menua=document.getElementById("menua");
	if (topica != null)
	{
		if (topicid=="a")
		{
			topica.style.visibility="visible";
			topica.style.display="block";
			menua.className="asel";
		}
		else
		{
			topica.style.visibility="hidden";
			topica.style.display="none";
			menua.className="a";
		}
	}
	var topicb=document.getElementById("topicb");
	var menub=document.getElementById("menub");
	if (topicb != null)
	{
		if (topicid=="b")
		{
			topicb.style.visibility="visible";
			topicb.style.display="block";
			menub.className="bsel";
		}
		else
		{
			topicb.style.visibility="hidden";
			topicb.style.display="none";
			menub.className="b";
		}
	}
	var topicc=document.getElementById("topicc");
	var menuc=document.getElementById("menuc");
	if (topicc != null)
	{
		if (topicid=="c")
		{
			topicc.style.visibility="visible";
			topicc.style.display="block";
			menuc.className="csel";
		}
		else
		{
			topicc.style.visibility="hidden";
			topicc.style.display="none";
			menuc.className="c";
		}
	}
	var topicd=document.getElementById("topicd");
	var menud=document.getElementById("menud");
	if (topicd != null)
	{
		if (topicid=="d")
		{
			topicd.style.visibility="visible";
			topicd.style.display="block";
			menud.className="dsel";
		}
		else
		{
			topicd.style.visibility="hidden";
			topicd.style.display="none";
			menud.className="d";
		}
	}
	var topice=document.getElementById("topice");
	var menue=document.getElementById("menue");
	if (topice != null)
	{
		if (topicid=="e")
		{
			topice.style.visibility="visible";
			topice.style.display="block";
			menue.className="esel";
		}
		else
		{
			topice.style.visibility="hidden";
			topice.style.display="none";
			menue.className="e";
		}
	}
	var topicf=document.getElementById("topicf");
	var menuf=document.getElementById("menuf");
	if (topicf != null)
	{
		if (topicid=="f")
		{
			topicf.style.visibility="visible";
			topicf.style.display="block";
			menuf.className="fsel";
		}
		else
		{
			topicf.style.visibility="hidden";
			topicf.style.display="none";
			menuf.className="f";
		}
	}




	var topicg=document.getElementById("topicg");
	var menug=document.getElementById("menug");
	if (topicg != null)
	{
		if (topicid=="g")
		{
			topicg.style.visibility="visible";
			topicg.style.display="block";
			menug.className="gsel";
		}
		else
		{
			topicg.style.visibility="hidden";
			topicg.style.display="none";
			menug.className="g";
		}
	}
	var topich=document.getElementById("topich");
	var menuh=document.getElementById("menuh");
	if (topich != null)
	{
		if (topicid=="h")
		{
			topich.style.visibility="visible";
			topich.style.display="block";
			menuh.className="hsel";
		}
		else
		{
			topich.style.visibility="hidden";
			topich.style.display="none";
			menuh.className="h";
		}
	}
	var topici=document.getElementById("topici");
	var menui=document.getElementById("menui");
	if (topici != null)
	{
		if (topicid=="i")
		{
			topici.style.visibility="visible";
			topici.style.display="block";
			menui.className="isel";
		}
		else
		{
			topici.style.visibility="hidden";
			topici.style.display="none";
			menui.className="i";
		}
	}
	var topicj=document.getElementById("topicj");
	var menuj=document.getElementById("menuj");
	if (topicj != null)
	{
		if (topicjd=="j")
		{
			topicj.style.visibility="visible";
			topicj.style.display="block";
			menuj.className="jsel";
		}
		else
		{
			topicj.style.visibility="hidden";
			topicj.style.display="none";
			menuj.className="j";
		}
	}
	var topick=document.getElementById("topick");
	var menuk=document.getElementById("menuk");
	if (topick != null)
	{
		if (topickd=="k")
		{
			topick.style.visibility="visible";
			topick.style.display="block";
			menuk.className="ksel";
		}
		else
		{
			topick.style.visibility="hidden";
			topick.style.display="none";
			menuk.className="k";
		}
	}
	var topicl=document.getElementById("topicl");
	var menul=document.getElementById("menul");
	if (topicl != null)
	{
		if (topicld=="l")
		{
			topicl.style.visibility="visible";
			topicl.style.display="block";
			menul.className="lsel";
		}
		else
		{
			topicl.style.visibility="hidden";
			topicl.style.display="none";
			menul.className="l";
		}
	}
	
}

function topicload()
{
	var topicid = "";
	var topicQueryId="&topic=";
	var topicindex=window.location.search.indexOf(topicQueryId);
	if (topicindex > -1)
	{
		if (window.location.search.length > (topicindex + topicQueryId.length))
		{
			topicid=window.location.search.substr(topicindex + topicQueryId.length, 1);
		}
	}
	switchtopic(topicid);
}
