if (flash_allowed())
{
	var currentURL = window.location;
	var newURL = '/flash/';

	if (currentURL.pathname != '/')
	{		
		newURL += '#'+currentURL.pathname.substring(0, currentURL.pathname.lastIndexOf('/'))+'/';
	}
	
	window.location.replace (newURL);
}
