jQuery(document).ready(function(){	
	//Back to top slider
    jQuery('a[href=#totop]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });
	// Product Slider
    jQuery('#featured-products').jcarousel();

	// FancyBox jQuery
	jQuery("a.group").fancybox({ 'zoomSpeedIn': 600, 'zoomSpeedOut': 600, 'overlayShow': true }); 

	// Slider Homepage
	jQuery("#slider").easySlider({
		auto: true,
		continuous: true,
		numeric: true
	});
});



// Boxgrid
jQuery.noConflict();
jQuery(document).ready(function(){
	Boxgrid();
});

function Boxgrid(){
	jQuery('.boxgrid.caption').hover(function(){
		jQuery(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	});
}


function Mycarousel(){
	jQuery('#mycarousel').jcarousel({		
        scroll: 1
	});
}

function runcycle(){
 // run the code in the markup!
 jQuery('#s1').cycle({
 fx: 'fade',
 timeout: 7000,
 after: onAfter
 });
};
function onAfter() {
 jQuery('#output').html("Current anchor: " + this.href);
}
