/*******
Best You Never Had
Author: Faizan Jilani
********/

/*******
Interactivity for Thumbnails on Homepage
********/
$(function(){
	$(".thumb").hover(function(){
		$("#thumbnail", this).stop(0,0).animate({opacity: "0.8"}, 300);	
	},
	function(){
		$("#thumbnail", this).stop(0,0).animate({opacity: "1"}, 300, function(){
		//	$(this).attr("style", "top: 216px;");
		});
	});
	
});
/*******
Navigation Effects
********/















/*******
Search
********/
$(function(){
	
	$("input").focus(function(){
		if($(this).val() == "Search...."){
			$(this).val('');
		}
	});
	
	$("input").blur(function(){
		if($(this).val() == ''){
			$(this).val('Search....');
		}
	});

});

/*******
Category Listing
********/
$(function(){
	$("#sidebar ul").find("a:odd").addClass("odd");
});

/*******
Page Images
********/

$(function(){
	$("#page-left a img").hover(function(){
		$(this).stop(0,0).animate({opacity: "0.8"}, 300);
	}, function(){
		$(this).stop(0,0).animate({opacity: "1"}, 300);
	})
});

$(function(){
	$("#page-left a img").parent("a").fancybox({
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'speedIn'		:	300, 
		'speedOut'		:	300, 
		'overlayShow'	:	true
	});
});

