/*
 * Copyright (C) 2010 Urban Suppiger, Pirmin Mattmann
 *
 * This file is part of eCamp.
 *
 * eCamp is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * eCamp is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with eCamp.  If not, see <http://www.gnu.org/licenses/>.
 */

window.addEvent( 'load', function()
{
	$('js_off').addClass('hidden');
	//$('js_true').removeClass('hidden');
	
	
	if( Browser.Engine.trident && Browser.Engine.version >= 5)
	{
		$('ie_browser').removeClass('hidden');
		$('recomanded_browser').removeClass('hidden');
	}
	else if( Browser.Engine.gecko   )
	{	$('ff_browser').removeClass('hidden');	}
	else if( Browser.Engine.webkit )
	{	$('sa_browser').removeClass('hidden');	}
	else
	{
		$('unknown_browser').removeClass('hidden');
		$('recomanded_browser').removeClass('hidden');
	}
	
	
	$('Login').focus();
});
