﻿jQuery(document).ready(function () {
  LargeInitTabControl();
});

function LargeInitTabControl() {
  LargeAddClickEvent();
  LargeInitShowActiveTab();
}

function LargeInitShowActiveTab(content) {
  jQuery(".LargeTabControl #TabControl div.Tabs ul li.Active")
  var activeRef = jQuery(".LargeTabControl #TabControl div.Tabs ul li.Active").find("a").attr("href");
  var activeRefString = activeRef.split("LargeTab=")[1]
  var fullActiveRef = '.LargeTabControl #' + activeRefString;

  jQuery(fullActiveRef).show();
}

function LargeAddClickEvent() {
  jQuery(".LargeTabControl #TabControl div.Tabs ul li").click(function () {
    jQuery(".LargeTabControl #TabControl div.Tabs ul li").removeClass("Active");
    jQuery(this).addClass("Active");
    jQuery('.LargeTabControl #TabControl #TabContent .Content').hide();

    var activeRef = jQuery(this).find("a").attr("href");
    var activeRefString = activeRef.split("LargeTab=")[1]
    var fullActiveRef = '.LargeTabControl #' + activeRefString;
    jQuery(fullActiveRef).show();
    return false;
  });
}




