$(document).ready(function(){

		$("#contactLink").click(function(){
			if ($("#contactForm").is(":hidden")){
				$("#contactForm").slideDown("slow");
			}
			else{
				$("#contactForm").slideUp("slow");
			}
		});
		$("#contactLink").click(function(){
			if ($("#contactForm-cv").is(":hidden")){
				$("#contactForm-cv").slideDown("slow");
			}
			else{
				$("#contactForm-cv").slideUp("slow");
			}
		});
		
		$("#contactLink-cv1").click(function(){
			if ($("#contactForm-cv1").is(":hidden")){
				$("#contactForm-cv1").slideDown("slow");
			}
			else{
				$("#contactForm-cv1").slideUp("slow");
			}
		});
		
		$("#contactLink2").click(function(){
			if ($("#contactForm2").is(":hidden")){
				$("#contactForm2").slideDown("slow");
			}
			else{
				$("#contactForm2").slideUp("slow");
			}
		});
		
		$('#contactForm ul li').click(function(){
			$('#current_country').html($(this).html());
			$('#id_country').val($(this).attr('id'));
		});
		
		$("#boxLink").click(function(){
			if ($("#boxForm").is(":hidden")){
				$("#boxForm").slideDown("fast");
			}
			else{
				$("#boxForm").slideUp("fast");
			}
		});
		
	});
	
	function closeForm(){
		$("#messageSent").show("slow");
		setTimeout('$("#messageSent").hide();$("#contactForm").slideD("slow");$("#contactLink").slideUp("slow");', 1000);
	}
	
	function check_requirement()
	{
		var country = $('#id_country').val();
		document.location.href = base_url + 'requirements/' + country + '/';
	}
