/*
 * JavaScript by Airtype Studio at airtypestudio.com
 * assets/js/global.css
 * Defines global behavior
 */
 
// Fire up jQuery
jQuery(document).ready(function($){

	// Auto-clear email signup form on focus
	$('#formEmailSignupEmail').focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	// Fade in social nav
	if (jQuery.support.opacity) {
		$('#navSocial a').css({'opacity' : 0.4}).hover(
			function() {
				$(this).stop().animate(
					{opacity: '1.0'},
					{duration: 200}
				);
			},
			function() {
				$(this).stop().animate(
					{opacity: '0.4'},
					{duration: 200}
				);
			}
		);
	} else {
		$('#navSocial a').addClass('noOpacity');
	}
	
	
});
