/**
* sigplus Image Gallery Plus
* Initialization code for Slimbox
*
* @version     1.0
* @author      Levente Hunyadi
* @copyright   Copyright (C) 2009 Levente Hunyadi
* @license     GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
*/

Slimbox.scanPage = function() {
	$$($$("a").filter(function(el) {
		return el.rel && el.rel.test(/^lightbox/i);
	})).slimbox({/* Put custom options here */}, null, function(el) {
		return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
	});
};
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
	window.addEvent("domready", Slimbox.scanPage);
}
