	;(function($){
	
	// Supersized BG
	$.supersized({
				
		start_slide				:	0,		//Start slide (0 is random) //Requires multiple background images
		vertical_center   : 1,		//Vertically center background
		horizontal_center : 1,		//Horizontally center background
		min_width		      : 0,		//Min width allowed (in pixels)
		min_height		    : 0,		//Min height allowed (in pixels)
		fit_portrait      : 0,		//Portrait images will not exceed browser height
		fit_landscape			: 0,		//Landscape images will not exceed browser width
		slides 						:  [		//Slideshow Images
			{image : '/_media/images/bg/thepark-building.jpg'}
		]
	});

	// Home Hero
	$('#hero .tabs-nav ul').tabs('.tabs > div', {
		effect: 'fade',
		current: 'active',
		rotate: true
	});
	
	// Home Hero Gallery
	$('.gallery-nav').tabs('.gallery img', {
		effect: 'fade',
		current: 'active',
		rotate: true,
		autoplay: true
	}).slideshow({
        autoplay: true,
        autopause: true,
        interval: 7000,
        clickable: false
    });
	
	// Nav
	$('#nav li').hover(function() {
			$(this).addClass('active');
			$('.panel', this).fadeIn('fast');
		}, function() {
			$(this).removeClass('active');
			$('.panel', this).fadeOut('fast');	
	});
	
	$('#nav li a.false').click(function() {
		return false;
	}); // No top-level links for drop-downs
	
	$('.this-week-nav').tabs('.this-week-gallery div.slide', {
		effect: 'fade',
		current: 'active',
		rotate: true
	});
	
	// Subnav
	$('ul.subnav:not(.archives) li a').eq(0).hide(); // Hide Top Level except for Blog Archives
	$('ul.subnav li[rel="contact"] a, ul.subnav li[rel="my-park"] a, ul.subnav li[rel="give"] a').eq(0).show();// Need to show contact link
	
	// Forms - Label Over
	// labelOver
	$('form label.label-over').labelOver('over');
	
	// Tooltip
	$('.tooltip-info img[title]').qtip({
		content: {
			text: false 
		},
		show: {
			delay: 0
		},
		position: {
			corner: {
				target: 'leftMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 40
			}
		},
		style: {
			textAlign: 'center',
			border: {
				width: 2,
				color: '#c9d1d6'
			},
			tip: {
				corner: 'leftMiddle',
				color: 'c9d1d6',
				size: {
					x: 10,
					y: 12
				}
			}
		}
	});

	$('.tooltip-info[title]').qtip({
		content: {
			text: false 
		},
		hide: {
			fixed: true
		},
		show: {
			delay: 0
		},
		position: {
			corner: {
				target: 'leftMiddle',
				tooltip: 'leftMiddle'
			},
			adjust: {
				x: 75
			}
		},
		style: {
			textAlign: 'center',
			border: {
				width: 2,
				color: '#c9d1d6'
			},
			tip: {
				corner: 'leftMiddle',
				color: 'c9d1d6',
				size: {
					x: 10,
					y: 12
				}
			}
		}
	});
	
	
})(jQuery);
