/* 
Footer Slider
-------------------------------------------------------------------*/
	jQuery(function($) {
		var open = false;
		$('.footerSlideButton').click(function () {
			if(open === false) {
				$('.footerSlideContent').animate({ height: '260px' }
				, 800, 'easeOutBounce');
				$(this).css('backgroundPosition', 'bottom left');
				open = true;
				return false;
			} else {
				$('.footerSlideContent').animate({ height: '10px' }
				, 800, 'easeOutBounce');
				$(this).css('backgroundPosition', 'top left');
				open = false;
				return false;
			}
		});		
	});


/*
Back to Top
-------------------------------------------------------------------*/

	var topLink = jQuery('#back-to-top');

	function tz_backToTop(topLink) {
		
		if(jQuery(window).scrollTop() > 200) {
			topLink.fadeIn(200);
		} else {
			topLink.fadeOut(200);
		}
	}
	
	jQuery(window).scroll( function() {
		tz_backToTop(topLink);
	});
	
	topLink.find('a').click( function() {
		jQuery('html, body').stop().animate({scrollTop:0}, 500);
		return false;
	});


/*
Text Swapp
-------------------------------------------------------------------*/

function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}



/*
Overlay Animation
-------------------------------------------------------------------*/

	function tz_overlay() {
		jQuery('.post-thumb a').hover( function() {
			jQuery(this).find('.overlay').fadeIn(300);
			$("#details").html("");
		}, function() {
			jQuery(this).find('.overlay').fadeOut(500);
			$("#details").html("");
		});
	}	
	tz_overlay();











