jQuery(document).ready(function($){
  $('.block-mailchimp .form-item input.required')
    .val('Enter Your Email Address')
    .focus(function() {
      $(this).val('');
    }).blur(function() {
      if (!$(this).val()) {
        $(this).val('Enter Your Email Address');
      } else {
        $(this).addClass('used');
      }
    });
});;
jQuery(document).ready(function($){

	$(".view-advertisements .views-row").hover(function(){
		$(this).children('.views-field-field-ad-image-hover').toggle();
	});

	$('a[href^="http"]').each(function() {
	   var a = new RegExp('/' + window.location.host + '/');
	   if(!a.test(this.href)) {
	       $(this).click(function(event) {
	           event.preventDefault();
	           event.stopPropagation();
	           window.open(this.href, '_blank');
	       });
	   }
	});
	
	$('a.ajax').bind('click',function(event){
		var $link = $(this);
		event.preventDefault();
		$.get($link.attr('href'),{},function(response){ 
		  $link.parent().text('This order has been fulfilled');
		});
	});
	
	
});;

