// JavaScript Document
var photoObj = new Array();
var selectPhoto = 0;

$(function(){
	PhotoInit();
	setInterval(function(){
		$("#main_visual li:eq("+selectPhoto+")").fadeOut(1000);
		selectPhoto++;
		if($("#main_visual li:eq("+selectPhoto+")").size() < 1){
			selectPhoto = 0;
		}
		$("#main_visual li:eq("+selectPhoto+")").fadeIn(1000);
	},5000);
});

function PhotoInit(){
	$("#main_visual li").each(function(i, element) {
        if(i > 0){
			$(this).hide();
		}
		photoObj[i] = $(this);
    });
}







