﻿$(document).ready(function() {

    
    var origColor = "";
    var origForeColor = "";
    //$("#logo").supersleight();


    if (document.getElementById("RandomContent") != null) {
        $("#RandomContent").cycle({ cleartypeNoBg: true, timeout: 18000, speed: 1000 });
    }
    $("#testimonials").css("visibility", "visible");

    $('.contentScroll').jScrollPane();

    $(".topicLink").hover(function() {
        $(this).css("background-color", "white");
        $(this).css("background-image", "none");
    }, function() {
        $(this).css("background-image", "url(/images/menubg.png)");
    });

    $(".topicLinkSelected").hover(function() {
        $(this).css("background-color", "white");
        $(this).css("background-image", "none");
    }, function() {
        $(this).css("background-color", "#e9edc0");
    });

    $("[class^=navigationLink]").hover(function() {
        origColor = $(this).css("background-color");
        $(this).css("background-image", "url(/images/menubg.png)");
        $(this).children().children().children("a").css("color", "#000000");
        $(this).children().children("div.topics").show();

    }
 , function() {
     $(this).css("background-image", "");
     $(this).children().children().children("a").css("color", origForeColor);
     $(this).children().children("div.topics").hide();
 });


});