// JavaScript Document
Cufon.replace('#mainNav ul li a', { fontFamily: 'goth-medium' , hover: true });
Cufon.replace('#contentHolder form ul li label	', { fontFamily: 'goth-medium' });
Cufon.replace('#catwebformbutton', { fontFamily: 'goth-medium' });
Cufon.replace('#floorPlans a', { fontFamily: 'goth-medium' });
Cufon.replace('#contentHolder h3', { fontFamily: 'goth-medium' });
$(document).ready(function($) {
				// We only want these styles applied when javascript is enabled
			if($('#thumbs').length){
				// Initialize Advanced Galleriffic Gallery
				var gallery = $('#thumbs').galleriffic({
					delay:                     4000,
					numThumbs:                 30,
					preloadAhead:              10,
					enableTopPager:            false,
					enableBottomPager:         false,
					maxPagesToShow:            7,
					imageContainerSel:         '#slideshow',
					controlsContainerSel:      '#controls',
					captionContainerSel:       '#caption',
					loadingContainerSel:       '#loading',
					renderSSControls:          false,
					renderNavControls:         false,
					enableHistory:             false,
					autoStart:                 true,
					syncTransitions:           true,
					defaultTransitionDuration: 1000,
					onImageAdded:             function() {
						if($.browser.msie){
							alert("test");
        			$('.caption').removeAttr("filter");
							}
					},
					onPageTransitionOut:       function(callback) {
						this.fadeTo('fast', 0.0, callback);
					},
					onPageTransitionIn:        function() {
						this.fadeTo('fast', 1.0);
					}
				});
			}
			});
