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