function switchFeature(target) {

	jqN('.feature_button').removeClass('current');
	jqN(target).addClass('current');
	jqN('#main_feature > .feature_image_container').stop(true, true).fadeOut();

	jqN('#largeimage_'+target.id).stop(true, true).fadeIn();

	jqN('.feature_button > .button_hover').stop(true, true).fadeOut();
	jqN('.feature_button > .button').stop(true, true).fadeIn();
	jqN('.feature_button > .thumbnail').addClass('shadow');

	jqN(target).children('.button').stop(true, true).fadeOut();
	jqN(target).children('.button_hover').stop(true, true).fadeIn();
	jqN(target).children('.thumbnail').removeClass('shadow');		
	
}

function setRotate() {
	return(window.setInterval(function() {
		var nb = jqN('.feature_button.current').next();
		if (nb.length == 0) {
			nb = jqN('.feature_button:first');
		}
		switchFeature(nb[0]);
	}, 10000));
}

function closeSuperbanner() {
	loadFeatures();
}

function loadFeatures() {
	jqN('#superbanner_container').hide();
	jqN('#superbanner_container').html('');
	jqN('#feature_container').show();
	jqN('#video_unit_container').show();
	loadVideoAutoplay(jqN('.video_item:first')[0]);
}
