﻿function show(theyear) {
    if (document.getElementById("theyearcheck").innerHTML != theyear) {
        document.getElementById("theyearcheck").innerHTML = theyear;
        document.getElementById("theshow").src = document.getElementById("pic" + theyear).src;
        if (document.getElementById("container").style.backgroundImage != "url('20/images/timeline/Twenty-half_20.png')") {
            document.getElementById("container").style.backgroundImage = "url('20/images/timeline/Twenty-half_20.png')";
        }
        document.getElementById("thecopybox").innerHTML = document.getElementById("text" + theyear).innerHTML.toString();
        //document.getElementById("theshow").style.height = "150px";
        if (theyear == "2000") {
            document.getElementById("theshow").style.height = "1px";
            document.getElementById("thecopybox").style.width = "610px";
        }
        else {
            document.getElementById("theshow").style.height = "150px";
            document.getElementById("thecopybox").style.width = "510px";
        }
    }
}

function unshow() {
}

function colorthis(theyeartocolor) {
    document.getElementById(theyeartocolor).style.color = "yellow";
}

function uncolorthis(theyeartocolor) {
    document.getElementById(theyeartocolor).style.color = "#c3c3c3";
}

function backtobasic() {
    document.getElementById("theshow").src = "20/images/timeline/Twenty.png";
    document.getElementById("container").style.backgroundImage = "url('20/images/timeline/Twenty_20.png')";
    document.getElementById("thecopybox").innerHTML = "";
    document.getElementById("timelinewindow").style.backgroundImage = "url('20/images/clear.gif')";
    document.getElementById("theshow").style.height = "200px";
}
var vidvar = new Array();
vidvar[1] = "<iframe width='600' height='390' src='http://www.youtube.com/embed/GTDpsRx2qD8?autohide=1' frameborder='0' allowfullscreen></iframe>";
vidvar[2] = "<iframe width='600' height='390' src='http://www.youtube.com/embed/tl9GRbksXUc?autohide=1' frameborder='0' allowfullscreen></iframe>";
vidvar[3] = "<iframe width='600' height='390' src='http://www.youtube.com/embed/ajmAYhErNUc?autohide=1' frameborder='0' allowfullscreen></iframe>";

function runvideo(thevid) {
    document.getElementById("videoplay").style.display = 'none';
    document.getElementById("BHCRHODESvideo1").innerHTML = "";
    document.getElementById("BHCRHODESvideo2").innerHTML = "";
    document.getElementById("BHCRHODESvideo3").innerHTML = "";
    document.getElementById("BHCRHODESvideo1").style.display = 'none';
    document.getElementById("BHCRHODESvideo2").style.display = 'none';
    document.getElementById("BHCRHODESvideo3").style.display = 'none';
    document.getElementById("BHCRHODESvideo" + thevid).style.display = 'inline';
    document.getElementById("BHCRHODESvideo" + thevid).innerHTML = vidvar[thevid];
    document.getElementById("videoplay").style.display = 'inline';
}
function closevideo(thevid) {
    document.getElementById("videoplay").style.display = 'none';
    document.getElementById("BHCRHODESvideo1").style.display = 'none';
    document.getElementById("BHCRHODESvideo2").style.display = 'none';
    document.getElementById("BHCRHODESvideo3").style.display = 'none';
    document.getElementById("BHCRHODESvideo1").innerHTML = "";
    document.getElementById("BHCRHODESvideo2").innerHTML = "";
    document.getElementById("BHCRHODESvideo3").innerHTML = "";
}

