document.createElement('nav');
document.createElement('article');


$(document).ready(function() {

	
	// make window scroll horizontally with mousewheel
	$(window).mousewheel(function(event, delta) {
		
		//console.log('mousewheel');		
		$('html').scrollTo( delta < 0 ? '+=200px' : '-=200px', 0);
		
		
		event.preventDefault();
	
	});

	
	
	// when window scrolls, check visibility of return button
	$(window).scroll(function() {
			
		
		if($('html')._scrollable().scrollLeft() > $('#nav_container').width())
		{
			
			$('#return-link').css('display', 'inline');
			
		} else
		{
			
			$('#return-link').css('display', 'none');
		}
			
	})
	
	
	// rollover functionality for folio items
	$('.folio_entry .image').mouseover(function( event ){
		
		
		$(this).find('.overlay').css('display', 'inline');		
		
	})
		
	$('.folio_entry .image').mouseout(function( event ){
		
		
		$(this).find('.overlay').css('display', 'none');		
		
	})
	
	
	
	

});
