// JavaScript Document
var c=1;
var t;
var timer_is_on=0;

function callSwap(number){
	c= number;
	document.getElementById('s3_product_swap_top01').style.display = "none";	
	document.getElementById('s3_product_swap_top02').style.display = "none";
	document.getElementById('s3_product_swap_top03').style.display = "none";
	document.getElementById('s3_product_swap_top04').style.display = "none";
	document.getElementById('s3_product_swap_top05').style.display = "none";
	
	document.getElementById('s3_product_swap_top0'+number).style.display = "block";
}

function timedCount()
{
callSwap(c);
if(c < 5){
	c=c+1;
} else {
	c = 1;	 
}

t=setTimeout("timedCount()",15000);
}

function timedSwap()
{
if (!timer_is_on)
  {
  timer_is_on=1;
  timedCount();
  }
}
