window.addEvent('domready', function() {
    //preloader
    var preLoadArray = new Array();
    var preLoadNum = 0;

    // Rollover script
    $$('img.roll', 'input.roll').each(function(el){
        // Preloader
        preLoadArray[preLoadNum] = new Image();
        preLoadArray[preLoadNum].src = el.src.replace(el.src.replace('-off.', '-over.'));
        preLoadNum++;

        el.addEvent('mouseover',function(){
            this.setAttribute('src',this.src.replace('-off.', '-over.'));
        });

        el.addEvent('mouseout',function(){
            this.setAttribute('src',this.src.replace('-over.','-off.'));
        });
    });
});