// JavaScript Document

// Слайдер Акций.
$(document).ready(function(){
	$('.action').hide();
	$('.spoler_up').click(function(){
	var id=$(this).attr("id");
	if($(this).hasClass('spoler_up'))
	{$(this).removeClass('spoler_up').addClass('spoler_down');
	$('.action').show(100);}
	else 
	if($(this).hasClass('spoler_down'))
	{$(this).removeClass('spoler_down').addClass('spoler_up');
	$('.action').hide(100);}   
  })
});

//Для каруселки на главной
// wait until document is fully scriptable
$(function() {
 
	// select #flowplanes and make it scrollable. use circular and navigator plugins
	$("#flowpanes").scrollable({ circular: true, mousewheel: true }).navigator({
 
		// select #flowtabs to be used as navigator
		navi: "#flowtabs",
 
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',
 
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current',
 
		// make browser's back button work
		history: true
 
	});
});
