function InitToolbarButtons(){
  var kids = document.getElementsByTagName('td');

  for (var i=0; i < kids.length; i++) {
    if (kids[i].className == "navbuttons") {
      kids[i].onmouseover = tbmouseover;
      kids[i].onmouseout = tbmouseout;
      kids[i].onmousedown = tbmousedown;
      kids[i].onmouseup = tbmouseup;
      kids[i].onclick = tbclick;
    }
  }
}

function tbmousedown(e){
  this.style.border = "inset 2px";
  //this.style.borderBottom = "inset 2px";
  //this.style.borderRight = "inset 2px";
  //this.style.borderLeft = "inset 2px";
  this.style.background = "#EFF1F2";
  this.style.color = "#9A999A";
  e.preventDefault();
}

function tbmouseup(){
  this.style.border = "solid 2px #FFFFFF";
 // this.style.borderBottom = "solid 2px #FFFFFF";
 // this.style.borderRight = "solid 2px #FFFFFF";
 // this.style.borderLeft = "solid 2px #FFFFFF";
  this.style.background = "#D9E5EA";
  this.style.color = "#666666";
}

function tbmouseout(){
  this.style.border = "2px solid #FFFFFF";
 // this.style.borderBottom = "2px solid #FFFFFF";
 // this.style.borderRight = "2px solid #FFFFFF";
 // this.style.borderLeft = "2px solid #FFFFFF";
}

function tbmouseover(){
  this.style.border = "2px outset #FFFFFF";
 // this.style.borderBottom = "2px outset #FFFFFF";
 // this.style.borderRight = "2px outset #FFFFFF";
 // this.style.borderLeft = "2px outset #FFFFFF";
}

function tbclick(){
	var myButton = this.id;
	switch(myButton){
	case 'home': {window.location.href = "index.aspx"; break}
	case 'mac':{window.location.href = "mac.aspx"; break}
	case 'pc':{window.location.href = "pc.aspx"; break}
	case 'web':{window.location.href = "web.aspx"; break}
	case 'about':{window.location.href = "about.aspx"; break}
	default: {window.location.href = "index.aspx";}
	}
}