
	var TOTLH = {};
	
	$(function(){
		jQuery.TOTLH.showMap();
		jQuery.TOTLH.sbGallery();
		
	});
	
	jQuery.TOTLH = {
		
		showMap : function()
		{
			$('.mapLinks').find('strong').toggle(function(){
				$(this).addClass('selected');
				$(this).next('div').slideDown('fast');
			}, function(){ 
				$(this).removeClass('selected');
				$(this).next('div').slideUp('fast');
			});
		},
	
		sbGallery : function ()
		{
			var total = $('#sbGallery').find('img').length;
			var x = 0;
			
			$('#sbGallery').find('img').fadeTo(10, 0);
			$('#sbGallery').find('img:eq('+x+')').css({ opacity: '0', display: 'block'}).fadeTo(6000, 1, function(){																
				$(this).fadeTo(4000, 0);					 
				x++;
				jQuery.TOTLH.nextImg(x, total);
			});
			
		},
	
		nextImg : function (x, total)
		{
			if (x <= total){
				$('#sbGallery').find('img:eq('+x+')').css({ opacity: '0', display: 'block'}).fadeTo(6000, 1, function(){															
				$(this).fadeTo(6000, 0);
					x++;
					jQuery.TOTLH.nextImg(x, total);
				});
			}
			if (x == total)
			{
					jQuery.TOTLH.sbGallery();
			}
			
		},
		
	};