Shadowbox.loadSkin('classic', '/storage/js/shadowbox/skin'); Shadowbox.loadLanguage('pl', '/storage/js/shadowbox/lang'); Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], '/storage/js/shadowbox/player'); window.addEvent('domready', Shadowbox.init); window.addEvent('domready', function() { new SmoothScroll({ duration: 1000 }, window); }); window.addEvent('domready', function() { //store titles and text $$('a.thetip').each(function(element,index) { var content = element.get('title').split('::'); element.store('tip:title', content[0]); element.store('tip:text', content[1]); }); //create the tooltips var tipz = new Tips($$('.thetip'),{ className: 'thetip', initialize: function(){ this.fx = new Fx.Tween(this.tip, {property: 'opacity', duration: 500, link: 'cancel'}).set(0); }, onShow: function () { this.fx.start(1); }, onHide: function() { this.fx.start(0); } }); var opts = {duration: 2000, steps: 3000, autostart:true}; });