
	function MM_swapImgRestore() { //v3.0
	  	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
	  	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	function MM_findObj(n, d) { //v4.01
	  	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  	if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_swapImage() { //v3.0
	  	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}


	function DisplayMenu(index) {
		if (index == 1) {
			menu1.style.display = "";
			menu2.style.display = "none";
			menu3.style.display = "none";
			menu4.style.display = "none";
			menu5.style.display = "none";
			menu6.style.display = "none";
			menu7.style.display = "none";
		} else if(index == 2) {
			menu1.style.display = "none";
			menu2.style.display = "";
			menu3.style.display = "none";
			menu4.style.display = "none";
			menu5.style.display = "none";
			menu6.style.display = "none";
			menu7.style.display = "none";
		} else if(index == 3) {
			menu1.style.display = "none";
			menu2.style.display = "none";
			menu3.style.display = "";
			menu4.style.display = "none";
			menu5.style.display = "none";
			menu6.style.display = "none";
			menu7.style.display = "none";
		} else if(index == 4) {
			menu1.style.display = "none";
			menu2.style.display = "none";
			menu3.style.display = "none";
			menu4.style.display = "";
			menu5.style.display = "none";
			menu6.style.display = "none";
			menu7.style.display = "none";
		} else if(index == 5) {
			menu1.style.display = "none";
			menu2.style.display = "none";
			menu3.style.display = "none";
			menu4.style.display = "none";
			menu5.style.display = "";
			menu6.style.display = "none";
			menu7.style.display = "none";
		} else if(index == 6) {
			menu1.style.display = "none";
			menu2.style.display = "none";
			menu3.style.display = "none";
			menu4.style.display = "none";
			menu5.style.display = "none";
			menu6.style.display = "";
			menu7.style.display = "none";
		} else {
			menu1.style.display = "none";
			menu2.style.display = "none";
			menu3.style.display = "none";
			menu4.style.display = "none";
			menu5.style.display = "none";
			menu6.style.display = "none";
			menu7.style.display = "";
		}
	}	

	function DisplayMenu2(index) {
		if (index == 11) {
			menu11.style.display = "";
			menu12.style.display = "none";
			menu13.style.display = "none";
			more11.style.display = "";
			more12.style.display = "none";
			more13.style.display = "none";	
			play11.style.display = "";
			play12.style.display = "none";
			play13.style.display = "none";		
		} else if(index == 12) {
			menu11.style.display = "none";
			menu12.style.display = "";
			menu13.style.display = "none";
			more11.style.display = "none";
			more12.style.display = "";
			more13.style.display = "none";		
			play11.style.display = "none";
			play12.style.display = "";
			play13.style.display = "none";					
		} else {
			menu11.style.display = "none";
			menu12.style.display = "none";
			menu13.style.display = "";
			more11.style.display = "none";
			more12.style.display = "none";
			more13.style.display = "";		
			play11.style.display = "none";
			play12.style.display = "none";
			play13.style.display = "";					
		}
	}	
	
	function DisplayMenu3(index) {
		if (index == 1) {
			theme1.style.display = "";
			theme2.style.display = "none";
			theme3.style.display = "none";
		} else if(index == 2) {
			theme1.style.display = "none";
			theme2.style.display = "";
			theme3.style.display = "none";
		} else {
			theme1.style.display = "none";
			theme2.style.display = "none";
			theme3.style.display = "";
		}
	}		



	function DisplayMenu4(index) {
		if (index == 1) {
			cf1.style.display = "";
			cf2.style.display = "none";
			cf3.style.display = "none";
		} else if(index == 2) {
			cf1.style.display = "none";
			cf2.style.display = "";
			cf3.style.display = "none";
		} else if(index == 3) {
                        cf1.style.display = "none";
                        cf2.style.display = "none";
                        cf3.style.display = "";
                } 
	}		




function reapply(){
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply

<!--
//// ÀÌ¹ÌÁö °¹¼ö
var number_of_images=2
//½ºÇÇµå Á¶Àý
var speed=4
var step=2
var whichimage=1
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3000)
else
setTimeout("slideit()",speed*1000)
}
function slidelink(){
if (whichimage==1)
window.location="#" // Ã¹¹øÂ° ÀÌ¹ÌÁö ¸µÅ©
else if (whichimage==2)
window.location="#" // µÎ¹øÂ° ÀÌ¹ÌÁö ¸µÅ©
}
//-->











function beginDrag() {

	dragThis = event.srcElement; // (1)
        dragThis = dragThis.parentElement;
        
        oldX = (event.clientX + document.body.scrollLeft); // (3)
        oldY = (event.clientY + document.body.scrollTop); 

    if (dragThis.id == ""){
          
		while (dragThis.id.indexOf("showimage") == -1) { // (2)

			 dragThis = dragThis.parentElement;
			 if (dragThis == null) { break; }

		}
    }

	if (dragThis != null) { 
		layer(dragThis.id);
/*
		if (dragThis.id == "showimage01"){ 
		document.all["showimage01"].style.zIndex = '1'; 
		document.all["showimage02"].style.zIndex = ''; 
		document.all["showimage03"].style.zIndex = ''; 
		} else if (dragThis.id == "showimage02"){ 
		document.all["showimage01"].style.zIndex = ''; 
		document.all["showimage02"].style.zIndex = '1'; 
		document.all["showimage03"].style.zIndex = ''; 
		} else if (dragThis.id == "showimage03"){ 
		document.all["showimage01"].style.zIndex = ''; 
		document.all["showimage02"].style.zIndex = ''; 
		document.all["showimage03"].style.zIndex = '1'; 
		} 
*/	



	} 
}

function layer(id) {
	AllDiv = document.getElementsByTagName("div");

	for (i=0;i<AllDiv.length;i++)	{
		if(AllDiv[i].id.indexOf("showimage") != -1) {
						//alert(AllDiv[i].id);

			eval("document.all['"+AllDiv[i].id+"'].style.zIndex = ''; ");
		}
	}
	eval("document.all['"+id+"'].style.zIndex = '1';");
}	


function dragIt() {

    
	if (dragThis == null) { return };
  
     
        newX = (event.clientX + document.body.scrollLeft);
        newY = (event.clientY + document.body.scrollTop);

        var distanceX = (newX - oldX);
        var distanceY = (newY - oldY);

        oldX = newX;
        oldY = newY;
       
      
  
        dragThis.style.pixelLeft += distanceX; // (1)
        dragThis.style.pixelTop += distanceY;
    
        event.returnValue = false;
}
function endDrag() {

	dragThis = null;
}
function setinit() {
        document.onmousemove = dragIt;
        document.onmousedown = beginDrag;
        document.onmouseup = endDrag;
        oldX=oldY=newX=newY=0, dragThis=null;
}

function hidebox(obj){

obj.style.display = "none";

}

function showbox(obj){

obj.style.display = "";

}


var old='';

function menu(name)
{

	submenu=document.getElementById('submenu_'+name).style;
	//submenu=document.all['submenu_'+name].style;
	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


function win(url,w,h)
{
window.open(''+url+'','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=200,left=250,width='+w+',height='+h+'')
}
