
// JavaScript Document


jQuery(document).ready(function(){
	    
		
		 jQuery(".adress h3").toggle(function(){
	         jQuery(this).next('.span').show();
			 
	    },function(){
			 jQuery(this).next('.span').hide();
			 
	       
	    	});	 
		 
		 jQuery(".list").toggle(function(){
	         jQuery(this).next('.span').show();
			 
	    },function(){
			 jQuery(this).next('.span').hide();
			 
	       
	    });
		
		jQuery(".list_arch_news").toggle(function(){
	         jQuery(this).next('.span_news').show();
			 
			 jQuery('.news_wrap').hide("slow");
			 
			 setTimeout(function(){
	 
  var settings = {
		showArrows:true, 
		scrollbarWidth:20, 
		verticalDragMinHeight:21, 
		verticalDragMaxHeight:21, 
		hideFocus:true
	};

	var pane = $('.scroll-pane')
	pane.jScrollPane(settings);
	var api = pane.data('jsp');
	api.reinitialise(); 
	api.scrollToY(0)}, 200);
	
		
		
		
			 
	    },function(){
			 jQuery(this).next('.span_news').hide();
			 jQuery('.news_wrap').show();
			 
			 setTimeout(function(){
	 
  var settings = {
		showArrows:true, 
		scrollbarWidth:20, 
		verticalDragMinHeight:21, 
		verticalDragMaxHeight:21, 
		hideFocus:true
	};

	var pane = $('.scroll-pane');
	pane.jScrollPane(settings);
	var api = pane.data('jsp');
	api.reinitialise(); 
	api.scrollToY(0)}, 1000); 
			 
			 
			 
	       
	    });
		 
		$(".adress h3").click(function()
		{
			setTimeout(function(){
	 
  var settings = {
		showArrows:true, 
		scrollbarWidth:20, 
		verticalDragMinHeight:21, 
		verticalDragMaxHeight:21, 
		hideFocus:true
	};

	var pane = $('.scroll-pane')
	pane.jScrollPane(settings);
	var api = pane.data('jsp');
	api.reinitialise()}, 200);
		});
		 
		 
		  jQuery(".adress div").hover(function(){
			jQuery(".adress div").removeClass('red');
			jQuery(this).addClass('red');
	        jQuery(".adress img").hide(); 
			jQuery(this).find('img').show();
			 
	    },function(){
			   
	        
	    }); 
		
		$('#submit_button').click(function() {
  $('#target').submit();
});
	});

	

	












