// JavaScript Document
function modifyTuotenostot()
{
    //get tuotenosto -class height
    var tmp = 0;
    var t_nosto_hgt = 0;
    $(".tuotenosto").each(function (i) {
        tmp = $(this).height();
        if(tmp > t_nosto_hgt)
            t_nosto_hgt = tmp;
    });

    // set tuotenosto class height
    $(".tuotenosto").each(function (i) {
        $(this).css("height", t_nosto_hgt);
    });


    // get tuotenosto parent div height
    var tmp = 0;
    var t_nosto_hgt_inner = 0;
    $(".tuotenosto > div").each(function (i) {
        tmp = $(this).height();
        if(tmp > t_nosto_hgt_inner)
            t_nosto_hgt_inner = tmp;
    });

    // set tuotenosto parent div height
    $(".tuotenosto > div").each(function (i) {
        $(this).css("height", t_nosto_hgt_inner);
    });

}
function openRead(way)
{

    if(way == "less")
    {
        $("#prodinfoMore").css("display","none");
        $("#readMoreLink").css("display", "block");
        $("#readLessLink").css("display","none");
    }
    else if(way == 'more')
    {
        $("#prodinfoMore").css("display","block");
        $("#readMoreLink").css("display", "none");
        $("#readLessLink").css("display","block");
    }
}
