﻿
function News() {
    PageMethods.RenderNews(NewsCallback);
}
function NewsCallback(html) {
    document.getElementById("NewsBar").innerHTML = html;
    document.getElementById("NewsLoading").innerHTML = "";
}
var selectedband = 1;
function NavSelect(s) {
    document.getElementById("Nav1").style.background = "url(img/1-off.gif)";
    document.getElementById("Nav2").style.background = "url(img/2-off.gif)";
    document.getElementById("Nav3").style.background = "url(img/3-off.gif)";

    document.getElementById("Nav" + s).style.background = "url(img/" + s + "-on.gif)";
    if (s == "1") {
        blendimage("TheBand", "Img1", "img/band_95.png", 1000);
        selectedband = 1;
    }

    if (s == "2") {
        blendimage("TheBand", "Img1", "img/band_ocr.png", 1000);
        selectedband = 2;
    }
    if (s == "3") {
        blendimage("TheBand", "Img1", "img/band_convention.png", 1000);
        selectedband = 3;
    }
}

function BandClick() {
    var href = "wiki.aspx?name=";
    if (selectedband == 1)
        href += "v95";
    if (selectedband == 2)
        href += "ocr";
    if (selectedband == 3)
        href += "convention";
    window.location = href;                     
} 

