// ============================================================
// 画像の切替え
// 
// %update / 10.02.08
// 
// %use / jquery1.2.6
// ============================================================

// ------------------------------------------------------------
// ▼イベント設定
// ------------------------------------------------------------
// prototype.js と jquery の共存
if(! $jQ) { var $jQ = jQuery.noConflict(); }

window.onload = function(){
/* PressInfoDetail01 */
	$jQ(".PressInfoDetail01 .thumnailBlock").width($jQ(".PressInfoDetail01 .thumnailBlock img").width());

/* PressInfoDetail02 */
	var txtBoxWidth = parseInt(695);
	//画像の幅を配列に格納
	var imageArray = new Array;
	for(i=0;i<$jQ(".PressInfoDetail02 .thumnailBlock img").length;i++){
		imageArray[i] = $jQ(".PressInfoDetail02 .thumnailBlock img")[i].getAttribute("width");
	}
	//配列の中から一番大きい値を取得
	checkValue = imageArray[0];
	for(i=1;i<imageArray.length;i++){
		if(parseInt(imageArray[i])>parseInt(checkValue)){
			checkValue = imageArray[i];
		}
	}
	//左右のboxに幅を設定
	$jQ(".PressInfoDetail02 .thumnailBox").width(parseInt(checkValue));
	$jQ(".PressInfoDetail02 .txtBox").width(parseInt(txtBoxWidth-checkValue));
}



