﻿var t = n = count = 0;

$("#flash_text").load("index/flash_html/index.html");

$(function(){
		
	count = $("#play_list img").size();
	
	$("#play_list img:not(:first-child)").hide();
	
	show();
		
	setInterval(showAuto, 4000);
	
});

function showAuto()
{
	n = n >= (count - 1) ? 0 : n + 1;
	
	show();

}

function show(){
	$("#play_list img").filter(":visible").fadeOut(500).parent().children().eq(n).fadeIn(1500);
}
