$(function() {
	
	//Home Page Show/Hide
	$("#view-more").click(function() {
		$("#more-work").slideToggle();
		return false;
	});
	$("#hide-work").click(function() {
		$("#more-work").slideUp();
		return false;
	});
	
	//Home Page Cycle
	$('#home-big-image').cycle({ 
    	fx: 'fade', 
    	timeout: 5000 
 	});
	
	//Home Tooltips
	$('img.home-thumb').each(function() {
		$(this).qtip({
			content: $(this).attr('alt'),
			show: { effect: { length: 500 } },
			hide: { effect: { length: 500 }, delay: 2000 },
			position: {
				corner: {
					target: 'bottomLeft',
					tooltip: 'bottomLeft'
				}
			},
			style: { 
				width: 149,
				padding: 5,
				background: 'rgba(0,0,0,.85)',
				color: '#fff',
				border: {
					width: 0,
					radius: 0
				}
			}
		})
		.attr('alt', '');
	});
	
	//Portfolio Tooltips
	$('img.portfolio-thumb').each(function() {
		$(this).qtip({
			content: $(this).attr('alt'),
			show: { effect: { length: 500 } },
			hide: { effect: { length: 500 }, delay: 2000 },
			position: {
				corner: {
					target: 'bottomLeft',
					tooltip: 'bottomLeft'
				}
			},
			style: { 
				width: 209,
				padding: 5,
				background: 'rgba(0,0,0,.85)',
				color: '#fff',
				border: {
					width: 0,
					radius: 0
				}
			}
		})
		.attr('alt', '');
	});
	
});