//javascript for the site goes here
window.addEvent('load', function() {
	$('langSubmit').setStyle('display', 'none');
	$$('.selectLang').each(function(item){
		item.addEvent('change', function(e)
		{
			var request = new Request.HTML({
				url: path + '/home/language.rails',
				onSuccess: function(){
					window.location = window.location;
					window.location = window.location;
				}
			}).post({ 'language' : item.value})
		})
	})
})

