//// メニューの描画用

// ifameの高さ自動調整用JavaScript
function LoadFrame(frid) {
	var IFR;  // iframe

	if(navigator.userAgent.indexOf("MSIE") > -1){ // InternetExporer
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
	else if(navigator.userAgent.indexOf("Firefox") > -1){ // Firefox
		IFR = document.getElementById(frid);
		//	IFR.style.height = (IFR.contentWindow)?
		//		IFR.contentWindow.document.height:
		//	    document.frames[frid].document.height;
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
	else if(navigator.userAgent.indexOf("Opera") > -1){ // Opera
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].body.scrollHeight;
	}
	else if(navigator.userAgent.indexOf("Safari") > -1){ // Safari
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
	else { //Another
		IFR = document.getElementById(frid);
		//IFR.style.height = (IFR.contentWindow)?
		//	IFR.contentWindow.document.height:
		//	document.frames[frid].document.height;
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
    return false;
}

// PhotoWindow表示用
function OpenPhotoWindow(url){
    window.open(url,"PhotoWindow","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizebox=no,width=340,height=300");
}


