function anlastToggle(list) {
	var listElementStyle=document.getElementById(list).style; 
	if (listElementStyle.display=="none") {
		listElementStyle.display="block";
	}
	else {
		listElementStyle.display="none";
	}
}

function anlastChStyle (id,level) {
	var listElementStyle=document.getElementById(id).style;
	linkid = id + 'Link';
	linkida = id + 'LinkA';
	if (listElementStyle.display=="none") {
		if (level==1) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowClosed.gif') no-repeat 0 0";
		}
		else if (level==2) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowSmallClosed.gif') no-repeat 10px 9px";
			document.getElementById(linkida).style.color = "#fff";
			document.getElementById(linkida).style.fontWeight = "normal";
		}
		else if (level==3) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowSmallClosed.gif') no-repeat 20px 5px";
			document.getElementById(linkida).style.color = "#fff";
			document.getElementById(linkida).style.fontWeight = "normal";
		}
	}
	else {
		if (level==1) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowOpen.gif') no-repeat 0 0";
		}
		else if (level==2) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowSmallOpen.gif') no-repeat 10px 9px";
			document.getElementById(linkida).style.color = "#fff000";
			document.getElementById(linkida).style.fontWeight = "bold";
		}
		else if (level==3) {
			document.getElementById(linkid).style.background = "url('http://wrooom.anlast.com/bygg_no/searchdropdown/ArrowSmallOpen.gif') no-repeat 20px 5px";
			document.getElementById(linkida).style.color = "#fff000";
			document.getElementById(linkida).style.fontWeight = "bold";
		}
	}
}
