﻿// *************************************************************************
// *                                                                       *
// * Pentia A/S                                                            *
// * http://www.pentia.dk/                                                 *
// *                                                                       *
// * Authors: as/Asim J Sikandar                                           *
// *          ts/Thomas Stern                                              *
// *                                                                       *
// * E-Mail: dev@pentia.dk                                                 *
// *                                                                       *
// *                                                                       *
// * Copyright(C) Pentia, 1998 - 2008. All rights reserved (R).            *
// *                                                                       *
// *                                                                       *
// * LEGAL NOTICE: This is unpublished proprietary source code of Pentia.  *
// * The contents of this file are protected by copyright laws and         *
// * international copyright treaties, as well as other intellectual       *
// * property laws and treaties. These contents may not be extracted,      *
// * copied, modified or redistributed either as a whole or part thereof   *
// * in any form, and may not be used directly in, or to assist with, the  *
// * creation of derivative works of any nature without prior written      *
// * permission from Pentia. The above copyright notice does not           *
// * evidence any actual or intended publication of this file.             *
// *                                                                       *
// *************************************************************************

$(document).ready(function () {
  $('#Menu #Sections .Content').hide();
  $('#Menu div.Tabs ul li:first').addClass('active');
  $('#Menu #Sections .Content:first').show();

  $("#Menu div.Tabs ul li").click(function () {
    $("#Menu div.Tabs ul li").removeClass("active");
    $(this).addClass("active");
    $('#Menu #Sections .Content').hide();
    var activeRef = $(this).find("a").attr("href");
    var fullActiveRef = '#' + activeRef.substring(9, activeRef.length);
    $(fullActiveRef).show();
    return false;
  });
});

