﻿jQuery(document).ready(function($) {

	//Main Menu Hover
	$('#mainMenu li:not(.current-menu-item, .current-page-ancestor, .current-post-ancestor)').hover(function () {
		$(this).css({'backgroundColor':'#ccc'}).stop().animate({
			'backgroundColor' : '#4f4f4f',
			'box-shadow' : 'inset 0px 6px 6px #2f2f2f'}, 500);
	}, function () {
		$(this).stop(true, false).animate({
			'backgroundColor' : '#fff',
			'box-shadow' : 'inset 0px 0px 0px #fff'}, 500, function () {
				$(this).css({'backgroundColor':'transparent'});
			});
	});
	
	//Secondary Menu Hover
	$('#secMenu li').hover(function () {
		$(this).find('.menuHover').stop().animate({'box-shadow' : '0px 0px 10px #000'}, 500);
	}, function () {
		$(this).find('.menuHover').stop(true, true).animate({'box-shadow' : '0px 0px 10px #aaa'}, 500);
	});
	
	//Side Menu Hover
	$('#sideMenu li:not(:.current_page_item)').hover(function () {
		$(this).find('.sideMenuShadow').stop().animate({
			'box-shadow' : 'inset 0px 10px 20px #ff6666',
			'backgroundColor' : '#ff0000'}, 500);
	}, function () {
		$(this).find('.sideMenuShadow').stop(true, true).animate({
			'box-shadow' : 'inset 0px 10px 10px #ff0000',
			'backgroundColor' : '#d12529'}, 500);
	});
	
	//Learn More button Hover
	$('#learn').hover(function () {
		$(this).stop().animate({'box-shadow' : '0px 0px 10px #000'}, 500);
	}, function () {
		$(this).stop(true, false).animate({'box-shadow' : '0px 0px 30px #000'}, 500);
	});
	
	//Service Icons Hover
	$('#services li').hover(function () {
		$(this).stop().animate({'box-shadow' : '0px -20px 75px #efefef'}, 500);
	}, function () {
		$(this).stop(true, false).animate({'box-shadow' : '0px 0px 0px #fff'}, 500);
	});
	
	//Mail Form Submit Button Hover
	$('#mailSubmit').hover(function () {
		$(this).stop().animate({'box-shadow' : 'inset 0px -10px 10px #ff0000, 0px 0px 6px 2px #000'}, 500);
	}, function () {
		$(this).stop(true, false).animate({'box-shadow' : 'inset 0px -20px 10px #ff0000'}, 500);
	});
	
	//Contact Us, Support page Hover
	$('#contactUsSubmit input, #supportTech input[type="submit"], #supportDl input[type="button"]').hover(function () {
		$(this).stop().animate({'box-shadow' : 'inset 0px -10px 10px #ff0000'}, 500);
	}, function () {
		$(this).stop(true, false).animate({'box-shadow' : 'inset 0px -20px 10px #ff0000'}, 500);
	});
	
	//Social Icons Hover
	$('.social').hover(function () {
		$(this).stop().animate({'box-shadow' : 'inset 0px 0px 10px #000'}, 500);
	}, function () {
		$(this).stop(true, true).animate({'box-shadow' : 'inset 0px 0px 0px #000'}, 500);
	});
});

