$(document).ready(function () {
    $.preLoadImages("/images/logoBox_Wikipedia_normal.jpg", "/images/logoBox_IDC_over.jpg", "/images/logoBox_Microsoft_over.jpg", "/images/logoBox_Gartner_over.jpg", "/images/logoBox_Google_over.jpg", "/images/logoBox_VMware_over.jpg", "/images/logoBox_Symantec_over.jpg", "/images/logoBox_CNET_over.jpg", "/images/MacBox_OptionBack.jpg");

    GetTweets("#Nube OR #CloudComputing");
    $("#DefineCC_Wikipedia").fadeIn();

    $(".categories_Box").hover(function () {
        FadeOut($(this));
    });

    $("#categories_Container").hover(function () { }, function () {
        FadeIn();
    });

    $("#bannerExchangeButton").hover(function () {
        $(this).attr("src", $(this).attr("src").replace("normal.png", "over.png"));
    }, function () {
        $(this).attr("src", $(this).attr("src").replace("over.png", "normal.png"));
    });

    $(".macBox_Option,.ccDefinition_Logo").mouseenter(function () {
        $(".ccDefinition").hide();
        var selected = $(this).attr("brand");
        $("#DefineCC_" + selected).fadeIn("fast");
        $(".ccDefinition_Logo").each(function () {
            $(this).html($(this).html().replace("over", "normal"));
        });
        var overBox = $("#logoBox_" + selected).html().replace("normal", "over");
        $("#logoBox_" + selected).html(overBox);
    });
});
