$(document).ready(function(){

	
	
	var t = $(".portofolioPreview")
	
	
	
	t.find(".photoGallery_list li").click(function(){
		t.find(".photoGallery").hide()
		
		$(this).parent().find("li").css({
			"font-weight": "normal"	
		})
		
		$(this).css({
			"font-weight": "bold"	
		})
		
		var n =$(this).html()
		
		n=n.replace(/ /gi, "_");
		
		t.find(".photoGallery."+n).show()
	})
	
	t.find(".photoGallery_list li:first").click();
	
	var h = 0;
	t.find(".photoGallery_list li").each(function(){
		h+= $(this).outerWidth()+1
	})
	
	t.find(".photoGallery_list").css({ width: h+"px" })
	
	
})
