
	
$(document).ready(function(){
	/**$('<div id="gridOverlay"></div>').appendTo($('body'));
	$(window).resize(function(){		
		$('#gridOverlay').css({
			'width': '960px',
			'height': '900px',
			'position': 'absolute',
			'top': '0px',
			'left': ((parseInt($(document).width()) / 2) - 480) + 'px',
			'background': 'url("http://trafficdriven.com/images/grid.png") left top repeat-y',
			'zIndex': 9999
		});
	});
	$(window).resize();
	setTimeout("$(window).resize();", 400);

	**/
	
	$('form').attr('target', 'formframe').submit(function(){
		$(this).parent().css({
			'height': $(this).parent().height()
		});
		var msg = $(this).find('input[name="success"]').val();
		$(this).css({
			'overflow': 'hidden'
		}).animate({
			'height': 0
		}, 200, 'linear', function(){
			$(this).html('<p>'+msg+'</p>').animate({
				'height': '30px'
			}, 200);
		});
	});
	
	$('input[type="text"]').focus(function() {
        if (this.value == this.defaultValue) this.value = '';
    });
    $('input[type="text"]').blur(function() {
        if (this.value == '') this.value = (this.defaultValue ? this.defaultValue : ''); 
    });

	
	
});


