// rollover script
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.', '_on.'));
        preLoadNum++;

        el.addEvent('mouseover',function(){
            this.setAttribute('src',this.src.replace('_off.', '_on.'));
        });

        el.addEvent('mouseout',function(){
            this.setAttribute('src',this.src.replace('_on.','_off.'));
        });
    });
});

// smooth scroll
window.addEvent('domready',function() { 
			//smooooooth scrolling enabled
			new SmoothScroll({ duration:700 }, window); 
		});