﻿$(document).ready(function() {
	if (jQuery.browser.mozilla || jQuery.browser.msie) {
		$(".clickable").each(function() {
			$(this).css('opacity', 1.0);
			$(this).hover(
				function() {
					$(this).animate({ opacity: 0.8 }, { queue: false, duration: 200 });
				},
				function() {
					$(this).animate({ opacity: 1.0 }, { queue: false, duration: 200 });
				}
			);
		});
	}

	$(".menu-container .menu-item").each(function() {
		$(this).hover(
			function() {
				$(this).css('background-position', '0px -13px');
			},
			function() {
				$(this).css('background-position', '0px 0px');
			}
		);
	});

	$(".menu-container li").each(function() {
		$(this).hover(
			function() {
				var $ul = $(this).children("ul:first");
				$ul.fadeIn();
			},
			function() {
			var $ul = $(this).children("ul:first");
				$ul.fadeOut();
			}
		);
	});

});
