// JavaScript Document

if (!$.browser.msie) {
	$(document).ready(function() {
	
		// find the div.fade elements and hook the hover event
		$('.fadeFaq').hover(function() {
			// on hovering over find the element we want to fade *up*
			var fade = $('> .hoverFaq', this);
	 
			// if the element is currently being animated (to fadeOut)...
			if (fade.is(':animated')) {
				// ...stop the current animation, and fade it to 1 from current position
				fade.stop().fadeTo(400, 1);
			} else {
				fade.fadeIn(400);
			}
		}, function () {
			var fade = $('> .hoverFaq', this);
			if (fade.is(':animated')) {
				fade.stop().fadeTo(400, 0);
			} else {
				fade.fadeOut(400);
			}
		});
		// get rid of the text
		$('.fadeFaq > .hoverFaq').empty();
		
		
		// find the div.fade elements and hook the hover event
		$('.fadeInquiry').hover(function() {
			// on hovering over find the element we want to fade *up*
			var fade = $('> .hoverInquiry', this);
	 
			// if the element is currently being animated (to fadeOut)...
			if (fade.is(':animated')) {
				// ...stop the current animation, and fade it to 1 from current position
				fade.stop().fadeTo(400, 1);
			} else {
				fade.fadeIn(400);
			}
		}, function () {
			var fade = $('> .hoverInquiry', this);
			if (fade.is(':animated')) {
				fade.stop().fadeTo(400, 0);
			} else {
				fade.fadeOut(400);
			}
		});
		// get rid of the text
		$('.fadeInquiry > .hoverInquiry').empty();
		
		
		
		// find the div.fade elements and hook the hover event
		$('.fadeTop').hover(function() {
			// on hovering over find the element we want to fade *up*
			var fade = $('> .hoverTop', this);
	 
			// if the element is currently being animated (to fadeOut)...
			if (fade.is(':animated')) {
				// ...stop the current animation, and fade it to 1 from current position
				fade.stop().fadeTo(400, 1);
			} else {
				fade.fadeIn(400);
			}
		}, function () {
			var fade = $('> .hoverTop', this);
			if (fade.is(':animated')) {
				fade.stop().fadeTo(400, 0);
			} else {
				fade.fadeOut(400);
			}
		});
		// get rid of the text
		$('.fadeTop > .hoverTop').empty();

	});	
}
