if (typeof trapeze == 'undefined') trapeze = new Object();

trapeze.images = {

    preload : function(image_path) {
        this.preloaded.push(document.createElement('img'));
        this.preloaded[(this.preloaded.length - 1)].setAttribute('src', image_path);
    },
    
    preload_images: function (selector) {
        $(selector).each(function(){
            trapeze.images.preload($(this).attr('rel'));
        });
    },
    
    init : function() {
        this.preload_images('.logo-image');
    },
    
    preloaded : new Array()
}


$(document).ready(function(){
    trapeze.images.init();
});
