﻿/// <reference path="jquery-1.3.2.min.js" />

(function($) {
    $.fn.AltItems = function(includeFirst) {
        return this.each(function() {
            if (!includeFirst) {
                $(this).children(":even").not(":first").addClass("alt");
            }
            else {
                $(this).children(":odd").addClass("alt");
            }
        });
    }
    $(document).ready(function() {
        $(".rangeList").AltItems();
        $(".result").AltItems(true);
    });
})(jQuery);