function topContents(){
	setposi();

	$(window).resize(function() {				 
		setposi();
	});
}

function setposi(){
	
	//画像サイズ取得
	var imageW = 1024;
	var imageH = 621;//707

	var w = $(window).width()/imageW*100 + 2;
	var h = $(window).height()/imageH*100 + 2;
		
	//alert(w+","+h);
	
	var cubgW = 0;
	var cubgH = 0;
	
	if(w > h){
		cubgW = imageW*w/100;
		cubgH = imageH*w/100;
	} else {
		cubgW = imageW*h/100;
		cubgH = imageH*h/100;
	}
	
	//$("#cubg").css({top:-120});
	$("#top").css({"overflow":"hidden"});
	
	$("#contents_top img").css({"top":($(window).height() - cubgH)/2, "left":($(window).width() - cubgW)/2, "width":cubgW, "height":cubgH, 'position':'absolute'});
	$("#contents_top ul").css({"width":cubgW, "height":cubgH});
	$("#contents_top ul li").css({"width":cubgW, "height":cubgH});
	$("#contents_top").css({"top":0, "left":0, "width":$(window).width(), "height":$(window).height()});
	
	//
	$("#contents_top .top_p_info").css({"left":Math.floor($(window).width()/2 + 480 - 270)});
	$("#contents_top .top_p_info").css({"top":Math.floor($(window).height() - 330)});
	
	
	//作品詳細ページのリサイズ
	var rh = $(".works_detail .ri").height();
	var lh = $(".works_detail .lf").height();
	
	if(rh < lh){
		$(".works_detail .lf").height(lh);
		$(".works_detail .ri").height(lh);
	}else{
		$(".works_detail .lf").height(rh);
		$(".works_detail .ri").height(rh);
	}
}
