function sectionbox ( box, offset, state ){ Element.setStyle( box, {backgroundPosition: offset + ' !important'} ); if(state == 'over'){ new Effect.Opacity(box, {duration:0.60, from:0.15, to:0.8}); }else{ //new Effect.Opacity(box, {duration:0.1, from:1.0, to:0.8}); } }