// You do not need to change the following path if you installed WordPress into the root directory.
var lightbox_path = 'http://'+location.hostname+'/ontour/wp-content/plugins/lightbox-gallery/';

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('.gallery1 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery1 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery2 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery2 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery3 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery3 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery4 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery4 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery5 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery5 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery6 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery6 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery7 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery7 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery8 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery8 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery9 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery9 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery10 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery10 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery11 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery11 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery12 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery12 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery13 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery13 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery14 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery14 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery15 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery15 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery16 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery16 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery17 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery17 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery18 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery18 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery19 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery19 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery20 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery20 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery21 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery21 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery22 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery22 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery23 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery23 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery24 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery24 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery25 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery25 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery26 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery26 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery27 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery27 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery28 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery28 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery29 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery29 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery30 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery30 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery31 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery31 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery32 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery32 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery33 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery33 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery34 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery34 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery35 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery35 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery36 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery36 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery37 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery37 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery38 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery38 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery39 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery39 a').Tooltip({track:true, delay:0, showURL: false});
	jQuery('.gallery40 a').lightBox({captionPosition:'gallery'});
	jQuery('.gallery40 a').Tooltip({track:true, delay:0, showURL: false});

});

function showImg(i){
	if(i == jQuery('img').length){
		return;
	}else{
		jQuery(jQuery('img')[i]).animate({opacity:'show'},"normal",function(){i++;showImg(i)});
	}
}