/*Blind Up*/
/*Configuration*/






function thumbOnClick(i){
	var thumbtext = details[i];
	var file = files[i];
	new Effect.Fade('mainstage', { 
		from:1.0,
		to:0.0,
		// delay:0,
		fps:60,
		duration: 0.3,
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) {
			$('imagetarget').src = file;
			$('detaildesc').innerHTML = thumbtext;
			FadeinDetail();
		} 
	});
	$('imagetarget').onload = imageonload;
	
}
function FadeinDetail(){
	new Effect.Appear('mainstage', {
		from:0.0, // 開始時透明度 
		to:1.0, // 終了時透明度 
		// delay:0, // 開始までの秒数 
		fps:60, // フレームレート 
		duration: 0.5, // アニメーションする時間(秒) 
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) { 
		}
	}); 	
}
function imageonload(e){
	new Effect.Appear(imageContainer, { 
		from:0.0, // 開始時透明度 
		to:1.0, // 終了時透明度 
		// delay:0, // 開始までの秒数 
		fps:60, // フレームレート 
		duration: 0.5, // アニメーションする時間(秒) 
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) { 
		}
	}); 	
}
function detailclose(){
	new Effect.Fade('mainstage', { 
		from:1.0,
		to:0.0,
		// delay:0,
		fps:60,
		duration: 0.3,
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) {
			$('mainstage').style.display = 'none';
		} 
	});
}
function swapimage( path ){
	new Effect.Fade('imagetarget', { 
		from:1.0,
		to:0.0,
		// delay:0,
		fps:60,
		duration: 0.3,
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) {
			$('imagetarget').src = path;
			FadeinImage();
		} 
	});
	
}

function FadeinImage(){
	new Effect.Appear('imagetarget', {
		from:0.0, // 開始時透明度 
		to:1.0, // 終了時透明度 
		// delay:0, // 開始までの秒数 
		fps:60, // フレームレート 
		duration: 0.5, // アニメーションする時間(秒) 
		beforeStartInternal: function(effect) { 
		}, 
		afterFinishInternal: function(effect) { 
		}
	}); 	
}

