function clearNewsletterSignup(defaultValue)
{
	if (document.newsletterSignup.emailAddress.value == defaultValue)
	document.newsletterSignup.emailAddress.value = "";
}
function resetNewsletterSignup(defaultValue)
{
	if (document.newsletterSignup.emailAddress.value == "")
	document.newsletterSignup.emailAddress.value = defaultValue;
}
function clearLocationFinder(defaultValue)
{
	if (document.locationFinder.zipCityState.value == defaultValue)
	document.locationFinder.zipCityState.value = "";
}
function resetLocationFinder(defaultValue)
{
	if (document.locationFinder.zipCityState.value == "")
	document.locationFinder.zipCityState.value = defaultValue;
}
function clearLocationFinderInline(defaultValue)
{
	if (document.locationFinderInline.zipCityStateInline.value == defaultValue)
	document.locationFinderInline.zipCityStateInline.value = "";
}
function resetLocationFinderInline(defaultValue)
{
	if (document.locationFinderInline.zipCityStateInline.value == "")
	document.locationFinderInline.zipCityStateInline.value = defaultValue;
}
function clearLocationFinderInline2(defaultValue)
{
	if (document.locationFinderInline2.zipCityState.value == defaultValue)
	document.locationFinderInline2.zipCityState.value = "";
}
function resetLocationFinderInline2(defaultValue)
{
	if (document.locationFinderInline2.zipCityState.value == "")
	document.locationFinderInline2.zipCityState.value = defaultValue;
}
// Location Page Functions
// Prevent refading if active
var usActive = 0;
		
// Show US Locations, Reset Lists to Default
function showUs() {
	if(usActive != 1) {
		document.getElementById('locations_us').style.display="block";
		$('#locations_list_us').show("slow");
		$('#locations_list_intl').hide();
		$('#locations_intl').hide();
		domestic_reset();
		usActive = 1;
	}
}

// Show International Locations, Reset Lists to Default
function showIntl() {
	if(usActive == 1) {
		$('#locations_intl').show();
		$('#locations_intl').fadeIn("slow");
		$('#locations_list_intl').show("slow");
		$('#locations_us').hide();
		$('#locations_list_us').hide();
		intl_reset();
		usActive = 0;
	}
}
		
// Show Country Specific Cities
function showBottomDiv(id) {
	document.getElementById('countries').style.display="none";
	document.getElementById('intl_cities').style.display="block";
	var newDiv = document.getElementById(id);
	$(newDiv).show("normal");
}
// Return to List of Countries
function hideBottomDiv(id) {
	document.getElementById('intl_cities').style.display="none";
	var newDiv = document.getElementById(id);
	$(newDiv).hide("normal");
	$('#countries').show("normal");
}

function autoForward(target,object)
{
  eval(target + ".location='" + object.options[object.selectedIndex].value + "'");
}