///////////////////////////////////////////////////////////////////////////////
// SetLocation 	- Set the Language/Country from a selection
// Author: 		Kevin De Angelis
// Date: 		2006.09.11
// Receive: 	void
// Return: 		void
///////////////////////////////////////////////////////////////////////////////
function SetLocation( locale )
{
	var thisPath 		= location.pathname;
	var thisURLArray	= thisPath.split( "/" );

	// 2006.09.11 KJD: Remove en/us
	if( locale == "/en/us" ){ locale = ""; }
	
	if( ( thisURLArray[1].length == 2 ) && ( thisURLArray[2].length == 2 ) )
	{
		// 2006.09.11 KJD: Cut out the language path
		thisPath = location.pathname.substring(6, location.pathname.length );
	}

	// 2006.09.11 KJD: Now redirect the user
	location.href = locale + thisPath;
}
