$(document).ready(function() {
// Small nudge for links with the .nudge class
	$('a.nudge').hover(function() { //mouse in
			$(this).animate({ paddingLeft: '10px' }, 400);
		}, function() { //mouse out
			$(this).animate({ paddingLeft: 0 }, 400);
		});

// Clears out input boxes that have values onclick
	$(".filled").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
		}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
		});
	
// Sends rel="external" to a new tab/window
	$('a[rel="external"]').click( function() {
			window.open( $(this).attr('href') );
			return false;
			});  

// Hover effects for image rollovers
  if ($.browser.msie && $.browser.version < 7) return;  
  $('#navigation li')
    .removeClass('highlight')
    .find('a')
    .append('<span class="hover" />').each(function () {
      var $span = $('> span.hover', this).css('opacity', 0);
      $(this).hover(function () {
        $span.stop().fadeTo(500, 1);
      }, function () {
        $span.stop().fadeTo(1000, 0);
      });
    });

});
