$(function(){
	imageresize();
});

function imageresize() {
	winHeight = $(window).height();
	if (winHeight < 960) {
		magni = (Math.round((winHeight/960)*100))/100; //小数点以下2位以下は四捨五入
		imagetHeight = $('#photosrc').attr('height');
		imagetHeight = Math.round(imagetHeight * (magni-0.1));
		imageWidth = $('#photosrc').attr('width');
		imageWidth = Math.round(imageWidth * (magni-0.1));
		$('#photosrc').attr({height: imagetHeight, width: imageWidth});
		$('#photoframe').css('width', imageWidth);
	}
}
