$(function() {
	
	if($('.home_feat_item').length != 0){
		$('.home_feat_item').cycle({
			fx:		'fade',
			timeout:	5000,
			speed:	0,
			after:	onAfter
		});
		$('.feat_pod_left').cycle({
			fx:		'fade',
			timeout:	0,
			speed:	1000,
			after:	onAfter
		});
		$('.feat_pod_middle').cycle({
			fx:		'fade',
			timeout:	0,
			speed:	1000,
			after:	onAfter,
			cleartype: true,
			cleartypeNoBg: true
		});
		$('.feat_pod_right').cycle({
			fx:		'fade',
			timeout:	0,
			speed:	1000,
			after:	onAfter
		});
	}
	

	
});

function onAfter(){
	//$('div.title').append('---('+$(this).attr('id')+')---');
	
	if($(this).attr('class') == 'feat_img'){
		$('.feat_pod_left').cycle('next');
	}else if($(this).parent().attr('id') == 'feat_pod_left'){
		$('.feat_pod_middle').cycle('next');
	}else if($(this).parent().attr('id') == 'feat_pod_middle'){
		$('.feat_pod_right').cycle('next');
	}
}





