var theslidedir = "down";
function selectSlideDir(thediv){
    var thedirimg = document.getElementById('newsBtn');
    
    if(theslidedir == "down"){
        theslidedir = "up";
		thedirimg.src = "images/nav/btn_news_up.gif";
        slidedown(thediv);
    } else if(theslidedir == "up"){
        theslidedir = "down";
		thedirimg.src = "images/nav/btn_news_down.gif";
        slideup(thediv);
    } else {}
}

function showhidediv(oDiv){
    var oDiv = document.getElementById("panel_" + oDiv);
    if(oDiv.style.display != "block"){
        oDiv.style.display = "block";
    } else {
        oDiv.style.display = "none";
    }
}
function showhide(thediv){
    var oDiv = document.getElementById(thediv);
    if(oDiv.style.display != "block"){
        oDiv.style.display = "block";
    } else {
        oDiv.style.display = "none";
    }
}