$(function () {
	$('.dropdown').each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100,
			over: function () {
				var current = $('.dropdown:eq(0)', this);
				current.slideDown(300);
			},
			out: function () {
				var current = $('.dropdown:eq(0)', this);
				current.fadeOut(200);
			}
		});
	});
	$('.dropdown a').hover(function () {
		$(this).stop(true).animate({paddingLeft: '35px'}, {speed: 100, easing: 'easeOutBack'});
	}, function () {
		$(this).stop(true).animate({paddingLeft: '2px'}, {speed: 100, easing: 'easeOutBounce'});
	});
	pic1 = new Image(310, 672);
	pic1.src = "../img/dropdown.png"; 
	pic2 = new Image(6, 49);
	pic2.src = "img/mnu-hvr-lt.png"; 
	pic3 = new Image(394, 49);
	pic3.src = "img/mnu-hvr-rt.png";
});
function goToByScroll(id){$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');}
$(document).ready(function() {
	$("ul.gallery li").hover(function() { //On hover...
		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
		//Set a background image(thumbOver) on the &lt;a&gt; tag 
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
		//Fade the image to 0 
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		}); 
	} , function() { //on hover out...
		//Fade the image to 1 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});
});
