
<!-- 

// 속도 (milliseconds)

var slideShowSpeed = 5000;

// 지연시간 (seconds)
var crossFadeDuration = 4;

// 이미지 설정
var Pic = new Array();
Pic[0] = "../Img/00Main/bn_bodhitree_01.gif"
Pic[1] = "../Img/00Main/bn_bodhitree_02.gif"
Pic[2] = "../Img/00Main/bn_bodhitree_03.gif"
Pic[3] = "../Img/00Main/bn_bodhitree_04.gif"


var photoslink = new Array();
photoslink[0]="http://bodhitree.kr/front/php/category.php?cate_no=36"
photoslink[1]="http://bodhitree.kr/front/php/category.php?cate_no=36"
photoslink[2]="http://bodhitree.kr/front/php/product.php?product_no=11&main_cate_no=41&display_group=1"
photoslink[3]="http://bodhitree.kr/front/php/category.php?cate_no=43"


// 이런방식으로 이미지들을 계속 추가할 수 있습니다
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
var step = 1;
var current = 0;


for (i = 0; i < p; i++) {
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

function runSlideShow() {
	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=2)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	
	current = j;	
	document.images.SlideShow.src = preLoad[j].src;

	if (document.all) {
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;

	
	if (j > (p - 1)) j = 0;
	
	t = setTimeout('runSlideShow()', slideShowSpeed);	
	step = 2;
}

function forward()
{	
	clearInterval(t);
	runSlideShow();
}

function backward()
{
	clearInterval(t);

	if (current == 0)
	{
		current = p;
	}
	j = current - 1;
	runSlideShow();
}

function transport(){
	window.open(photoslink[current],"","")
}

//  -->

