 // Carosel.

	function clients_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#clients').jcarousel({
        auto: 5,
        wrap: 'last',
        initCallback: clients_initCallback
    });
});

jQuery(document).ready(function($) {
	$(".scroll").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
	});
	$("li:last-child").addClass("last-child");
	$("li:first-child").addClass("first-child");
	 $("#footer .inner .right ul li:last-child").css("border-right","0")
	 $("#footer .base .legal li:last-child").css("border-right","0" )
	 $("#footer .base .legal li:last-child").css("padding-right","0px" )
	 $("#footer .inner .right ul li:last-child").css("padding-right","0px" )
});


// Custom File Upload
//jQuery (".fileupload").prepend('<div class="cusfile"><input type="text" name="filetxt" class="txtup" /><img src="/images/btn_browse.png" /></div>');

