<!-- 펼침메뉴 -->
function clickshow(num) {
	for (i=1;i<=7;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 = 7; // 

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 = 1; // 

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);
//쿠키값을 이용해 위치를 기억시킨다.
}


// 추가 스크립트#################################################################
function showHide(key,icn)
{
  var div = document.getElementById(key);
  var icon = document.getElementById(icn);
  if(div.style.display == "block"){
    div.style.display = "none";
	icon.src = "http://www.alleycat.idv.tw/web/blog/image/icon/e_on.gif";
  }else{
    div.style.display = "block";
	icon.src = "http://www.alleycat.idv.tw/web/blog/image/icon/e_off.gif";
  }
}

function removePX(sStr){
	var a = ""+sStr;
	idx = a.indexOf("px");

	if(idx < 0) idx = a.indexOf("PX");
	if(idx < 0)
		idx = a.indexOf("Px");
	else
		a = a.substring(0, (a.length - 2));
	return a;
}
function set_tag_support(key, fixkey1, fixkey2) {
	var obj = document.getElementById(key);
	if (document.selection) {
		if (obj.createTextRange && obj.currentPos) {
			obj.currentPos.text = fixkey1 + obj.currentPos.text + fixkey2;
			obj.focus();
			save_pos(obj);
		} else obj.value = obj.value + fixkey1 + fixkey2;
	} else if (obj.selectionStart != null && obj.selectionEnd != null) {
		var s1 = obj.value.substring(0, obj.selectionStart);
		var s2 = obj.value.substring(obj.selectionStart, obj.selectionEnd);
		var s3 = obj.value.substring(obj.selectionEnd);
		obj.value = s1 + fixkey1 + s2 + fixkey2 + s3;
	} else obj.value += fixkey1 + fixkey2;
	return true;
}
function save_pos(obj) {
	if (obj.createTextRange) obj.currentPos = document.selection.createRange().duplicate();
	return true;
}