
//NAV FUNCTIONALITY
$(function () {
	
	$('.ind-sm').hover(function () {
		$(this).css('background-position','0px -76px');
		$theBubble = $(this).children('p');
		$theBubble.show();
		//$theBubble.stop().fadeTo(10, 1);
	}, function () {
		$(this).css('background-position','0px 0px');
		$theBubble.hide();
		//$theBubble.stop().fadeTo(10, 0);
	});
	$('.ind-lg').hover(function () {
		$(this).css('background-position','0px -157px');
		$theBubble = $(this).children('p');
		$theBubble.show();
		//$theBubble.stop().fadeTo(10, 1);
	}, function () {
		$(this).css('background-position','0px 0px');
		$theBubble.hide();
		//$theBubble.stop().fadeTo(10, 0);
	});
	
	//DETAIL THUMB SLIDER
	$('#thumb-holder').vScroll({ 
		speed: 400, 
		height: 540, 
		upID: "#thumb-prev-button", 
		downID: "#thumb-next-button", 
		cycle: false 
	});
	
	//THUMB SLIDER POPUP
	$('.wedding-thumb-wrapper').hover(function () {
		var eventID = "p.thmb-bubble-" + $(this).attr('title');
		$theBubble = $(eventID);
		$theBubble.show();
		//$theBubble.stop().fadeTo(100, 1);
	}, function () {
		$theBubble.hide();
		//$theBubble.stop().fadeTo(300, 0);
	});
	

	if ($.browser.msie && $.browser.version < 7) return;
	
	$('#navigation2 li')
		.removeClass('highlight')
		.find('a')
		.append('<span class="hover" />').each(function () {
			var $span = $('> span.hover', this).css('opacity', 0);
			$(this).hover(function () {
				$span.stop().fadeTo(100, 1);
			}, function () {
				$span.stop().fadeTo(700, 0);
			});
		});        
});
