(function($){

    $(function(){
        $('.thickbox').live('click', function(event){
			event.preventDefault();
			event.stopPropagation();
			$.fancybox(this);
		});
        $('a.shema').live('click',function(event){
			event.preventDefault();
			event.stopPropagation();
			$.fancybox({
				width: '70%',
				height: '80%',
				autoScale: true,
				autoDimensions: true,
				transitionIn: 'none',
				transitionOut: 'none',
				type: 'iframe',
				href: $(this).attr("href"),
				titleShow: false
			});
		});
		$("a.shema1").live("click", function(event){
			event.preventDefault();
			event.stopPropagation();
			$.fancybox({
				width: '70%',
				height: '70%',
				href: $(this).attr("href")
			});
		});

        $("div.hidden").each(function(){
            th = $(this);
            th.children(".hidden_in").hide();
            th.children("a").click(function(){
                $(this).parent().children(".hidden_in").toggle();
                return false;
            });
        });
        
        $(".clients-widget .widget-content .serial-scroll").jcarousel({
            buttonPrevHTML: '<div class="prev-button"></div>',
            buttonNextHTML: '<div class="next-button"></div>',
            scroll: 1,
            start: 1
        });


        
    }); // onReady

})(jQuery);
