// JavaScript Document
jQuery.noConflict();
jQuery(document).ready(function(){
	Boxgrid();	
	Mycarousel();
	runcycle();
	
});

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


function Mycarousel(){
	jQuery('#new_products').fadeIn(1500);

	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);
}