$(document).ready(function(){


  $('#contacts-form').ketchup();

    $('#slideshow').cycle({                                                                                                  
            fx:     'fade',                                                                                                      
	            speed:  'slow',                                                                                                      
		            timeout: 3000,                                                                                                       
			            pager:  '#slider_nav',                                                                                               
				            pagerAnchorBuilder: function(idx, slide) {                                                                           
					                // return sel string for existing anchor                                                                         
							            return '#slider_nav li:eq(' + (idx) + ') a';                                                                     
								            }                                                                                                                    
									        });                                                                                                                      
										           

$('a#gallery').fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

	$('a[rel=gallerys]').fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});


   $('.guest1').bind("click", function(){
         
            var href = $(this).attr('href');
            $('#content').fadeOut(function(){
        	$(this).load(href+"&ajax=1",
        	    function(){
        		$(this).fadeIn();
        	})
    	    });
                 return false;
        
        
        
        });
   
     $('#rotator').rotator({
        slides: [
               
                  {
                    url:'http://lclub.com.ua',
                    img:'/functions!qaz/rotator/images/курсы_французского_языка.jpg'
                },
                {
                    url:'http://lclub.com.ua',
                    img:'/functions!qaz/rotator/images/lesson_english_lclub.jpg'
                },
	
		 {
                    url:'http://lclub.com.ua',
                    img:'/functions!qaz/rotator/images/german_courses_lclub.jpg'
                }
        ],
        speed: 500,
        timeout: 6000,
        width: 200,
        height: 298,
        random: true, 
        autorun: true,
        fx: 'slide',
        nav: false
    });
        });



