

$(document).ready(function(){ 


    	$('#slider') 
		.after('<div id="nav">') 
		.cycle({ 
		    fx:     'fade', 
		    speed:  'slow', 
		    timeout: 5000, 
		  	pager:  '#nav' 
		});
		
		$(".btn-slide").click(function(){
				$("#clients-area").slideToggle("slow");
				$(this).toggleClass("active"); return false;
		});
		$(".btn-slide-content").click(function(){
				$("#clients-list").slideToggle("slow");
				$(this).toggleClass("active"); return false;
		});
		
   		$('.nav-main li a')
			.css( {backgroundPosition: "0 -150px"} )
			.mouseover(function(){
				$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:500})
			})
			.mouseout(function(){
				$(this).stop().animate({backgroundPosition:"(0 -200px)"}, {duration:200, complete:function(){
					$(this).css({backgroundPosition: "0 -150px"})
				}})
		})                           




 
   	 
        
/*
jQuery(function($) {
    $('.nav-home ul li').ahover();
    $('#nav-main ul li').ahover({toggleEffect: 'width'});
    $('.nav-main ul li').ahover({moveSpeed: 100, hoverEffect: function() {
        $(this)
            .css({opacity: 0.99})
            .animate({opacity: 0.5}, 750)
            .animate({opacity: 0.99}, 750)
            .dequeue();
        $(this).queue(arguments.callee);
    }});
    $('#nav-main ul li').ahover({toggleEffect: 'height', moveSpeed: 75, toggleSpeed: 250});
});
*/
});   


