<!-- 펼침메뉴 -->
function clickshow(num) {
	for (i=1;i<=6;i++) {
		menu=eval("document.all.block"+i+".style");
		if (num==i) {
			if (menu.display=="block") {
				menu.display="none";
			} else {
				menu.display="block";
			}
		}
	}
}


<!-- 이미지 바뀌는 스크립트 -->
function recent1(n) {
    for(var i = 1; i < 3; i++) {
        obj = document.getElementById('recent1'+i);
		obj2 = document.getElementById('menu1'+i);
//		img2 = document.getElementById('recent_button'+i);
        
        if ( n == i ) {
            obj.style.display = "block";
			obj2.style.color = "green";
//			img2.height = 23;
//			img2.src = "/image/index/1025main_tab010"+i+"On.gif";    
        } else {
            obj.style.display = "none";
			obj2.style.color = "gray";
//			img2.height = 23;
//			img2.src = "/image/index/1025main_tab010"+i+".gif";
        }
    } 
}

<!-- 이미지 바뀌는 스크립트 2 -->
function recent2(n) {
    for(var i = 1; i < 3; i++) {
        obj = document.getElementById('recent2'+i);
		obj2 = document.getElementById('menu2'+i);
//		img2 = document.getElementById('recent_button'+i);
        
        if ( n == i ) {
            obj.style.display = "block";
			obj2.style.color = "green";
//			img2.height = 23;
//			img2.src = "/image/index/1025main_tab010"+i+"On.gif";    
        } else {
            obj.style.display = "none";
			obj2.style.color = "gray";
//			img2.height = 23;
//			img2.src = "/image/index/1025main_tab010"+i+".gif";
        }
    } 
}

<!-- 이미지 투명효과 -->
var startopacity = 30; // 

function fadeIt(obj,direct) { 
if(window.timer) { clearInterval(timer); } 
tobj=obj; drct=direct; 
timer=setInterval("flowfilter(tobj,drct);",5); } 

function flowfilter(thing,dct){ 
if(dct==1) { if (thing.filters.alpha.opacity<100) { thing.filters.alpha.opacity+=5; } else { clearInterval(timer); } } 
if(dct==2) { if (thing.filters.alpha.opacity>startopacity) { thing.filters.alpha.opacity-=5; } else { clearInterval(timer); } } 
} 

<!-- 이미지 투명효과 2 -->
var startopacity2 = 7; // 

function fadeIt2(obj,direct) { 
if(window.timer) { clearInterval(timer); } 
tobj=obj; drct=direct; 
timer=setInterval("flowfilter2(tobj,drct);",5); } 

function flowfilter2(thing,dct){ 
if(dct==1) { if (thing.filters.alpha.opacity<20) { thing.filters.alpha.opacity+=2; } else { clearInterval(timer); } } 
if(dct==2) { if (thing.filters.alpha.opacity>startopacity2) { thing.filters.alpha.opacity-=2; } else { clearInterval(timer); } } 
} 


function init() {
	recent1(1);
	recent2(1);
//쿠키값을 이용해 위치를 기억시킨다.
}
