
<!-- ÁÂÃø º¯È¯ÀÌ¹ÌÁö °ü·Ã ½ºÅ©¸³Æ® ½ÃÀÛ -->

var dnimages = new Array;
var urls = new Array;
var buttons = new Array;

dnimages[0] = 'images/main1/eventimage1.jpg';
urls[0] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6448';
buttons[0] = 'images/main1/eventicon1_o.gif';

dnimages[1] = 'images/main1/eventimage2.jpg';
urls[1] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6447';
buttons[1] = 'images/main1/eventicon2_o.gif';

dnimages[2] = 'images/main1/eventimage3.jpg';
urls[2] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6446';
buttons[2] = 'images/main1/eventicon3_o.gif';

dnimages[3] = 'images/main1/eventimage4.jpg';
urls[3] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6438';
buttons[3] = 'images/main1/eventicon4_o.gif';

dnimages[4] = 'images/main1/eventimage5.jpg';
urls[4] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6383';
buttons[4] = 'images/main1/eventicon5_o.gif';

dnimages[5] = 'images/main1/eventimage6.jpg';
urls[5] = 'http://www.kids17.net/event/event_ing_contents.asp?boardseq=6358';
buttons[5] = 'images/main1/eventicon6_o.gif';
	


	
var cliImg = '';
var cliImgSrc = '';
var n = Math.round(Math.random() * 3);
var interval = 5000;
var setTimeId = '';

function blursStop() {
	clearTimeout(setTimeId);
}

function blursStart() {
	blurs();
}

function chki(ci, no) {
	var pImg = document.all.RollImg;
	var pUrl = document.all.RollUrl;

	if(cliImg == '') {
		cliImg = ci;
		cliImgSrc = ci.src;
		ci.src = buttons[no];
		n=no;
		pImg.src = dnimages[no];
		pUrl.href = urls[no];		
	} else if(cliImg != ci) {
		cliImg.src = cliImgSrc;
		cliImg = ci;
		cliImgSrc = ci.src;
		ci.src = buttons[no];
		n=no;
		pImg.src = dnimages[no];
		pUrl.href = urls[no];		
	}
}

function blurs() {
	n = (n >= 5) ? 0 : n+1;
	setimgurl();
	setTimeId=setTimeout("blurs()",interval);
}

function setimgurl() {
	var ci = eval('document.all.num_img'+n);

	document.all.RollImg.filters.blendTrans.apply();
	document.all.RollUrl.href=urls[n];
	document.all.RollImg.src=dnimages[n];
	document.all.RollImg.filters.blendTrans.play();
	
	if(cliImg == '') {
		cliImg = ci;
		cliImgSrc = ci.src;
		ci.src = buttons[n];
	} else if(cliImg != ci) {
		cliImg.src = cliImgSrc;
		cliImg = ci;
		cliImgSrc = ci.src;
		ci.src = buttons[n];
	}
}

//-->

<!-- ÁÂÃø º¯È¯ÀÌ¹ÌÁö ½ºÅ©¸³Æ® °ü·Ã Á¾·á -->

<!-- ¸ÞÀÎ º¯È¯ÀÌ¹ÌÁö °ü·Ã ½ºÅ©¸³Æ® ½ÃÀÛ -->

	var nTabIndex = 0;
			var nTmrTab = null;
			var nTabInterval = 3500;
			function rotateTabDisplay(){
				var No = nTabIndex+1;
				if(No > 2) No = 0;
				changeTabItem(No);
			}
 
 
			function changeTabItem(No){
				if(nTmrTab != null) clearTimeout(nTmrTab);
				nTmrTab = null;
				if(nTabIndex == No) return;
				var Button= document.getElementById('TABS_BUTTON').getElementsByTagName("IMG");
				if(Button[nTabIndex].filters){
					//Button[nTabIndex].filters.blendTrans.stop();
					//Button[nTabIndex].filters.blendTrans.Apply();
					Button[nTabIndex].src = '' + Button[nTabIndex].getAttribute('unselected');
					//Button[nTabIndex].filters.blendTrans.Play();
 
					//Button[No].filters.blendTrans.Apply();
					Button[No].src = '' + Button[No].getAttribute('selected');
					//Button[No].filters.blendTrans.Play();
 
					
					document.getElementById('TABS_TBL' + No).filters[0].Apply();
					document.getElementById('TABS_TBL' + No).style.display = "block";
					document.getElementById('TABS_TBL' + No).filters[0].Play();
					//document.getElementById('TABS_TBL' + nTabIndex).filters[0].stop();
					document.getElementById('TABS_TBL' + nTabIndex).style.display = "none";
				}else{
					Button[nTabIndex].src = '' + Button[nTabIndex].getAttribute('unselected');
					document.getElementById('TABS_TBL' + nTabIndex).style.display = "none";
 
					Button[No].src = '' + Button[No].getAttribute('selected');
					document.getElementById('TABS_TBL' +No).style.display = "block";
				}
				nTabIndex = No;
				nTmrTab = setTimeout("rotateTabDisplay()", nTabInterval);
			}
			nTmrTab = setTimeout("rotateTabDisplay()", nTabInterval);

<!-- ¸ÞÀÎ º¯È¯ÀÌ¹ÌÁö ½ºÅ©¸³Æ® °ü·Ã Á¾·á -->

