﻿$(document).ready(function () {
	$('#retMsg span').hover(function() {
			$(this).css('color', '#fff');
			$(this).css('cursor', 'pointer');
		},
		function() {
			$(this).css('color', '#f00');
			$(this).css('cursor', 'default');
	}).click(function(){
		$('#retMsg').slideUp(300);
	});
	
/*
	$('.toppings').children('img').animate({opacity: 0.5}, 300, 'linear');

	$('.toppings').hover(function() {
			$(this).children('img').animate({opacity: 1.0}, 300, 'linear');
		}, 
		function() {
			$(this).children('img').animate({opacity: 0.5}, 300, 'linear');
	});	
*/
	
	$('#dock').Fisheye(
		{
			maxWidth: 70,
			items: 'a',
			itemsText: 'span',
			container: '.dock-container',
			itemWidth: 70,
			proximity: 90,
			halign : 'center'
		}
	).hover(function() {
			$('#flavors').css('visibility', 'hidden');
		},
		function () {
			$('#flavors').css('visibility', 'visible');
	});
	
	$('#topNav a').hover(
		function() {
			$(this).css('cursor','pointer');
		},
		function() {
			$(this).css('cursor','default');
		}
	);
	$('#topNav a.mn_home').append('<div class="hHome"><\/div>');
	$('#topNav a.mn_home').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

	$('#topNav a.mn_about').append('<div class="hAbout"><\/div>');
	$('#topNav a.mn_about').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

	$('#topNav a.mn_menu').append('<div class="hMenu"><\/div>');
	$('#topNav a.mn_menu').hover(
		function() {
			$(this).children('div').fadeIn(500);
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});
	$('#topNav .dropdown').hover(
		function() {
			$(this).children('span').stop().css('height', 'auto').slideDown(500);
		}, 
		function() {
			$(this).children('span').stop().css('height', 'auto').slideUp(500);	
	});
	$('#topNav a.mn_health').append('<div class="hHealth"><\/div>');
	$('#topNav a.mn_health').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

	$('#topNav a.mn_find').append('<div class="hFind"><\/div>');
	$('#topNav a.mn_find').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

	$('#topNav a.mn_apply').append('<div class="hApply"><\/div>');
	$('#topNav a.mn_apply').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

	$('#topNav a.mn_connect').append('<div class="hConnect"><\/div>');
	$('#topNav a.mn_connect').hover(
		function() {
			$(this).children('div').fadeIn(500);	
		}, 
		function() {
			$(this).children('div').fadeOut(500);	
	});

/*
	$('#facebook').hover(
		function() {
			$('.fQuote').show(500);
			$('.fQuote .text').css('display','block');
			$('.fQuote .from').css('display','block');
		}, 
		function() {
			$('.fQuote .text').css('display','none');
			$('.fQuote .from').css('display','none');
			$('.fQuote').hide(250);
	});
*/

	$('#twitter').hover(
		function() {
			$('.tQuote').show(500);
			$('.tQuote .text').css('display','block');
			$('.tQuote .from').css('display','block');
		}, 
		function() {
			$('.tQuote .text').css('display','none');
			$('.tQuote .from').css('display','none');
			$('.tQuote').hide(250);
	});
	
	$('#footMenu').hover(
		function() {
			$('#footSubMenu').show(300);
		},
		function() {
			$('#footSubMenu').hover(
				function() {
				},
				function() {
					$('#footSubMenu').hide(300);
			});
	});
	
});

