
/* IDからオブジェクトを取得 */
function getObjById( idName ){
	if ( document.getElementById ) { //N6,Moz,IE5,IE6
		return document.getElementById( idName );
	} else if ( document.all ) { //IE4
		return document.all( idName );
	}
}

/* 画面のフレームオブジェクトのサイズを変更 */
function frame_resize() {
	
	// メインの横幅を設定
	var obj1 = getObjById("main");
	var obj2 = getObjById("frame_left");
	var side_width = document.body.offsetWidth * 0.15;
	var main_width = document.body.offsetWidth - side_width * 2 - 100;
	
	if(main_width > 800){
		obj1.style.width = main_width + "px";
		obj2.style.width = side_width + "px";
		if(obj2.style.display != 'block')obj2.style.display = 'block';
	}
	else{
		obj1.style.width = "800px";
		if(obj2.style.display != 'none') obj2.style.display = 'none';
	}
}

function src_change( idName, path ){
	var imgObj = getObjById(idName);
	imgObj.src = path;
}



