jQuery(document).ready(function(){
								
	//Swap Image on Click
	jQuery(".portfolio dl.gallery-item dt.gallery-icon a").click(function() {
		
		var mainImage = $(this).attr("href"); //Find Image Name
		jQuery(".portfolioitem .holder img").attr({ src: mainImage });
		return false;		
	});
	
	jQuery('img.attachment-thumbnail').each(function(n,i){
		 var re = /(\-[0-9]+x[0-9]+)/
		 i = jQuery(i); 
		 var url = i.attr('src').replace(re,'');
		 var a = jQuery(i.parents('a'));
		 a.attr('href',url);
	});
	
	jQuery
	
});
