$(document).ready(function() {
    $("body").css("display", "none");
    $("body").fadeIn(2000);

    $('#hide-block').click(function(){
        $('#big-block').hide();
        $('#show-block').show();
        return false;
    });

    $('#show-block').click(function(){
        $('#big-block').show();
        $(this).hide();
        return false;
    });

    jQuery('#big-photo-block').jcarousel({
        buttonNextHTML: '<button id="nav-left"></button>',
        buttonPrevHTML: '<button id="nav-right"></button>',
		wrap: 'circular',
        scroll: 1,
        visible : 1
    });

    jQuery('#clients-scroll').jcarousel({
        buttonNextHTML: '<button id="clients-nav-right"><a href="#"></a></button>',
        buttonPrevHTML: '<button id="clients-nav-left"><a href="#"></a></button>',
		wrap: 'circular',
		auto:5,
        scroll: 1,
        visible : 5
    });

    jQuery('#news-rec').jcarousel({
        buttonNextHTML: '<button id="ns-bottom"></button>',
        buttonPrevHTML: '<button id="ns-top"></button>',
		vertical: true,
        scroll: 1,
        visible : 1
    });

	// Наша команда
    jQuery('#team-list').jcarousel({
        buttonNextHTML: '<button id="team-Next"></button>',
        buttonPrevHTML: '<button id="team-Prev"></button>',
        scroll: 1,
		auto:5,
        wrap: 'circular',
        visible : 5,
		animation: 300
    });


	$("[title]").style_my_tooltips({
		tip_follows_cursor: "on",
		tip_delay_time: 500
	});


	// портфолио, бордюр картинок

	$('.folio img').bind({
	  mouseenter: function() {
		jQuery(this).animate({
		borderBottomColor:"#ffcc00",
		borderLeftColor:"#ffcc00",
		borderRightColor:"#ffcc00",
		borderTopColor:"#ffcc00"
	     }, 400 );
	  },
	  mouseleave: function() {
		jQuery(this).animate({
		borderBottomColor:"#1e1e1e",
		borderLeftColor:"#1e1e1e",
		borderRightColor:"#1e1e1e",
		borderTopColor:"#1e1e1e"
	     }, 400 );
	  }
	});


	/*$('#big-photo-block li').bind({
	  mouseenter: function() {
		$('a', this).show();
	  },
	  mouseleave: function() {
		$('a', this).hide();
	  }
	}); */

});
