Event.observe( window,'load', function(){
	intlselector();
});

function clear()
{

}

function intlselector() 
{
	var form = $('intl_select');
	var input = form['choose_country'];
	
	if($('US')){
		input.selectedIndex = 0;
	}else if($('AU')){
		input.selectedIndex = 1;	
	}else if($('UK')){
		input.selectedIndex = 3;	
	}else if($('CA')){
		input.selectedIndex = 2;	
	}

	$(input).observe('change', function(event){
		switch ($F(input))
		{		
		case 'us':
			clear();
			location.href = "/";
			input.selectedIndex = 0;
			break;
		case 'au':
			clear();
			location.href = "/au/";
			input.selectedIndex = 1;
			break;
		case 'uk':
			clear();
			location.href = "/uk/";
			input.selectedIndex = 3;
			break;
		case 'ca':
			clear();
			location.href = "/ca/";
			input.selectedIndex = 2;
			break;
		default:
			clear();
		}				
	});
}