$(document).ready(function() {
    $('#countdown ol').countdown({
    	until: new Date(2010, 10 - 1, 1, 2, 0, 0),
    	layout: '<ol><li id="days">{dn} <span>{dl}</span></li><li id="hours">{hn} <span>{hl}</span></li><li id="min">{mn} <span>{ml}</span></li><li id="sec">{sn} <span>{sl}</span></li></ol>',
    	labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Min', 'Sec'],
    	labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Min', 'Sec']
    });
    
    $('#wrapper').serialScroll({
    	target: '.container',
		items: 'li',
		//next: '#again a',
		duration: 300,
		force: true,
		offset: 0,
		exclude: 3,
		cycle: true,
		interval: 5300,
		event: 'mouseover',
		constant: false,
		easing: 'easeInOutQuad'
	});
	
	$('#wrapper').serialScroll({
    	target: '#a-box',
		items: 'li',
		//next: '#again a',
		duration: 300,
		force: true,
		offset: 0,
		exclude: 3,
		cycle: true,
		interval: 5000,
		event: 'mouseover',
		constant: false,
		easing: 'easeInOutQuad'
	});
	
	$('.container, #a-box').hover(function(){
		$(this).stop().trigger('stop');
	},function(){
		$(this).stop().trigger('start');
	});

});