// Tab setting
var countryCount = 9;
function ShowCountryContent(id)
{
	if (id=="0")
	{
		ShowAllCountries();
	}
	else
	{
		HideAllCountries();
		ShowCountry(id);
	}
}

function HideAllCountries(){
	//loop through the array and hide each element by id
	for (var i=1;i<=countryCount;i++){
		HideCountry(i);
	}		  
}

function ShowAllCountries(){
	//loop through the array and hide each element by id
	for (var i=1;i<=countryCount;i++){
		ShowCountry(i);
	}		  
}

function HideCountry(id) {
	//safe function to hide an element with a specified id
	var countrySection = "contactus_"+id;
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(countrySection).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.countrySection.display = 'none';
		}
		else { // IE 4
			document.all.countrySection.style.display = 'none';
		}
	}
}

function ShowCountry(id) {
	//safe function to show an element with a specified id
	var countrySection = "contactus_"+id;
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(countrySection).style.display = 'block';
	}
	else {
		
		if (document.layers) { // Netscape 4
			document.countrySection.display = 'block';
		}
		else { // IE 4
			document.all.countrySection.style.display = 'block';
		}
	}
}
//Tab Setting code ends here