Shadowbox.loadSkin('classic', '/public/plugins/shadowbox/skin');
Shadowbox.loadLanguage('pl', '/public/plugins/shadowbox/lang');
Shadowbox.loadPlayer(['img', 'qt'], '/public/plugins/shadowbox/player');

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};
});


window.addEvent('domready', Shadowbox.init);

