function slideSwitch(imgidno) {
	
  $('.image_indextopright').stop().animate({
    opacity: 0.01
  }, 1000, function() {
    // Animation complete.
  });
  
  
  $('#banner'+imgidno).stop().animate({
    opacity: 1
  }, 1000, function() {
    // Animation complete.
  });
  
  imgidno=imgidno+1;
  if(imgidno>3)
  	imgidno=1;

  clearTimeout(SetTimerId);
  SetTimerId=setInterval( "slideSwitch("+imgidno+")", 5000 );
	
	/*
	var $active = $('#showcaseimgwrapup div.active');

	if ( $active.length == 0 ) $active = $('#showcaseimgwrapup div:last');

	var $next =  $active.next().length ? $active.next()
		: $('#showcaseimgwrapup div:first');

	//alert($next);

	$active.addClass('last-active');

	$active.css({opacity: 1.0})
		.addClass('active')
		.fadeTo(1000, 0, function() {
			$active.removeClass('active last-active');
		});

	$next.css({opacity: 0.0})
		.addClass('active')
		.fadeTo(1000, 1);
		*/
}

$(function() {
	SetTimerId=setInterval( "slideSwitch(2)", 5000 );
	$first = $('#showcaseimgwrapup div:first');
	$first.addClass('active');
	
	
});
