/*$(function() {
	$('.navigation').children('a').hover(
		function () {
			var thisId = $(this).attr('id');
			$("#sub_" + thisId).css('top', '-256px').animate({'top' : '-25px'}, 400);

		}, 
		function () {
			var thisId = $(this).attr('id');
			$("#sub_" + thisId).css('top', '-25px').animate({'top' : '-256px'}, 400);
		}
	);
});*/


$(function() {
	
	var hideTimer = setTimeout(function() {}, 1);//initialise so not undefined
	
	function close() {
		clearTimeout(hideTimer);
		hideTimer = setTimeout(function() { $("#sub_portfolio").css('top', '-35px').animate({'top' : '-226px'}, 400); }, 200);//close drop down menu                    
	}

	$('#portfolio, #sub_portfolio').bind("mouseout", close);
	
	$('#portfolio, #sub_portfolio, #sub_portfolio a').bind("mouseover", function() { 
		
		if ($("#sub_portfolio").css('top') != '-35px') {
			$("#sub_portfolio").css('top', '-226px').animate({'top' : '-35px'}, 400);
		}
		clearTimeout(hideTimer); 
	});// stop drop down menu from being closed


	$("#slider").easySlider({
					auto: false, 
					continuous: true
				});


});