/*		Remove the flickr and twitter conatainer when we find that there are no feeds*/		function fixDown(ulID,containerID){	var Ul = document.getElementById(ulID); 	if( Ul.firstChild.nextSibling == null)	{		document.getElementById(containerID).innerHTML = '';			}}/* sub nav drow-down */var timeout    = 500;var closetimer = 0;var ddmenuitem = 0;function jsddm_open(){  	jsddm_canceltimer();	jsddm_close();	ddmenuitem = $(this).find('ul').css('visibility', 'visible');}function jsddm_close(){  	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}function jsddm_timer(){  	closetimer = window.setTimeout(jsddm_close, timeout);}function jsddm_canceltimer(){	if(closetimer)	{		window.clearTimeout(closetimer);		closetimer = null;	}}$(document).ready(function(){  	$('.nav > li').bind('mouseover', jsddm_open)	$('.nav > li').bind('mouseout',  jsddm_timer)});document.onclick = jsddm_close;/* end sub nav drop down *///========//TAB://========var tab  = 'mapDirectionsTab'; // direction$(function() {	// Initialize tabs	Tabs.init();	// If an initial tab should be shown, we can do it here	if(typeof tab != 'undefined') {		if(tab == 'mapDirectionsTab') {			Tabs.show('mapDirections');		} 		else if (tab == 'hoursPricingTab')		{			Tabs.show('hoursPricing');		} 	}		});	/** * Tab Functionality * Requires jQuery * Note that this is quite a bit more complicated than it should be because of IE */Tabs = {	init: function() {		var tabCount = $('.tabs').children().size(); // added by andrew		if(tabCount < 2) {		    $('.tabs>li').addClass('solo');		} else {		    $('.tabs>li:first').addClass('activeFirst');			$('.tabs>li:last').addClass('last');		}		if(tabCount > 1)		{					$('.tabs>li').click(Tabs.tabClicked);					}			// Show the contents of the first tab only		$('#hoursPricing').hide();		$('#mapDirections').show();		// Some fine-tuning for Gecko		if($.browser.mozilla) {			$('.tabs>li>a').css('line-height', '25px');		}	},	tabClicked: function() {		var index = $('.tabs>li').index(this);		Tabs.show(index);			return false;	},	show: function(index) {		var clicked = null;		// Either show tab based on passed index (as a number) or passed		// "code" (as a string)				if(typeof index == 'number') {			var clicked = $('.tabs>li').eq(index);						tab= clicked.attr('id');			$("#tab").val(tab);					} else {			var i = 0;			$('.tabs>li').each(function() {				if($(this).attr('id').indexOf(index) !== -1) {					clicked = $('.tabs>li').eq(i);					index = i;				}				i++;			});		}		// Abort the operation if the tab we're looking for is already active (or if there's only 1 tab total or if there are no tabs)		if(clicked == null || clicked.attr('class').match(/(?:active|solo)/i)) {			return false;		}		$('.tabs>li').each(function() {			$(this).removeClass('active');			$(this).removeClass('first');			$(this).removeClass('last');			$(this).removeClass('activeFirst');			$(this).removeClass('activeLast');		});		$('.tabs>li:first').addClass('first');		$('.tabs>li:last').addClass('last');		// Juggle around class names. Thanks, IE.		if(clicked.hasClass('first')) {			clicked.removeClass('first');			clicked.addClass('activeFirst');		} else if(clicked.hasClass('last')) {			clicked.removeClass('last');			clicked.addClass('activeLast');		} else {			clicked.addClass('active');		}				if(index == 0)		{					$('#hoursPricing').hide();			$('#mapDirections').show();		} 		else if (index == 1)		{			$('#hoursPricing').show();			$('#mapDirections').hide();		} 			return false;	}}jQuery.fn.fadeIn = function(speed, callback) {     return this.animate({opacity: 'show'}, speed, function() {         if (jQuery.browser.msie)              this.style.removeAttribute('filter');          if (jQuery.isFunction(callback))             callback();      }); };