//*===============================================================
//■画像の入れ替え
//*===============================================================
//*  関数：zoomPhoto
//*---------------------------------------------------------------
//*  引数：(INP) getPhoto		・画像のソース
//*---------------------------------------------------------------
//*  戻り：無し
//*---------------------------------------------------------------
//*  記述：任意
//*---------------------------------------------------------------
//*［備考］
//*===============================================================
function zoomPhoto(getPhoto){
	//□入力チェック
	//■画像のソース
	if ( getPhoto == null ) {
		return false;
	}
	
	//□画像入れ替え
	if ( document.MainPhoto != null ) {
		document.MainPhoto.src=getPhoto;
	}
}

//*===============================================================
//■画像の入れ替え(リンク先も共)
//*===============================================================
//*  関数：zoomPhoto_detail
//*---------------------------------------------------------------
//*  引数：(INP) getPhoto		・画像のソース
//*  引数：(INP) urlLink		・リンク先
//*---------------------------------------------------------------
//*  戻り：無し
//*---------------------------------------------------------------
//*  記述：任意
//*---------------------------------------------------------------
//*［備考］
//*===============================================================
function zoomPhoto_detail( getPhoto , urlLink ) {
	//□入力チェック
	//■画像のソース
	if ( getPhoto == null ) {
		return false;
	}
	//■リンク先
	if ( urlLink == null ) {
		return false;
	}
	
	//□画像入れ替え
	if ( document.MainPhoto != null ) {
		document.MainPhoto.src=getPhoto;
	}
	
	//□リンクの入れ替え
	if ( document.getElementById( 'mainpicture' ) != null ) {
		document.getElementById( 'mainpicture' ).href = urlLink;	
	}
}
