﻿jQuery.extend({
    uniqueArray: function(a) {
        temp = new Array();
        for (i = 0; i < a.length; i++) {
            if (!jQuery.contains(temp, a[i])) {
                temp.length += 1;
                temp[temp.length - 1] = a[i];
            }
        }
        return temp;
    },
    contains: function(a, e) {
        for (j = 0; j < a.length; j++) if (a[j] == e) return true;
        return false;
    }
});