// version.js, based on SeeSaw 1.0
function Version(sections) {
    var dotversion = ".version."

      // Tag shows unless already tagged
      $.each(sections.show, function(){$("span.version." + this).not(".versionshow,.versionhide").filter(".hidepart").addClass("versionshow").end().filter(".showpart").addClass("versionhide")})
      $.each(sections.show, function(){$("div" + dotversion + this).not(".versionshow,.versionhide").addClass("versionshow")})

      // Tag hides unless already tagged
      $.each(sections.hide, function(){$("span.version." + this).not(".versionshow,.versionhide").filter(".showpart").addClass("versionshow").end().filter(".hidepart").addClass("versionhide")})
      $.each(sections.hide, function(){$("div" + dotversion + this).not(".versionshow,.versionhide").addClass("versionhide")})

      // Show or hide according to tag
      $(".versionshow").removeClass("versionshow").filter("span").show().end().filter("div").show(0)
      $(".versionhide").removeClass("versionhide").filter("span").hide().end().filter("div").hide(0)
      }

$(document).ready(function() {
    var activedistro = ".electric"; //CHANGE THIS LINE TO CHANGE THE DISTRO DISPLAYED BY DEFAULT
    $("div.version").not(activedistro).hide();
    $("#electric").click();//CHANGE THIS LINE TO THE DISTRO DISPLAYED BY DEFAULT
    $("input.version:hidden").each(function(){var bg = $(this).attr("value").split(":"); $("div.version." + bg[0]).css("background-color",bg[1]).removeClass(bg[0])});
})

