var tabs = Array(
    "shopping",
    "drink_dance",
    "festival_events",
    "movies"
);

function init_tabs(){
    if(window.location.hash){
        hash = window.location.hash.split("/");
        if(typeof hash[1] == "undefined"){
            type = "shopping";
        } else {
            type = hash[1];
        }
    } else {
        type = "shopping";
    }
    for(var i in tabs){
        if(document.getElementById(tabs[i]).className == "button_on"){
            document.getElementById(tabs[i]).className = "button_off";
        }
    }
    var type_title  = type.replace("_","&");
    document.getElementById('page_title').innerHTML = type_title;
    document.getElementById(type).className = "button_on";
}
function mouse_over(id){
    document.getElementById(id).className = "button_on";
    document.getElementById(id).style.cursor = "click";
}

function mouse_out_feed(id){
    if(id != check_type()){
        document.getElementById(id).className = "button_off";
    }
    document.getElementById(id).style.cursor = "pointer";
}

function mouse_out(id){
    document.getElementById(id).className = "button_off";
    document.getElementById(id).style.cursor = "pointer";

}

function change_highlight(id){
    for(var i in tabs){
        if(document.getElementById(tabs[i]).className == "button_on"){
            document.getElementById(tabs[i]).className = "button_off";
        }
    }
    document.getElementById(id).className = "button_on";
}

