window.onload = hideDivs;

function hideDivs()
{
	//alert("hello world")
	var tmp;
	tmp = ["divhowcan","divwhocan","divamend","divmlicense", "divmdecree","divhowlong","divapplyinfo","divstatus","divmavailable"];
	var n = tmp.length;
	var i; 
	for (i = 0; i < n; i++)
	{
		document.getElementById(tmp[i]).style.display = "none";
	}
	goToBookmark();
}

function goToBookmark()
{
	var url = parent.window.location.href;
	var n = url.indexOf('#');
	
	if (n >=0)
	{	
		
		var str = "div" + url.substring(n*1+1);
		ShowOrHide(str);
	}
	else
		document.getElementById("divhowcan").style.display = "inline";
}

function ShowOrHide(str)
{
	if (document.getElementById(str).style.display == "inline")
		document.getElementById(str).style.display = "none";
	else if(document.getElementById(str).style.display == "none")
		document.getElementById(str).style.display = "inline";
}