/*function slideSwitch() {
	var $active = $('#showcaseimgwrapup div.active');

	if ( $active.length == 0 ) $active = $('#showcaseimgwrapup div:last');

	var $next =  $active.next().length ? $active.next()
		: $('#showcaseimgwrapup div:first');

	$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() {
	setInterval( "slideSwitch()", 5000 );
	$first = $('#showcaseimgwrapup div:first');
	$first.addClass('active');
	
});
*/

function slideSwitch(tmpbannercnt)
{
  
  if(tmpbannercnt=="banner1")
  {
	  $('.bosbox-content-box-stacker-purple').stop().animate({
		opacity: 0.01
	  }, 800, function() {
		// Animation complete.
	  });
	  
	  $('.bosbox-content-box-iso-yellow').stop().animate({
		opacity: 1
	  }, 800, function() {
		// Animation complete.
	  });
  }
  else
  {
	 $('.bosbox-content-box-iso-yellow').stop().animate({
		opacity: 0.01
	  }, 800, function() {
		// Animation complete.
	  });
	  
	  $('.bosbox-content-box-stacker-purple').stop().animate({
		opacity: 1
	  }, 800, function() {
		// Animation complete.
	  }); 
  }
  
  //alert(tmpbannercnt);
  clearInterval(interval); 
  
  if(tmpbannercnt=="banner1")
  	tmpbannercnt="banner2";
  else	
  	tmpbannercnt="banner1";
	
  interval=setInterval( "slideSwitch('"+tmpbannercnt+"')", 8000 );
} 

$(function() {
	
	interval=setInterval( "slideSwitch('banner1')", 8000 );
});

