$(document).ready(function() {
	var wWidth = $(window).width();
	var wHeight = $(window).height();
	var wWidthHalf = Math.round(wWidth / 2 - 15);
	var wHeightHalf = Math.round(wHeight / 2 - 15);
	
	$("#prev, #next").css({ display: 'block', position: 'absolute', top: '0', height: wHeight, 'z-index': '1' });
	$("#prev").css({ width: '20%', left: '10px' });
	$("#next").css({ width: '20%', right: '10px' });
	$("#next span").css({ width: '100%' });
	
	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
		
	} else {
		$("#nav").css({ opacity: .3 });

		$("#nav").hover(function() {
			$(this).animate({ opacity: 1 }, 100);
		}, function() {
			$(this).animate({ opacity: .3 }, 100);
		});
	}
	
});

$(window).resize(function() {
	var wHeight = $(window).height();
	$("#prev, #next").css({ height: wHeight });
});
