var sel1=5000; 
var slide=true;
var cnt=0;
var currentImage=1;
var timeout=0;
var pic1= new Array();
var pic=new Array();
var pic_link=new Array();
var p_title=new Array(); 

 
	pic1[1] = "/update/top1.jpg";
	pic_link[1] = "http://sports.chosun.com/news/utype.htm?id=201010090100078640002379&ServiceDate=20101008";
	p_title[1] = "±èºó¿ì, Àû³ª¶óÇÑ °¡½¿¶óÀÎ";
	pic1[2] = "/update/top2.jpg";
	pic_link[2] = "http://sports.chosun.com/news/utype.htm?id=201010110100092620003455&ServiceDate=20101010";
	p_title[2] = "¸°Áö ·ÎÇÑ, Ãâ¼Ò ±â³ä 'ºü»ß¿ë ÀÇ»ó'";
	pic1[3] = "/update/top3.jpg";
	pic_link[3] = "http://sports.chosun.com/news/utype.htm?id=201010110100094290003540&ServiceDate=20101010";
	p_title[3] = "¼Õ¿¹Áø, ºñÁÖ¾ó ¶Ç Æø¹ß ";
	pic1[4] = "/update/top4.jpg";
	pic_link[4] = "http://sports.chosun.com/news/utype.htm?id=201010100100097310003717&ServiceDate=20101010";
	p_title[4] = "'¿µ¿õÈ£°É' È¯ÀÚº¹ ÀÔ¾îµµ ¿¹»Ú³×? ";


pic[1]=new Image();
pic[1].src=pic1[1];
isNext = false;
function p_speed() {
	sel=speedid.selectedIndex;
	sel1=speedid.options[sel].value;
}
function go() {
	if (!slide) {
		nextImage1();
	}
}
function loadImage(imgNum) {
	if (imgNum >= 0) {
		title1.innerHTML=p_title[currentImage];
	}
	if (slide && !isNext) {
		imgsrc.filters.blendTrans.apply();
		document.imgsrc.src= pic[imgNum].src;
		imgsrc.filters.blendTrans.duration=0.5;
		imgsrc.filters.blendTrans.play();
 	nextImage1();
	} else {
		document.imgsrc.src= pic[imgNum].src;
		isNext = false;
	}
}
function nextImage() {
	if (currentImage < pic.length-1) {
		currentImage++;
	} else {
		currentImage=1;
	}
 isNext = true;
 loadImage(currentImage);
}
function nextImage1() {
	if (currentImage < pic1.length-1) {
		currentImage++;
	} else {
		currentImage = 1;
	}
 slide = true;
 timeout = setTimeout("loadImage(currentImage)",sel1);
}
function preload() {
	for (i = 2; i < pic1.length; i++) {
		pic[i]=new Image();
		pic[i].src=pic1[i];
	}
}
function prevImage() {
	if (currentImage <= pic1.length-1) {
		currentImage--;
		if(currentImage < 1) {
		 	currentImage=currentImage+pic1.length;
	 	currentImage--;
	 	}
	}
 isNext = true;
 loadImage(currentImage)
}
function gisalink() {
	if (!slide) {
		top.parent.location=pic_link[currentImage];
	}else       {
		if (currentImage == 1){
		top.parent.location=pic_link[4];
		}else if (currentImage == 2){
		top.parent.location=pic_link[1];
		}else if (currentImage == 3){
		top.parent.location=pic_link[2];
		}else	top.parent.location=pic_link[3];
	}		
	return;
}
function view(i) {
	still();
	currentImage = i;
 loadImage(currentImage)
}
function still() {
	clearTimeout(timeout);
	slide=false;
}
nextImage1();
preload();

