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


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

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

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

});
