$(document).ready(function(){
			
	// scrollToTop() - scroll window to the top
	$('#totop').hide().removeAttr("href");
    
	if ($(window).scrollTop() != "0") {
        $('#totop').fadeIn("slow")
    }
    var scrollDiv = $('#totop');
    
	$(window).scroll(function () {
        if ($(window).scrollTop() == "0") {
            $(scrollDiv).fadeOut("slow")
        } else {
            $(scrollDiv).fadeIn("slow")
        }
    });
    $('#totop').click(function () {
        $("html, body").animate({
            scrollTop: 0
        }, "slow")
    })
		
		
	$('#banner-slides').slides({
				preload: true,
				effect: 'slide',
				play: 10000,
				pause: 5000,
				hoverPause: true
	});
	
	$('#customers-event').slides({
				preload: true,
				effect: 'fade',
				play: 5000,
				pause: 2500,
				hoverPause: true
	});
	
	$('#client-slides').slides({ });
		
	// build an animated footer
    $('#animated').each(function () {
        $(this).hover(function () {
            $(this).stop().animate({
                opacity: 0.9
            }, 400);
        }, function () {
            $(this).stop().animate({
                opacity: 0.0
            }, 200);
        });
    });
	
		
});
	

	
	
