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] = "http://sports.chosun.com/update/top1.jpg";
	pic_link[1] = "http://news.sportschosun.com/news/utype.htm?ut=1&name=/news/entertainment/200911/20091124/9bx77118.htm";
	p_title[1] = "Ä§´ëÀ§ÀÇ ½Å¹Î¾Æ";
	pic1[2] = "http://sports.chosun.com/update/top2.jpg";
	pic_link[2] = "http://news.sportschosun.com/news/utype.htm?ut=1&name=/news/entertainment/200911/20091124/9bx77121.htm";
	p_title[2] = "À±ÀºÇý, »ó¹Ý½Å ÆÄ°Ý ³ëÃâ";
	pic1[3] = "http://sports.chosun.com/update/top3.jpg";
	pic_link[3] = "http://news.sportschosun.com/news/utype.htm?ut=1&name=/news/entertainment/200911/20091124/9bx75126.htm";
	p_title[3] = "'¾ÆÀÌ¸®½º' ¾îÀÌ¾ø´Â ¿ÀÅ»ÀÚ";
	pic1[4] = "http://sports.chosun.com/update/top4.jpg";
	pic_link[4] = "http://news.sportschosun.com/news/utype.htm?ut=1&name=/news/entertainment/200911/20091124/9bx77108.htm";
	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) {
		self.parent.location=pic_link[currentImage];
	}else       {
		if (currentImage == 1){
		self.parent.location=pic_link[4];
		}else if (currentImage == 2){
		self.parent.location=pic_link[1];
		}else if (currentImage == 3){
		self.parent.location=pic_link[2];
		}else	self.parent.location=pic_link[3];
	}		
	return;
}
function view(i) {
	still();
	currentImage = i;
 loadImage(currentImage)
}
function still() {
	clearTimeout(timeout);
	slide=false;
}
nextImage1();
preload();
