﻿

//    var headline_count;
//    var headline_interval;
//    var old_headline = 0;
//    var current_headline = 0;

$(document).ready(function() {
    //text rotator
    //headline_count = $(".txtRotate li").size();
    //$('.txtRotate li').css('display', 'none');
    //$(".txtRotate li:eq(" + current_headline + ")").css('display', 'block');
    //headline_interval = setInterval(headline_rotate, 5000); //time in milliseconds

    //tab section
    var $tabz = $('ul.nav li');
    var $cont = $('.slideSection div.tabs');
    $(".slideSection").children("div.tabs:not(#tab1)").hide();

    var $activeTab = $('.slideSection ul li');
    $($activeTab).fadeIn("fast");
    hei = $($activeTab).height();

    $(".slideSection").children("div.tabs.#tab1").addClass("selected");
    $activeTab = $(this).find("a.aboutLinks").attr("rel");
    $($activeTab).fadeIn("slow");
    hei = $($activeTab).height();
    $('.slideSection').stop().animate({ height: hei + 10 }, 'slow');

    $('ul.nav li:not(.noClick)').click(function() {
        $($cont).hide();
        $($tabz).removeClass("selected");
        $(this).addClass("selected");
        $activeTab = $(this).find("a.aboutLinks").attr("rel");
        $($activeTab).fadeIn("slow");
        hei = $($activeTab).height();
        $('.slideSection').stop().animate({ height: hei + 10 }, 'slow');
    });

    $('.systemTbl tr:first td').css('font-weight', 'bold');
    $('.systemTbl tr').find('td:first').css('font-weight', 'bold');
    $('.systemTbl tr').find('td:second').css('background-color', '#d7e9f8');
    $('.systemTbl tr').find('td.third').css('background-color', '#c3c4f8');
});

//    function headline_rotate() {
//    current_headline = (old_headline + 1) % headline_count; 
//    $(".txtRotate li:eq(" + old_headline + ")").css('display','none');
//    $(".txtRotate li:eq(" + current_headline + ")").fadeIn("slow");  
//    old_headline = current_headline;
//    }


