$(document).ready(function(){

// Clear input text when given class .text to input matching title attr

$('input.text').focus(function () {
	if ($(this).val() == $(this).attr("title")) {
		$(this).val("");
	}
}).blur(function () {
	if ($(this).val() == "") {
		$(this).val($(this).attr("title"));
	}
});

// fadey buttons and all that jazz
 $('.writebragrag li a').animate({opacity : 0});
 $('.writebragrag li').hover(function () {
    $(this).find('a').stop().animate({
		opacity : 1
		}, 300);
  },
  function () {
    $(this).find('a').stop().animate({
		opacity : 0
		}, 200);
  });
    // footer listings fade
 $('#list_business_footer .hover, #footer_signup .hover').animate({opacity : 0});
 $('#list_business_footer, #footer_signup').hover(function () {
    $(this).find('.hover').stop().animate({
		opacity : 1
		}, 300);
  },
  function () {
    $(this).find('.hover').stop().animate({
		opacity : 0
		}, 200);
  });
    // footer listings fade
 $('#list_business_footer, #footer_signup').hover(function () {
	$(this).find('.signupnow span').stop().animate({
		color : '#ffa800'
		}, 300);
  },
  function () {
    $(this).find('.signupnow span').stop().animate({
		color : '#292928'
		}, 200);
 });
  
  // coupon fade
   $('.coupon .hover').animate({opacity : 0});
 $('.coupon').hover(function () {
    $(this).find('.hover').stop().animate({
		opacity : 1
		}, 300);
  },
  function () {
    $(this).find('.hover').stop().animate({
		opacity : 0
		}, 200);
  });
  
  $('.coupon').hover(function () {
	$(this).find('.usethiscoupon a').stop().animate({
		color : '#ffa800'
		}, 300);
  },
  function () {
   $(this).find('.usethiscoupon a').stop().animate({
		color : '#758488'
		}, 200);
 });



 
 	}
);
