<!--

var countA=1;
var countB=1;
var t;
var y;

function AutoLayerA()
{
 Layer_ControlsA("layerA"+countA);
 countA++;
 if(countA>7) countA=1;
 t=setTimeout("AutoLayerA()",5000);
 
}

function AutoLayerB()
{
 Layer_ControlsB("layerB"+countB);
 countB++;
 if(countB>7) countB=1;
 y=setTimeout("AutoLayerB()",5000);
 
}

function Layer_ControlsA(i)
{
 clearTimeout(t);
for(var k=1 ; k <=7 ; k++){
 document.getElementById("layerA"+k).style.display="none";

 if(i=="layerA"+k){document.getElementById("layerA"+k).style.display="block";document.getElementById("tdA"+k).style.backgroundColor="#EFEFEF";
}else{document.getElementById("tdA"+k).style.backgroundColor="#ffffff";}
}

}

function Layer_ControlsB(i)
{
 clearTimeout(y);
for(var j=1 ; j <=7 ; j++){
 document.getElementById("layerB"+j).style.display="none";

 if(i=="layerB"+j){document.getElementById("layerB"+j).style.display="block";document.getElementById("tdB"+j).style.backgroundColor="#EFEFEF";
}else{document.getElementById("tdB"+j).style.backgroundColor="#ffffff";}
}

}

	var showNum = 1;

	function gotoshow(direction){
		showNum = showNum + direction;
		if(showNum <= 0 ){
		showNum = 8;
		}else if(showNum > 8){
		showNum = 1;
		}
		if(direction > 0){
		showNumA = showNum - 1;
		if(showNum == 1 ){
		showNumA = 8;}
		document.all["TextLayer"+showNumA].style.display = "none";
		document.all["TextLayer"+showNum].style.display = "";
		}else if(direction < 0){
		showNumA = showNum + 1;
		if(showNum == 8 ){
		showNumA = 1;}
		document.all["TextLayer"+showNumA].style.display = "none";
		document.all["TextLayer"+showNum].style.display = "";
	}
	}

	var showNum1 = 1;

	function gotoshow1(direction){
		showNum1 = showNum1 + direction;
		if(showNum1 <= 0 ){
		showNum1 = 8;
		}else if(showNum1 > 8){
		showNum1 = 1;
		}
		if(direction > 0){
		showNum1A = showNum1 - 1;
		if(showNum1 == 1 ){
		showNum1A = 8;}
		document.all["TextLayer1"+showNum1A].style.display = "none";
		document.all["TextLayer1"+showNum1].style.display = "";
		}else if(direction < 0){
		showNum1A = showNum1 + 1;
		if(showNum1 == 8 ){
		showNum1A = 1;}
		document.all["TextLayer1"+showNum1A].style.display = "none";
		document.all["TextLayer1"+showNum1].style.display = "";
	}
	}

//°Ë»öÀü¼Û
function search_fun(){
		document.search_hidden.s1.value="";
		document.search_hidden.s_search_word.value="";
	document.search_hidden.s1.value=document.tv_search.search1.options[document.tv_search.search1.selectedIndex].text;
	document.search_hidden.s_search_word.value=document.tv_search.search_word.value;

	if(document.search_hidden.s1.value=="Áö¿ª"){document.search_hidden.s1.value="";}
	document.search_hidden.submit();
	return false;
}


function setPNG24(obj) {
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bPNG24\b/i,'');
    obj.style.filter =
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}

function LN1(T)
{
 Layer_ControlsA("layerA"+T)
 
}

function LN2(T)
{
 Layer_ControlsB("layerA"+T)
 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}
//-->