jQuery(document).ready(function($){
	// find height of sidebar
	var sidebarHeight = $('#sidebar').height();
	var newSidebarHeight = sidebarHeight-240;
	//alert('sidebar is = '+sidebarHeight);
	//alert('sidebar -225 is = '+newSidebarHeight);
	
	// find height of content div
	var contentHeight = $('.content').height();
	//alert('content is = '+contentHeight);
	
	
	if(newSidebarHeight > contentHeight){
		$('.content').css('height', newSidebarHeight);
	}
//	if(newSidebarHeight < contentHeight){
//		$('#sidebar').css('height', contentHeight);
//	}

});








$(document).ready(function() {
	
	 $('#dropdown').hide();

/*$('#dropdown').mouseleave(function() {
  $("#dropdown").delay(2000).hide('slow');
});*/
	
$('#navfix').mouseleave(function() {
  $("#dropdown").delay(2000).hide('slow');
});

$('#shop a').mouseenter(function() {
	$('#dropdown').show('slow', function() {
	});
});

/*$('#home').mouseleave(function() {
  $("#dropdown").delay(2000).hide('slow');
});

$('#contact').mouseleave(function() {
  $("#dropdown").delay(2000).hide('slow');
});*/


});





$(function() {
	$('ul.backtotop a').bind('click',function(event){
		var $anchor = $(this);
		
		$('html, body').stop().animate({
			scrollTop: $($anchor.attr('href')).offset().top
		}, 1500,'easeInOutExpo');
		
		/*
		if you don't want to use the easing effects:
		$('html, body').stop().animate({
			scrollTop: $($anchor.attr('href')).offset().top
		}, 1000);
		*/
		
		event.preventDefault();
	});
});
