function selected_gallery ( box, offset, selgallery, a, b, c ){ //alert(offset); $('next_gallery').value = selgallery; Element.setStyle( box, {backgroundPosition: offset + ' !important'} ); new Effect.DropOut( 'gallery_sel' + a , { duration: 0.70 } ); new Effect.DropOut( 'gallery_sel' + b , { duration: 0.95 } ); new Effect.DropOut( 'gallery_sel' + c , { duration: 1.15, queue: {position:'end', scope: 'gallery'} } ); new Effect.Opacity( box , { duration:0.5, from:1.0, to:1.0, queue: {position:'end', scope: 'gallery'}} ); new Effect.Opacity( box , { duration:1.25, from:0.5, to:1.0, afterFinish: goto_gallery, queue: {position:'end', scope: 'gallery'}} ); Element.setStyle( box, {backgroundPosition: offset + ' !important'} ); } function goto_gallery ( ){ var next_gallery = $('next_gallery').value; window.open('http://www.rebelracingwheels.com/index.php/gallery/' + next_gallery , '_self'); } function show_gallery_window ( img ){ $('gallery_display_img').innerHTML = 'image'; new Effect.Appear( 'gallery_window' , { duration:0.5, from:0.0, to:0.25, queue: {position:'end', scope: 'galleryimg'}} ); new Effect.BlindDown( 'gallery_window_image' , { duration:1.25, from:0.0, to:1.0, queue: {position:'end', scope: 'galleryimg'}} ); } function hide_gallery_window ( ){ new Effect.DropOut( 'gallery_window_image' , { duration:0.5, queue: {position:'end', scope: 'galleryimg'}} ); new Effect.Fade( 'gallery_window' , { duration:0.70, queue: {position:'end', scope: 'galleryimg'}} ); }