// You do not need to change the following path if you installed WordPress into the root directory.
var lightbox_path = 'http://'+location.hostname+'/wp-content/plugins/lightbox-gallery/';
if ( typeof hs != "undefined" ) hs.graphicsDir = 'http://'+location.hostname+'/wp-content/plugins/lightbox-gallery/graphics/';

if ( typeof hs == "undefined" ) {
	jQuery(document).ready(function () {

// If you make images display slowly, use following two lines;
//	var i = 0;
//	showImg(i);

		jQuery('a[rel*=lightbox]').lightBox();
/*		jQuery('.gallery a').tooltip({track:true, delay:0, showURL: false});*/
/*		jQuery('.gallery1 a').lightBox({captionPosition:'gallery'});*/
		jQuery('div.wp-caption a, div.gallery1 a').lightBox({
			fixedNavigation:true,
			imageLoading: '/bin/js/lightbox/lightbox-ico-loading.gif',
			imageBtnClose: '/bin/js/lightbox/lightbox-btn-close.gif',
			imageBtnPrev: '/bin/js/lightbox/lightbox-btn-prev.gif',
			imageBtnNext: '/bin/js/lightbox/lightbox-btn-next.gif',
			imageBlank: '/bin/js/lightbox/lightbox-blank.gif',
			txtOf: ' / ',
			txtImage: ''
		});

// Add these lines if you want to handle multiple galleries in one page.
// You need to add into a [gallery] shorttag. ex) [gallery class="gallery2"] 
//  jQuery('.gallery2 a').lightBox({captionPosition:'gallery'});
//  jQuery('.gallery3 a').lightBox({captionPosition:'gallery'});
	});

	function showImg(i){
		if(i == jQuery('img').length){
			return;
		}else{
			jQuery(jQuery('img')[i]).animate({opacity:'show'},"normal",function(){i++;showImg(i)});
		}
	}
}