	jQuery(document).ready(function() {
									
	function mycarousel_initCallback(carousel){
	 // Pause autoscrolling if the user moves with the cursor over the clip.
	

    $("#mycarousel li").hoverIntent(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });

}
									
    jQuery('#mycarousel').jcarousel({
//	scroll: 1,
//	auto: 6,
//	wrap: 'last',
//	easing: 'easeOutElastic',
//	animation: 2600,
	scroll: 1,
	auto: 7,
	wrap: 'last',
	easing: 'swing',
	animation: 700,
	initCallback: mycarousel_initCallback
	});
	
	
	$('#enquiryTab').click(function(){
		$('#enquiryForm').slideToggle();					
	});
	
		$('.getQuote').click(function(){
		$('#enquiryForm').slideToggle();					
	});
	
		$('.services_getQuote').click(function(){
		$('#enquiryForm').slideToggle();					
	});
	
	$('.hswTestimonial').click(function(){
		$(this).parent().next().slideToggle();
						
	});
	
});


$(function(){

    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                    
                return false;
                
            }
            
        }
        
    });
    
});
