function switchStyle(){
  // return array of all DIV elements
  var divs = document.getElementsByTagName("div");
  // Iterate through all DIVs in array
  for(var i = 0; i < divs.length; i++){
    // If current DIV is using "textDefault" styling,
    // change it to use "textAlternate" styling
    if(divs[i].className == "textDefault")
      divs[i].className = "textAlternate";
    // If current DIV is using "textAlternate" styling,
    // change it back to use "textDefault" styling
    else if(divs[i].className == "textAlternate")
      divs[i].className = "textDefault";
  }
}

function switchStyleDirections(){
  // return array of all DIV elements
  var divs = document.getElementsByTagName("div");
  // Iterate through all DIVs in array
  for(var i = 0; i < divs.length; i++){
    // If current DIV is using "textDefault" styling,
    // change it to use "textAlternate" styling
    if(divs[i].className == "textDefaultDirections")
      divs[i].className = "textAlternateDirections";
    // If current DIV is using "textAlternate" styling,
    // change it back to use "textDefault" styling
    else if(divs[i].className == "textAlternateDirections")
      divs[i].className = "textDefaultDirections";
  }
}

function switchStyleAas(){
  // return array of all A elements
  var aas = document.getElementsByTagName("span");
  // Iterate through all DIVs in array
  for(var i = 0; i < aas.length; i++){
    // If current DIV is using "textDefault" styling,
    // change it to use "textAlternate" styling
    if(aas[i].className == "aasDefault")
      aas[i].className = "aasAlternate";
    // If current DIV is using "textAlternate" styling,
    // change it back to use "textDefault" styling
    else if(aas[i].className == "aasAlternate")
      aas[i].className = "aasDefault";
  }
}

function switches2(){
	switchStyleAas();
	switchStyle();
}

function switches3(){
	switchStyleAas();
	switchStyleDirections();
}
	
