$(function(){
		   
	$(".post_block").each(function(i){
										  
	var num = Number($(this).find(".entry-content ul li").length);
	var img_height = Number($(this).find(".entry-content").height());
	var blank_w = Math.floor(512/num);
		$(this).find(".entry-content ul li").each(function(e){ $(this).before("<img src=images/blank.gif class=blank_w />");
																//alert(e);
																 }); 
		$(this).find(".blank_w").width(blank_w);
		$(this).find(".blank_w").height(img_height);
		$(this).find(".entry-content ul li").eq(0).css("display","block");
		$(this).find(".blank_w").each(function(i) {
									$(this).hover(function(){
														  $(this).next().css("display","block");
														   },function(){
														   $(this).next().css("display","none");
														   $(this).parent().parent().parent().find(".entry-content ul li").eq(0).css("display","block");
														   })
									})
		
										  })
		   
		$(".xoxo h3").not($(".xoxo h3").eq(0)).toggle(function(){
									 $(this).next().slideDown();
									 },
									 function(){
									 $(this).next().slideUp();
									 });
		
		$(".works_block").hover(function(){
									$(this).removeClass("oo") 
										 },function(){
											 $(this).addClass("oo")
										 }
									);
		$(".btn").click(function(){
										 $(this).parent().toggleClass("on");
										 })
			
		$("#primary").height(document.documentElement.clientHeight+100);		
		function WindowResize()
			{
				var height_ = document.documentElement.clientHeight+100;	
				$("#primary").height(height_);
	}
				window.onresize=WindowResize;

	
})