function display(sID) {

	oObj = document.getElementById(sID);
	if (oObj) {
		oObj.style.display='inline';
	}
}

function hide(sID) {
	oObj = document.getElementById(sID);
	if (oObj) {
		oObj.style.display='none';
	}
}

function gettab(id){
	for (i=1;i<=6;i++)
	{
		if (id == i)
		{
			display("box_content"+i);
		}else{
			hide("box_content"+i);
		}
	}

}

function rotate(id,settime,sw){
	if (id >6){id=1;}
		gettab(id);
		pointer_active(id);
		id++;
		

		if (sw == 1)
		{timer = setTimeout("rotate("+id+","+settime+","+sw+")", settime);}
		
 
	
}

function pointer_active(id){
	for (i=1;i<=6;i++)
	{
		if (id == i)
		{
			 document.getElementById("li"+i).setAttribute("class", "active"); 
			 document.getElementById("li"+i).setAttribute("className", "active"); 
		}else{
			 document.getElementById("li"+i).setAttribute("class", ""); 
			 document.getElementById("li"+i).setAttribute("className", ""); 			
		}


	}

}

function getbanner(id){
	for (i=1;i<=6;i++)
	{
		if (id == i)
		{
			display("banner_content"+i);
		}else{
			hide("banner_content"+i);
		}
	}

}
