ol#toc {
    display: block;
    height: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 100%;
}

ol#toc a {
    background: #1b1c19;
    color: #fff;
    display: block;
    float: left;
    height: 1em;
    padding: 16px 12px 0 12px;
    text-decoration: none;
}

ol#toc a:hover {
    background: #222 url("../images/hepa-bg.png") bottom no-repeat;
    height: 1em;
    padding: 16px 12px 10px 12px;
    line-height: 100%;
}

ol#toc a:hover span {
}

ol#toc li {
    float: left;
    margin: 0 1px 0 0;
}

ol#toc li.current a {
    background-color: #bb0000;
    padding: 15px 20px 8px 20px;
    color: #fff;
    font-size: 1.4em;
}

ol#toc li.current a:hover {
    background-image: none;
    padding: 12px 20px 11px 20px;
}

@media only screen and (min-width: 768px) and (max-width: 959px)
{
    ol#toc li.current a {
        padding: 12px 20px 6px 20px;
        font-size: 1.28em;
    }
    ol#toc a:hover {
        background: #222 url("../images/hepa-bg.png") bottom no-repeat;
        height: 1em;
        padding: 16px 12px 6px 12px;
    }
}

@media only screen and (max-width: 767px)
{
    ol#toc li.current a {
        padding: 12px 10px 6px 10px;
        font-size: 1.1em;
    }
    ol#toc a:hover {
        background: #222 url("../images/hepa-bg.png") bottom no-repeat;
        height: 1em;
        padding: 12px 5px 6px 5px;
    }

    ol#toc a {
        padding: 12px 5px 6px 5px;
    }
}

@media only screen and (max-width: 767px)
{
    ol#toc li {
        float: left;
        width: 50%;
        text-align: center;
        margin:0;
        padding: 0;
    }
    ol#toc a:link {
        float: left;
        width: 100%;
        height: auto;
        padding: 10px 0 6px 0;
    }
    ol#toc {
        display: block;
        list-style: none;
        padding: 0;
    }
    ol#toc a:hover {
        background: none;
        padding: 10px 0 6px 0;
    }

    ol#toc li.current a {
        width: 100%;
        height: 20px;
        padding: 10px 0px 4px 0px;
        font-size: 1.1em;
    }
    ol#toc li.current a:hover {
    background-image: none;
    padding: 10px 0px 4px 0px;
    }

}