// jquery.js is required first!!

var langSwitchForm = null;

// for aesthetics, replace the submit button with a link that submits the form
$(document).ready(function(){
	langSwitchForm = $('#langSwitchForm').get(0);
	if (langSwitchForm) {
		var text = $('#langSwitchSubmit').get(0).value;
		$('#langSwitchSubmit').remove();
		$('#langSwitchForm').append('<a href="#" onclick="langSwitchForm.submit()">' + text + '</a>');
	}
});