			$(document).ready(function() {
				$('.type-post a img').css({ opacity: 0.5 });
				$('.featured-design a img').css({ opacity: 0.5 });
				$('.pf_nav li a').click(function() {

					$('.pf_nav li').removeClass('selected');
					$(this).parent('li').addClass('selected');
					
					var thisItem = $(this).attr('rel');
					if(thisItem == "all") {  
					$('.type-post').stop().fadeIn('slow')  
					} else {
					$('.type-post').each(function() {  
                 		if($('.type-post:not([rel~='+thisItem+'])')) {  
                    		 $('.type-post:not([rel~='+thisItem+'])').fadeOut('normal').addClass('hidden');  
                 		} if($('.type-post:[rel~='+thisItem+']')) {  
                    		$('.type-post:[rel~='+thisItem+']').fadeIn('slow').removeClass('hidden');  
                 		}  
				  });  
				}  
			   
					 return false;  
				 }); 
					/*
					if(thisItem != "all") {
						$('.type-post:[rel~='+thisItem+']').stop().show("slow", function () {
		
							$(this).next('.type-post:[rel~='+thisItem+']').show("slow", arguments.callee);
																  });
						
						$('.type-post:not([rel~='+thisItem+'])').stop().hide("slow", function () {
							
							$(this).next('.type-post:not([rel~='+thisItem+'])').hide("slow", arguments.callee);
																  });

					} else {

						$('.type-post').stop().show("slow", function () {
						
							$(this).next('.type-post').show("slow", arguments.callee);
																  });
					}
				}) */
				
				$('.type-post a').hover(function() {
					$("img", this).animate({'opacity' : 1});
				}, function() {
					$("img", this).animate({'opacity' : 0.5});
				});
				$('.featured-design a').hover(function() {
					$("img", this).animate({'opacity' : 1});
				}, function() {
					$("img", this).animate({'opacity' : 0.5});
				});
				
			});
