$(document).ready(function() {
	$('.test').click(function() {
		$('.dropdown_search').toggle('slide', {
			duration : 1000,
			easing : 'easeOutBounce',
			direction : 'up'
		});
	});
});



function changeImage() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/arts.png";
	document.getElementById("pwcat1").value = "ach";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage2() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/education.png";
	document.getElementById("pwcat1").value = "edu";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage3() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/environment.png";
	document.getElementById("pwcat1").value = "enva";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage4() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/health.png";
	document.getElementById("pwcat1").value = "hlth";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage5() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/human.png";
	document.getElementById("pwcat1").value = "hs";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage6() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/international.png";
	document.getElementById("pwcat1").value = "ifa";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage7() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/public.png";
	document.getElementById("pwcat1").value = "psb";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage8() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/religion.png";
	document.getElementById("pwcat1").value = "rr";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
};

function changeImage9() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/mutual.png";
	document.getElementById("pwcat1").value = "mmb";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage10() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/unclassified.png";
	document.getElementById("pwcat1").value = "none";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

function changeImage11() {
	document.getElementById("imgClickAndChange").src = "/resources/site/img/icons/searchIcons/all.png";
	document.getElementById("pwcat1").value = "all";
	$('.dropdown_search').toggle('slide', {
		duration : 1000,
		easing : 'easeOutBounce',
		direction : 'up'
	});
	document.find1.keyword1.focus();
};

$(document).ready(function() {
	$('.test2').click(function() {
		$('.dropdown_login').toggle('slide', {
			duration : 1000,
			easing : 'easeOutBounce',
			direction : 'up'
		});
	});
});

$(document).ready(function() {
$( ".dropdown_login" ).mouseleave(function() {
			$('.dropdown_login').toggle('slide', {
			duration : 100,
			easing : 'easeOutBounce',
			direction : 'up'
		});
		
});
});

$(document).ready(function() {
	$('.test3').click(function() {
		$('.dropdown_support').toggle('slide', {
			duration : 1000,
			easing : 'easeOutBounce',
			direction : 'up'
		});
	});
});

$(document).ready(function() {
$( ".dropdown_support" ).mouseleave(function() {
			$('.dropdown_support').toggle('slide', {
			duration : 100,
			easing : 'easeOutBounce',
			direction : 'up'
		});
		
});
});

$(document).ready(function() {
	// Show or hide the sticky footer button
	$(window).scroll(function() {
		if ($(this).scrollTop() > 200) {
			$('.go-top').fadeIn(200);
		} else {
			$('.go-top').fadeOut(200);
		}
	});

	// Animate the scroll to top
	$('.go-top').click(function(event) {
		event.preventDefault();

		$('html, body').animate({
			scrollTop : 0
		}, 300);
	});
});

$(document).ready(function() {
	$('#toolTip').mouseout(function() {
		$('#toolTip').hide();
	});
});



$(document).ready(function() {
	$('#mapAboutUs').mouseover(function() {
		$('#mapAboutUsFull').show();
	});
});

$(document).ready(function() {
	$('#mapAboutUsFull').mouseout(function() {
		$('#mapAboutUsFull').hide();
	});
});

$(document).ready(function() {	
		$('#toolTip').show().delay(5000).hide('slide', {
			duration : 200,
			easing : 'easeOutBounce',
			direction : 'up'
		});	
});

