		
	Cufon.replace('ul#globalNav a', {hover: true, textShadow: '0 1px 0 #000'});
	Cufon.replace('ul#globalNav li.active a', {hover: false, textShadow: '0 -1px 0 #700000'});
	Cufon.replace('.newsList .heading h2', {textShadow: '0 -1px 0 #000'});
	Cufon.replace('.slideInfo .title', {hover: true, textShadow: '0 1px 0 #2d2d2d'});
	Cufon.replace('h1, h2, h3');
	Cufon.replace('.frontCases .case a span', {textShadow: '0 1px 0 rgba(0,0,0,.5)'});
	
	$('.frontCases .case, .ecoBlurb, .mainRelImg .zoom').hover(function(){
		$(this).addClass('hover');	
	}, function(){
		$(this).removeClass('hover');	
	});
	$('.newsList .post .hover').css({'opacity':0});
	$('.newsList .post').hover(function(){
		$(this).children('.hover').stop().animate({'opacity':1}, 200);	
	}, function(){
		$(this).children('.hover').stop().animate({'opacity':0}, 200);
    });

    $('.newsList .post').click(function () {
        var link = $(this).children('.title').children('a').attr('href');
        location.href = link;
    });

	$('a#logo').hover(function(){
		$(this).stop().animate({'paddingLeft':'5px'});
	}, function(){
		$(this).stop().animate({'paddingLeft':'0'});
	});
	

	
	$(document).ready(function(){
		$('.refLogo a span').css({'opacity':0});
		$('.frontCases .case .info').css({'opacity':0});
		$('.frontCases .case .hoverOverlay').css({'opacity':0});
		
		$('.refLogo').hover(function(){
			$(this).find('span').stop().animate({'opacity':1}, 200);	
		}, function(){
			$('.refLogo span').stop().animate({'opacity':0}, 200);
		});
		
		$('.frontCases .case').hover(function(){
			$(this).children('.info').stop().animate({'opacity':1},200);
			$(this).children('.hoverOverlay').stop().animate({'opacity':.9},200);
		}, function(){
			$(this).children('.info').stop().animate({'opacity':0},200);	
			$(this).children('.hoverOverlay').stop().animate({'opacity':0},200);
		});
		
	});
	
	if($('.mainRelImg a').size() != 0) {
		$('.mainRelImg a').fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	200, 
			'speedOut'		:	200, 
			'overlayShow'	:	false,
			'margin'		:	0,
			'padding'		:	0,
			'overlayShow'	:	true,
			'overlayColor'	:	'#000'
		});
	}
