﻿/************************ Function that displays more or less text   *********************/

$(document).ready(function () {
    //hide the all of the elements with class moretext
    $(".moretext").hide();

    //show the more link for users with javascript enabled
    $(".morelesslink, .morelesslink_dvd").show();

    //toggle the content to be displayed
    $(".morelesslink, .morelesslink_dvd").click(function () {

        if ($(this).prev(".moretext").is(":hidden")) {
            $(this).html("read less&nbsp;&nbsp;");
            $(this).prev(".moretext").slideToggle(600);
            $(this).addClass("less");
            $(this).removeClass("more");
        } else {
            $(this).html("read more");
            $(this).prev(".moretext").slideToggle(600);
            $(this).addClass("more");
            $(this).removeClass("less");
        }

    });
});
