window.addEvent ('domready', function () {
	domreadyGeneral ();

	$$('a[rel="lightbox-minis"]').slimbox({ width: "100%", height: '100%'/* Put custom options here */}, null, function(el) {
		return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
	});

	$$('.imgtip').each (function (el) {
		_tittxt = (el.get ('title')).split (' :: ');
		el.store ('tip:title', _tittxt[0]);
		el.store ('tip:text', (_tittxt.length > 1) ? _tittxt[1] : '');
	});

	var Tips1 = new Tips('.imgtip', {
		showDelay: 0,
		hideDelay: 0,
		offsets: {x: 16, y: 16},
		fixed: false,
		maxOpacity: 1,
		className: 'tip'
	});
	Tips1.addEvent ('show', function (tip, el) {
		tip.set ('z-index', 999000);
		tip.fade ('in');
	});
	Tips1.addEvent ('hide', function (tip, el) {
		tip.fade ('out');
	});

	$$('.imgtip img').fade ('hide');
	$$('.imgtip img').addEvent ('load', function () {
		this.fade ('in');
	});
});

