    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<=5;i++)
    {
    if (id == i)
    {
    display("box_content"+i);
    document.getElementById("li"+i).className ='f13d2';
    }else{
    hide("box_content"+i);
    document.getElementById("li"+i).className ='f13c';
    }
    }

    }
	
    function rotate(id,settime){
    if (id >5){id=1;}
    gettab(id);
    id++;
    timer = setTimeout("rotate("+id+","+settime+")", settime);

    }
	  
	
	function clicktab(id){

    for (i=1;i<=5;i++)
    {
    if (id == i)
    {
    display("box_content"+i);
    document.getElementById("li"+i).className ='f13d2';
    }else{
    hide("box_content"+i);
    document.getElementById("li"+i).className ='f13c';
	hide("postlist");
    }
    }

    stoper();
    timer = setTimeout("rotate("+id+","+1000+")", 5000);
    }

    function stoper() {
    clearTimeout(timer);
    }
