﻿var current = 0;

function Left()
{
    var rows = $("div.scroll > div").size();
    if (current > 0)
    {
        $("div.scroll div:nth-child(" + current + ")").animate({ width: 'show', opacity: 'show' }, 750);
        current = current - 1;
    }
}

function Right()
{
    var rows = $("div.scroll > div").size();
    if (current < (rows - 1))
    {
        current = current + 1;
        if (current < 1) { current = 1; }
        $("div.scroll div:nth-child(" + current + ")").animate({ width: 'hide', opacity: 'hide' }, 750);
    }
}

