  // Gransdon of Suckerfish Revisited
  //   A modified combination of the Son of Suckerfish Dropdowns and the TJKDropDown Menu
  //   © Mark Voss
  //   http://www.markvoss.net
  //
  // TJKDropDown Menu
  //   © Thierry Koblentz
  //   http://www.tjkdesign.com/articles/dropdown/
  //
  // Son of Suckerfish Dropdowns
  //   © Patrick Griffiths
  //   http://www.htmldog.com/articles/suckerfish/dropdowns/
  //
  // License: Creative Commons Attribution 3 License
  //   http://creativecommons.org/licenses/by-nc/3.0/
  //
function swap(){this.className="sfhover"}
function swapBack(){this.className="trigger"}
function swapFocus() {this.parentNode.parentNode.parentNode.className="sfhover"}
function swapBlur() {this.parentNode.parentNode.parentNode.className="trigger"}
function subSwapFocus() {this.parentNode.parentNode.parentNode.parentNode.parentNode.className="sfhover"; this.parentNode.parentNode.parentNode.className="sfhover"}
function subSwapBlur() {this.parentNode.parentNode.parentNode.parentNode.parentNode.className="trigger"; this.parentNode.parentNode.parentNode.className="trigger"}
function SetEvents(){
if (document.getElementById){
var LI = document.getElementsByTagName("li");
var zLI= LI.length;
for(var i=0;i<zLI;i++){
if (LI[i].parentNode.parentNode.className=="trigger") {
LI[i].firstChild.onfocus=swapFocus;
LI[i].firstChild.onblur=swapBlur;
}
if (LI[i].parentNode.parentNode.parentNode.parentNode.className=="trigger" && LI[i].parentNode.parentNode.className=="trigger") {
LI[i].firstChild.onfocus=subSwapFocus;
LI[i].firstChild.onblur=subSwapBlur;
}
if(LI[i].className=="trigger"){
LI[i].onmouseover=swap;
LI[i].onmouseout=swapBack
}
}
}
}
window.onload = SetEvents;
