$(function() {		if (isIE6()) {			$('.flair').supersleight();			$('h1').supersleight();			$('#fbLink').supersleight();			$('#viewMap')				.attr('href',googleMapURL())				.attr('target','_blank');		}		else{			$('#viewMap').click(				function(){					shadowbox();					return false;				}			);		}		cycleFocus();		$('.home a #logo').parent('a').removeAttr('href'); // Remove home link from logo on home page});function pageNeedsThumbs(){	pagesThatNeedThumbs = new Array('about','menus'); // class of body tag	for(i=0;i<pagesThatNeedThumbs.length;i++){		if($('body.'+pagesThatNeedThumbs[i]).length > 0){			return true;		}	}	return(false);}	function cycleFocus(){		if(pageNeedsThumbs()){					// Fade in first image			// $('#slideshow #largeSlide img:first').fadeIn(3000);			// redefine Cycle's updateActivePagerLink function 			$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { 				$(pager).find('img').removeClass('active') 					.filter('img:eq('+currSlideIndex+')').addClass('active'); 			}; 			$('#slideshow #largeSlide').cycle({				speed:  600,				speedOut: 1,				speedIn: 599,				timeout: 4000,				pauseOnPagerHover: false,				pager: '#slideshow #slideshowNav',				pagerAnchorBuilder: function(idx, slide){					return '<img src="img/spacer.gif" />'; 				}			});					$("#slideshow #slideshowNav img").each(function(n){						thisClass = (n==0) ? 'pagerBox active' : 'pagerBox';						$(this)					.attr("id","box"+eval(n+1))					.attr("class",thisClass)					.hover(						function(){							$(this).addClass('hovered');						},						function(){							$(this).removeClass('hovered');						}					);			});			$("#box4").addClass('last');			} // end if(pageNeedsThumbs())		else{			if($('.home').length > 0){/*			$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {				// Hide the flair for the first frame as it's included in the graphic				if(currSlideIndex == 0){					$('#rotation .flair').hide();				}				else{					$('#rotation .flair').show();				}			}; */				// Fade in first image				$('#rotationImages img:first').fadeIn(1000, function(){					$('#rotationImages').cycle({						speed:  600,						speedOut: 1,						speedIn: 599,						timeout: 5000,						pager: '#slideshow #slideshowNav',						pause: 0					});				});			}			else{				if($('.membership').length > 0 || $('.events').length > 0){ // Only show 1st image on membership/events pages (no rotation)					$('#rotationImages img:first').show();				}				else{					// Fade in first image					$('#rotationImages img:first').fadeIn(1000, function(){						$('#rotationImages').cycle({							speed:  600,							speedOut: 1,							speedIn: 599,							timeout: 3000,							pauseOnHover: false,							pause: 0						});					});				}							}		}	}/*	Removed conditional logic in each iteration.	Browser type/version should only be checked once, 	and function only called in the case of IE6.*/jQuery.fn.supersleight = function(settings) {	settings = jQuery.extend({		imgs: true,		backgrounds: true,		shim: 'img/spacer.gif',		apply_positioning: true	}, settings);	return this.each(function(){		jQuery(this).find('*').andSelf().each(function(i,obj) {			var self = jQuery(obj);			// background pngs			if (settings.backgrounds && self.css('background-image').match(/\.png/i) !== null) {				var bg = self.css('background-image');				var src = bg.substring(5,bg.length-2);				var mode = (self.css('background-repeat') == 'no-repeat' ? 'crop' : 'scale');				var styles = {					'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + mode + "')",					'background-image': 'url('+settings.shim+')'				};				self.css(styles);			};			// image elements			if (settings.imgs && self.is('img[src$=png]')){				var styles = {					'width': self.width() + 'px',					'height': self.height() + 'px',					'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + self.attr('src') + "', sizingMethod='scale')"				};				self.css(styles).attr('src', settings.shim);			};			// apply position to 'active' elements			if (settings.apply_positioning && self.is('a, input') && (self.css('position') === '' || self.css('position') == 'static')){				self.css('position', 'relative');			};		});	});};	function shadowbox(){		// Only add to the page if it doesn't already exist		if($('#shadowBox').length == 0){			 $('body').append('<div id="shadowBox"></div>');		}		if($('#mapBox').length == 0){			$('body').append(mapBoxCode());		}		$('#shadowBox')			.height($(document).height()+'px')			.click(function(){				hideMap();			})			.show();		$('#mapBox').show();		$('#closeMap')			.click(function(){				hideMap();				return false;			}		);	}	function hideMap(){		$('#shadowBox').hide();		$('#mapBox').hide();	}	function mapBoxCode(){		googleMapURL = googleMapURL();		iFrameCode    = '<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ';		iFrameCode   += 'src="';		iFrameCode   += googleMapURL;		iFrameCode   += '"></iframe>';		largeMapLink  = '<a id="embiggen" title="Open Google Maps in a new window" target="_blank" href="';		largeMapLink += googleMapURL;		largeMapLink += '">View larger map</a>';				closeMapLink  = '<a id="closeMap" title="" href="#">Close Map</a>';		mapLinks      = '<div id="mapLinks">'+largeMapLink+closeMapLink+'</div>';		return('<div id="mapBox">'+iFrameCode+mapLinks+'</div>');	}		function googleMapURL(){		googleMapURL  = 'http://maps.google.com/maps?&q=The+1913+Room,+grand+rapids';		googleMapURL += '&f=q';		googleMapURL += '&source=s_q';		googleMapURL += '&hl=en';		googleMapURL += '&geocode=';		googleMapURL += '&sll=37.0625,-95.677068';		googleMapURL += '&sspn=49.176833,107.138672';		googleMapURL += '&ie=UTF8';		googleMapURL += '&hq=The+1913+Room,';		googleMapURL += '&hnear=Grand+Rapids,+MI';		googleMapURL += '&t=h';		googleMapURL += '&z=16';		googleMapURL += '&iwloc=A';		googleMapURL += '&amp;output=embed';		return(googleMapURL);	}  function isIE6(){		if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7 && parseInt(jQuery.browser.version, 10) > 4) {			// IE(4 < version < 7)			return true;		}		else{			return false;		}	}