var isSinglePostView = function() {
    var loc = document.baseURI;
    var re = new RegExp(".*blog.rasterboy.com/private/380549748/tumblr_kxlgfrANmn1qb2s5b*");
    return loc.match(re) != null;
}


$(window).ready(function() {
	// do stuff when DOM is ready  
	
	// search field focus swap      
	$("#q").focus(function() {
	if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
	if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	// header: tumblr link buttons
	$("#tumblr-links li").hover(
		function() {
		$(this).stop().animate({"margin-top": "5"}, "fast");
		},
		function() {
		$(this).stop().animate({"margin-top": "0"}, "fast");
	});
	
	//following thumb
	$('#following .thumb').hover( function(){
		$(this).addClass("shadow");
	},
	function(){
	     $(this).removeClass("shadow");
	     
	});

	
		
	$(".prev, .next").fadeTo(250, .85); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".prev").hover(
		function() {
		$(this).fadeTo(250, 1); // This should set the opacity to 100% on hover;
		},
		function() {
		$(this).fadeTo(250, .85); // This should set the opacity back to 60% on mouseout
	});
	
	$(".next").hover(
		function() {
		$(this).fadeTo(250, 1); // This should set the opacity to 100% on hover;
		},
		function() {
		$(this).fadeTo(250, .85); // This should set the opacity back to 60% on mouseout
	});


});


