jQuery(function($){
	
	var gSearchClassname = 'google-custom-search-blur';
	$(".google-custom-search-form input[name=cf_google_search_terms]")
		.addClass(gSearchClassname)
		.focus(function(){
			$(this).removeClass(gSearchClassname);
		})
		.blur(function(){
			if ($(this).attr('value')) return;
			$(this).addClass(gSearchClassname);
		});

	// Pipe lists
	$('.pipe li:not(:last-child)').append(' | ');
	
	// Open lists of posts items' links in new tabs
	$('body:not([class*="is-single"]) #content div:not([class="pagination"]) a').click(function() {
		window.open($(this).attr('href'));
		return false;
	});
});