jQuery.loadedImages = [];
jQuery.fn.preloadImages = function() {
    return this.each(function(){
        try {
            lnk = (this.tagName == null)? this : null;

            if (lnk === null && typeof this == 'object') {
                switch (this.tagName) {
                    case 'IMG'  :
                        lnk = this.src;
                        break;
                    default     :
                        back = $(this).css('background-image');
                        if (typeof back == 'string' && back.substr(0, 3) == 'url') {
                            m = /^.+\(\"(.+)\"\)$/.exec(back);
                            if (m == null || m.length < 2)
                                back = back.replace('url(', '').replace(')', '').replace(/\"/, '');
                            else back = m[1];
                            lnk = back;
                        }
                }
            }
        } catch (e) {}

        if (lnk !== null && jQuery.inArray(lnk, jQuery.loadedImages) < 0) {
            jQuery.loadedImages.push(lnk);

            obj = new Image(1, 1);
            $(obj).attr('src', lnk);
        }
    });
}
$(document).ready(function(){
    $('#footer .links > li:last-child').addClass('last');
});
