// JavaScript Document

$(function() {
	// Use this example, or...
	//$('a[@rel*=lightbox]').lightBox();  Select all links that contains lightbox in the attribute rel
	// This, or...
	$('.lightbox a').lightBox();  //Select all links in object with gallery ID
	// This, or...
	//$('a.lightbox').lightBox();  Select all links with lightbox class
	// This, or...
	//$('a').lightBox();  Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above
});

$(function(){
	var minImgNum=1;
	var maxImgNum=9;
	var count=1;
	var fadeTime=1000;
	var waitTime=5000;
	$('#slide li:gt(0)').hide();
	setInterval(function(){
		var nowTarget=".s"+count;
		if(count>=maxImgNum){
			count=minImgNum;
		}else{
			count++;	
		}
		var nextTarget=".s"+count;
		$('#slide '+nextTarget).fadeIn(fadeTime);
		$('#slide '+nowTarget).fadeOut(fadeTime);
	}, waitTime);
});


