$(window).load(function() {
	$('#slider').nivoSlider({
		effect: 'fade',
		slices: 1,
		directionNav:false,
		controlNav:true,
		captionOpacity: 1,
		animSpeed: 500,
		pauseTime: 5000
	});
});

// $(document).ready(function() {
// 	$('#s').addClass("idleField");
// 	$('#s').focus(function() {
// 		$(this).removeClass("idleField").addClass("focusField");
// 	      if (this.value == this.defaultValue){
// 	      	this.value = '';
// 	  	}
// 	      if(this.value != this.defaultValue){
// 	    	this.select();
// 	      }
// 	  });
// });

jQuery(function($){
	$('.category-hot-rod-movies .post p:first-child').addClass('movie-still');
});

jQuery(function($){
	$('#s').watermark('Site Search', {className: 'watermark'});
});

$.watermark.options = {
	className: 'watermark',
	useNative: false,
	hideBeforeUnload: false
};

$(function() {
   $("a[href*='http://']:not([href*='"+location.hostname.replace
           ("www.","")+"'])").each(function() {
       $(this).click(function(event) {
             event.preventDefault();
             event.stopPropagation();
             window.open(this.href, '_blank');
        }).addClass('external');
   });
});

