	if (document.images) {
				preLoader = new Image();
				preLoader.src = '/images/load.jpg';
				var numImages = 11;
				for (var i=1; i<=numImages; i++) {
					var img = new Image();
					img.src = '/images/gallery/image'+i+'.jpg';
					img.src = '/images/gallery/th_image'+i+'.jpg';
				}
			}
			$(function() {
				$('#bottom_nav_bar_menus').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/menus.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_nav_bar_events_ands_parties').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/events.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_nav_bar_events_ands_parties2').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/events.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_left_nav_bar_hours').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/hours.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_left_nav_bar_employment').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/employment.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_nav_bar_contact_us').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/contact.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_nav_bar_review_us').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/review.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_left_nav_bar_location').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/location.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_left_nav_bar_reservations').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/reservations.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_nav_bar_press').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/press.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#bottom_left_nav_bar_gift_cards').click(function(e) {
					location.href = 'https://www.oldtownsocial.com/giftcard';
				});
				$('#bottom_nav_bar_gallery').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/gallery.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_food').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/food.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_service').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/service.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_superbowl').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/superbowl.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_industry_sundays').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/industry.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_lagunitas').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/lagunitas.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});

				$('#top_left_nav_bar_UEFA').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/UEFA-Champions-League.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				

				$('#top_left_nav_bar_nye').click(function(e) {
									location.href = '/nye-store.php';
								});

				$('#top_left_nav_bar_butcher_shoppe').click(function(e) {
									location.href = '/butcher-shoppe.php';
								});

				$('#top_left_nav_bar_superbowlcatering').click(function(e) {
									location.href = '/super-bowl-catering.php';
								});

				$('#top_left_nav_bar_gift').click(function(e) {
					location.href = '/giftcards.php';
				});



				$('#top_left_nav_bar_oktoberfest').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/oktoberfest.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#promo-list-header_oktoberfest_thumbnail').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/oktoberfest.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
				$('#top_left_nav_bar_concept').click(function(e) {
					$('#inner_content_wrapper').fadeOut('fast', function() {
						var el = $(this);
						el.parent().append('<img src="/images/load.jpg" class="page_loader"/>');
						el.empty().load('/pages/concept.html');
						window.setTimeout(function() {
							el.parent().children('.page_loader').remove();
							el.show();
						}, 100);
					});
				});
			});
