﻿var header = '<img border="0" src="images/HeeHaw.JPG" alt="Hee Haw Home Poker League" title="Hee Haw Home Poker League" width="874" height="87">';
var nextGame = 'Next Game:  1/9 at 6:45pm';
var nextBountyIMG = '<img border="0" src="images/Target_Jason.JPG" alt="Next Bounty: Jason" title="Next Bounty: Jason" width="150" height="150">';
var copyRight = 'Notice: All content of this site &copy; 2003-2010, RiveredAgain.com (unless otherwise specified).';
var seasonPrizeFund = '$0'
var jackpotPrizeFund = '$0'
var value25 = '$0'
var value72 = '$0'

TargetDate = "1/9/2010 11:59 PM";

BackColor = "white";
ForeColor = "maroon";
CountActive = true;
CountStepper = -1;
LeadingZero = false;
DisplayFormat = "(in %%D%% days)";
FinishMessage = "(in 0 days)";

var menuItems = new Array('Home','index.htm','Schedule & Results','results.htm','Rules','rules.htm','Prizes & Jackpots','prizes.htm','Poker Resources','resources.htm','Past Results','results_past.htm', 'About Us','about.htm');
             
function buildMenu(pageName){
    var myMenu = document.getElementById("menuTable");
    var aLink, theTR, theTD, theTB;
    
    theTB = document.createElement("tbody");
    
    var nCount = menuItems.length;
    nCount = nCount/2;
    
    var i = 0
    for (x=1;x<=nCount;x++){
        theTR = document.createElement("tr");
        theTD = document.createElement("td");
        
        if (menuItems[i + 1] == pageName){
            //No Link
            theTD.className = "mainLinks";
            theTD.appendChild(document.createTextNode(menuItems[i]))
        }else{
            //Create Link
            aLink = document.createElement("a");
            aLink.setAttribute('href',menuItems[i + 1]);   
            aLink.appendChild(document.createTextNode(menuItems[i])); 
            aLink.className = "mainLinks";
            theTD.appendChild(aLink);
        }
        theTR.appendChild(theTD);
        theTB.appendChild(theTR);
        
        i = i + 2;
    }
    myMenu.appendChild(theTB)
} 

