    jQuery(function() {
        var boxen = [];
        //find all links w/ rel="lightbox[gallery_name]" or just rel="lightbox" it works both ways
        jQuery('a[rel*=lightbox]').each(function() {
        //push only unique lightbox[gallery_name] into boxen array
        if (jQuery.inArray(jQuery(this).attr('rel'),boxen)) boxen.push(jQuery(this).attr('rel'));
    });
    //for each unique lightbox group, apply the lightBox
    jQuery(boxen).each(function(i,val) { jQuery('a[rel='+val+']').lightBox({ 
		imageLoading:  '/images/lightbox-ico-loading.gif',          // (string) Path and the name of the loading icon
        imageBtnPrev:  '/images/lightbox-btn-prev.gif',               // (string) Path and the name of the prev button image
        imageBtnNext:  '/images/lightbox-btn-next.gif',               // (string) Path and the name of the next button image
        imageBtnClose: '/images/lightbox-btn-close.gif',          // (string) Path and the name of the close btn
        imageBlank:    '/images/lightbox-blank.gif', 
	    overlayOpacity: 0.5, 
		download_link: false,
	    containerResizeSpeed: 100, 
	    txtImage: 'Ôîòî', 
	    txtOf: 'èç',
		fixedNavigation: true
	   }); });
    });


