		// foldable menu it must be here
		var dont_fold_menu = false;
		var mustSave = false;
		var textClicked = false;
		var inputClicked = false;
		
		$(document).ready(function() {
			$(".left_menu > li").not(".selected").find("div > ul").hide();		
			$(".left_menu > li").not(".single, .single_selected").find("div > a").click(function() {
				var parent_control = ($(this).parent()).parent();

				if ($(this).next().css("display") != "none") {
					$(this).css("background-image", "url(" +webroot+ "img/arrow_right.gif)");
					parent_control.css("background-color", "#1159AD");
					$(this).next().hide();
				} else {
					$(this).css("background-image", "url(" +webroot+ "img/arrow_down.gif)");
					parent_control.css("background-color", "#0F4A8E");
					$(this).next().slideDown("fast");
				}
				return false;
			});			
			
		$("a[@rel$='external']").click(function(){
		     this.target = "_blank";
		});	
			
		
		 $('.multi2').MultiFile({				
		  	STRING: {
		   	remove:'Usuń',
		    selected:'Wybrano plik: $file',
		   	denied:'Nieprawidłowy format pliku: $ext!'				
		  }			  
		 });
		 
		 $("#send_cv_btn").click(function(){
		     var position = $("#position_field"); 
			 var refernum = $("#refernum_field");
			 
			 position.attr('disabled','');
			 refernum.attr('disabled','');
			 
		 });
		 $("#renew_captcha").click(function(){
		 	$("#captcha").attr('src',webroot + 'contact/captcha/' + (new Date()).getTime());
			return false;
		 })	
				
});
