/*
*** Coded with loving care by Mat at Demotive ***
***	"Toiling since '75" | September 2009      ***
*** .......... www.demotive.com ............. ***
*/

Cufon.set('fontFamily', 'Hopkins').replace('h1, h2, h3, h4, h5, h6, #navigation li a, .work_display strong, #about li, .work_views li a');

$(document).ready(function(){
	
	// navigation rollover effect
	$('#navigation li:not(.selected), .work_views li')
		.hover(
			function () {
				$(this)
					.stop()
					.animate({
						paddingBottom:'12px'
					}, 500, 'easeOutElastic' );
			}, 
			function () {
				$(this)
					.stop()
					.animate({
						paddingBottom:'3px'
					}, 300, 'easeOutQuad' );
			}
		);
		/*.click(function() {
			window.location.href = $(this).find('a:first').attr('href');
		})
		.css('cursor','pointer');*/
	
	// fire up lightbox (project)
	if ($('.work_views').length > 0) {
        $('.work_views li a').lightBox({
			overlayOpacity: 0.8,
			imageLoading: '/images/structural/lightbox-ico-loading.gif',
			imageBtnClose: '/images/structural/lightbox-btn-close.gif',
			imageBtnPrev: '/images/structural/lightbox-btn-prev.gif',
			imageBtnNext: '/images/structural/lightbox-btn-next.gif',
			containerResizeSpeed: 350
		});
	}
	
});