﻿$(document).ready(function() {

    $("#TabUserRecomended, #TabMostDiscussed, #TabWatched").hide();

    $(".cs_rightBtn").click(function() {
        var tabId = $(this).parent().attr('id');
        ShownPages[tabId]++;
        SendShownPageToWebservice(GetShownIndex(tabId), tabId);
    });
    $(".cs_leftBtn").click(function() {
        var tabId = $(this).parent().attr('id');
        ShownPages[tabId]--;
    });
    
    $(".explanation .navigation a").click(function() {
        $(".explanation img").hide();
        $(".explanation img." + $(this).attr("rel")).show();
        $(this).parent(".navigation").removeClass("expl1 expl2 expl3 expl4").addClass($(this).attr("rel"));
    });
});

