﻿$(document).ready(function(){
	/* MAIN MENU */	
	$('ul#menu span').css('opacity','0');
	$('ul#menu li').hover(function () {
		$(this).find('span').stop().animate({opacity: 1}, 'slow');
	},
	function () {
		$(this).find('span').stop().animate({opacity: 0}, 'slow');
	});
	/* END MAIN MENU */
	
	$('a.x5,a.x9').click(function(e) {
		e.preventDefault();
	});


	if($('#warrantylink').length) {
		$('#warrantylink a').css('opacity','0');
		$('#warrantylink a').hover(function () {
			$(this).stop().animate({opacity: 1}, 'fast');
		},
		function () {
			$(this).stop().animate({opacity: 0}, 'fast');
		});
	}
	
	
	
	/* DROPDOWN */
	$('.drop').css('display','none');
	$('.dropli').hover(function(e) {
		$(this).find('ul.menu').find('span').hide().animate({opacity: 0}, 0);
		$(this).find('.drop').fadeIn('slow');
	}, function(e) {
		$(this).find('.drop').fadeOut('slow');
	});

	$('ul#menu ul.menu li').hover(function () {
		$(this).find('span').stop().show().animate({opacity: 1}, 'slow');
	},
	function () {
		$(this).find('span').stop().animate({opacity: 0}, 'slow');
	});
	/* END DROPDOWN */

	/* SIDEMENU */
	if($('.sidemenu').length) {
		$('.sidemenu td').hover(function () {
			$(this).find('img').stop().animate({opacity: 0}, 'slow');
		},
		function () {
			$(this).find('img').stop().animate({opacity: 1}, 'slow');
		});
	}
	/* END SIDEMENU */

});
