
/*******************************************************************************
* CONTROL Link
********************************************************************************/
function goTo(val){
  switch(val){
    case 1: window.location = "index.htm"; break;
    case 2: window.location = "team.htm"; break;
    case 3: window.location = "media.htm"; break;
    case 4: window.location = "schedule.htm"; break;
    case 5: window.location = "sponsors.htm"; break;
    case 6: window.location = "contact.htm"; break;
    case 7: window.location = "http://www.frostys.com/"; break;
    case 8: window.location = "http://www.crescenttavern.com/"; break;
    case 9: window.location = "http://www.abbotttool.com/"; break;
    case 10: window.open("media/marlin2007/index.html"); break;
    case 11: window.open("media/marlin2008/index.html"); break;
    case 12: window.open("media/BriefHistory.pdf","resizable,scrollbars"); break;
    case 13: window.open("media/AnglerProfileJeziorski.pdf","resizable,scrollbars"); break;
    case 14: window.location = "http://www.bluewatermovements.com/"; break;
    case 15: window.location = "http://www.keywestmarlin.com/"; break;
    case 16: window.location = "http://www.bluewatermovements.com/"; break;
    case 18: window.location = "http://www.pfbchicago.com/"; break;
    case 19: window.open("media/billfishingMagazine09.pdf","resizable,scrollbars"); break;
    case 20: window.location = "http://www.millsvanlines.com/"; break;
    case 21: window.open("media/marlin2010/index.html"); break;
    case 22: window.location = "http://www.bluewatermovements.com/salifish_challenge_schedeule/"; break;
    case 23: window.location = "http://www.floridasportsman.com/tournaments/saltwater/"; break;
    case 24: window.open("media/sailfish2011/index.html"); break;
    case 99: window.location = "error.htm"; break;
  }
}

/*******************************************************************************
* CONTROL
* Change button image for mouseover and mouseout
* Change site page on mousedown
* go to selected page
********************************************************************************/
function init(){
  var getObject = document.getElementById('buttons');
  var btnTag = getObject.getElementsByTagName('td');
  for(var i=0; i<btnTag.length; i++){
    btnTag[i].onmouseover = function(){
      this.style.backgroundImage = "url(images/" + this.id + ".gif)";
    }
    btnTag[i].onmouseout = function(){
      this.style.backgroundImage = "url(images/spacer.gif)";
    }
    btnTag[i].onmousedown = function(){
      if(this.id == 'btn1') goTo(1);
      else if(this.id == 'btn2') goTo(2);
      else if(this.id == 'btn3') goTo(3);
      else if(this.id == 'btn4') goTo(4);
      else if(this.id == 'btn5') goTo(5);
      else if(this.id == 'btn6') goTo(6);
      else goTo(99);

    }
  }
};











