/**
 * Behaviour for Design 146
 * http://www.design146.com/
 * Developed August 2010 by derek@sharpshooter.org
 */
 

$(document).ready(function(){
	// js enabled styles
	$('body').addClass('js');
	
	// homepage teasers
	$('#home-teasers img').hover(function(){
		// roll over
		_index = $('#home-teasers img').index(this);
		$(this).parents('.teaser header:eq('+ _index +')').fadeIn(100);
	}, function(){
		// roll out
		_index = $('#home-teasers img').index(this);
		$(this).parents('.teaser header:eq('+ _index +')').fadeOut(50);
	});
	
	// rollovers
	$('#email-address').hover(function(){
		this.src = this.src.replace('email.gif', 'email_over.gif');
	}, function(){
		this.src = this.src.replace('email_over.gif', 'email.gif');
	});
});
