	function in_array(needle, haystack, argStrict) {
		// Checks if the given value exists in the array  
		// 
		// version: 903.1614
		// discuss at: http://phpjs.org/functions/in_array
		// +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
		// *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);
		// *     returns 1: true
		var found = false, key, strict = !!argStrict;

		for (key in haystack) {
			if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
				found = true;
				break;
			}
		}

		return found;
	}

	function showKommune(nmbr) {
		var kommuneElm = document.getElementById(nmbr);
		if(kommuneElm!="" && in_array(nmbr,aktiveKommuner)) {
			kommuneElm.style.display="block";
		}
	}
	
	function hideKommune(nmbr) {
		minKommuneHolder = document.getElementById("kommuneBilleder");
		children = minKommuneHolder.getElementsByTagName('IMG');
		  for (var i=0; i < children.length; i++) {
			if (children[i].className.indexOf("kommuneimage") != -1 ) {
			  children[i].style.display = "none";
			}
		  }

	}
