	var activeLocationSelector	= null;

	function setActiveLocationSelector(value){
		activeLocationSelector = value;
	};

	function idaa_contactmanager_ShowCountry(id){
		for(i=0; i < countries.length; i++){
			if(countries[i] == id){
				var country = document.getElementById(id);
				if (country){ country.style['visibility']	= 'visible';}
			}else{
				idaa_contactmanager_HideCountry(countries[i]);
				idaa_contactmanager_HideLocationSelector(countries[i]);
			}
		}
	}
	function idaa_contactmanager_ShowLocationSelector(id){
		if(id == ''){return false;}
		var countrySelector = document.getElementById(id + '_selector');
		if (countrySelector){
			countrySelector.style['visibility']	= 'visible';
		}
	}
	function idaa_contactmanager_HideAllCountries(){
		for(i=0; i < countries.length; i++){
			var country = document.getElementById(countries[i]);
			if (country){ country.style['visibility']	= 'hidden';}
		}
	}
	function idaa_contactmanager_HideAllLocationSelectors(){
		for(i=0; i < countries.length; i++){
			var locationSelector = document.getElementById(countries[i]+'_selector');
			if (locationSelector && activeLocationSelector != countries[i]){
				locationSelector.style['visibility']	= 'hidden';
			}
		}
	}
	function idaa_contactmanager_HideCountry(id){
		var country = document.getElementById(id);
		if (country){ country.style['visibility']	= 'hidden';}
	}
	function idaa_contactmanager_HideLocationSelector(id){
		var locationSelector = document.getElementById(id + '_selector');
		if (locationSelector){
			locationSelector.style['visibility']	= 'hidden';
		}
	}

