function tab(box, id, tab)
{
    if (box!=null)
    {
        tabc=1;
        temp_tab = document.getElementById("box"+id+"_tab"+tabc);
        while (temp_tab != null)
        {
            temp_content = document.getElementById("box"+id+"_content"+tabc);
            if (tabc==tab)
            {
                //aktivieren
                temp_tab.setAttribute("class","box_tab");
                temp_content.style.display = "";
            }
            else
            {
                //deaktivieren
                temp_tab.setAttribute("class","box_tab_inactive");
                temp_content.style.display = "none";
            }          
            tabc++;
            temp_tab = document.getElementById("box"+id+"_tab"+tabc);
        }
    }
}

var currt=1;
function sth(index)
{
    tc=1;
    temp=document.getElementById("switch_teaser"+tc);
    while (temp != null)
    {        
        if (tc==index)
        {
            //temp.style.display="";
            temp.setAttribute("class","switch_teaser");
        }
        else
        {
            //temp.style.display="none";
            temp.setAttribute("class","switch_teaser dhide");            
        }
        tc++; 
        temp=document.getElementById("switch_teaser"+tc);
    }
}

function str()
{
    sth(currt);
}

function stc(index)
{
    if (currt!=index){
    c=document.getElementById("switch_content"+currt);
    c.style.display="none";
    img=document.getElementById("switch_img"+currt);
    img.setAttribute("class","switch_navimg");
    currt=index;
    c=document.getElementById("switch_content"+index);
    c.style.display="";
    img=document.getElementById("switch_img"+index);
    img.setAttribute("class","switch_navimg switch_navimg_active");
    }
}




