jQuery.noConflict();

jQuery(function() {

	// Feature slideshow
	jQuery('#feature_main>ul>li:first-child').show();
	jQuery('#feature_main_list>ul>li:first-child').addClass('current');
	setInterval("slideSwitch()", 7000);
});

function slideSwitch() {
	// Slide
	var $active = jQuery('#feature_main>ul>li:visible');
	if ($active.length == 0) {
		$active = jQuery('#feature_main>ul>li:last');
	}
	var $next = $active.next().length ? $active.next() : jQuery('#feature_main>ul>li:first');
	$next.fadeIn(1000);
	$active.fadeOut(1000);
	
	// Slides list
	var $active_list = jQuery('#feature_main_list>ul>li.current');
	if ($active_list.length == 0) {
		$active_list = jQuery('#feature_main>ul>li:last');
	}
	var $next_list = $active_list.next().length ? $active_list.next() : jQuery('#feature_main_list>ul>li:first');
	$next_list.addClass('current');
	$active_list.removeClass('current');
}
