function initNavigation(seq,sec) {

	nav = document.getElementById("mainmenu");
	nav.menu = new Array();
	nav.current = null;
	nav.menuseq = 0;
	navLen = nav.childNodes.length;

	allA = nav.getElementsByTagName("li")
	for(k = 0; k < allA.length; k++) {
		allA.item(k).onmouseover = allA.item(k).onfocus = function () {
			nav.isOver = true;
		}
		allA.item(k).onmouseout = allA.item(k).onblur = function () {
			nav.isOver = false;
		}
	}

	for (i = 0; i < navLen; i++) {
		navItem = nav.childNodes.item(i);

		if (navItem.tagName != "LI")
			continue;

		navAnchor = navItem.getElementsByTagName("a").item(0);
		navAnchor.submenu = navItem.getElementsByTagName("ul").item(0);


		navAnchor.onmouseover = navAnchor.onfocus = function () {

			if (nav.current) {
				menuImg = nav.current.childNodes.item(0);
				menuImg.src = menuImg.src.replace("ov.gif", ".gif");

				if (nav.current.submenu)
					nav.current.submenu.style.display = "none";
				nav.current = null;
			}

			if (nav.current != this) {
				menuImg = this.childNodes.item(0);
				menuImg.src = menuImg.src.replace(".gif", "ov.gif");

				if (this.submenu)
					this.submenu.style.display = "block";
				nav.current = this;
			}

			nav.isOver = true;
		}
		nav.menuseq++;
		nav.menu[nav.menuseq] = navAnchor;
	}
	if (nav.menu[seq])
		nav.menu[seq].onmouseover();
}


var pop_rolling = function(popContainer){ 
    if(popContainer.nodeType==1){ 
        this.popContainer = popContainer; 
    }else{ 
        this.popContainer = document.getElementById(popContainer); 
    } 
    this.is_rolling = false; 
    this.counter = 0; 
    this.pop_children = null; 
    this.time_dealy = 3000; 
    this.time_timer = null; 
    this.time_timer_pause=null; 
    this.mouseover=false; 
    this.init(); 
} 

pop_rolling.prototype.init = function(){ 
    var pop_children = this.popContainer.childNodes; 
     for(var i=(pop_children.length-1); 0<=i; i--){ 
        if(pop_children[i].nodeType==1){ 

        }else{ 
            this.popContainer.removeChild(pop_children[i]); 
        } 
    } 

    this.pop_children = this.popContainer.childNodes; 
    var oRoll = this;  
    var margin_top = 140; 
    margin_top=170 - this.pop_children.length*14; 

    document.write("<style>#popzone_banner .popup_btn { position: absolute; margin:0px;padding:0px;margin-top:95px;margin-left:"+margin_top+"px;border:0px solid #ff0000;z-index:2;}</style>") 
     
    for (var i=0; i<this.pop_children.length; i++) { 
            this.pop_children[i].childNodes[2].onmouseover = function() {
                oRoll.pause(this.firstChild); 
                return false; 
            } 
            this.pop_children[i].childNodes[2].onmouseout  = function() {
                oRoll.resume(this.firstChild); 
                return false; 
            } 
    }     
    for (var i=0; i<this.pop_children.length; i++) { 
        for (var k=0; k<this.pop_children[i].childNodes.length; k++) {             
            if (this.pop_children[i].childNodes[k].nodeType == 1) {             
                this.pop_children[i].childNodes[k].onmouseover = function() { 
                    oRoll.moveAt(this.firstChild); 
                    return false; 
                } 
                this.pop_children[i].childNodes[k].onfocus = function() { 
                    oRoll.moveAt(this.firstChild); 
                    return false; 
                } 
                break;     
            } 
        } 
    } 
} 

pop_rolling.prototype.moveAt = function(oBtn){ 
    var i = oBtn.id.substring(6); 
    this.mouseover = true; 
    if(!this.time_timer_pause){ 
        this.counter = (i-1); 
        this.move_right(); 
        this.pause(); 
    } 
} 

pop_rolling.prototype.move_right = function(){ 
    var oRoll = this; 
    var nTemp = 0; 
    for(var i=0, m=oRoll.pop_children.length; i<m; i++){ 

        nTemp = 0; 
        for (var k=0; k<this.pop_children[i].childNodes.length; k++) { 

            if (this.pop_children[i].childNodes[k].nodeType == 1) { 
                nTemp++; 
                if (nTemp == 1) { 
                    var child_1 = oRoll.pop_children[i].childNodes[k].childNodes[0];    
                    var child_a = oRoll.pop_children[i].childNodes[k];    
                    child_1.src = child_1.src.replace(/on.gif/gi,".gif"); 
                    child_a.style.left = i*22+"px"; 

                    if (i == oRoll.counter) { 
                        child_1.src = child_1.src.replace(/.gif/gi,"on.gif"); 
                    } 
                } 
                else { 
                    var child_2 = oRoll.pop_children[i].childNodes[k].childNodes[0];   
                    child_2.style.display = "none"; 

                    if (i == oRoll.counter) { 
                        child_2.style.display = "block"; 
                    } 
                } 

            } 
        } 
    } 

    oRoll.counter++; 
    if (oRoll.counter >= oRoll.pop_children.length) { 
    oRoll.counter = 0; 
    } 
} 



pop_rolling.prototype.start = function(){ 
    var oRoll = this; 
    this.stop(); 
    var img_btn1 = document.getElementById("play"); 
    var img_btn2 = document.getElementById("stop"); 
    img_btn1.src = img_btn1.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/on.gif/gi,".gif");
    img_btn1.src = img_btn1.src.replace(/.gif/gi,"on.gif"); 

    this.is_rolling = true; 

    var act = function(){ 
        if(oRoll.is_rolling){ 
            oRoll.move_right(); 
        } 
    } 
    if (!this.time_timer) { 
        act();    
    } 
    //this.time_timer = setInterval(act,this.time_dealy); 
} 

pop_rolling.prototype.pause = function(){ 
    var img_btn1 = document.getElementById("play"); 
    var img_btn2 = document.getElementById("stop"); 
    img_btn1.src = img_btn1.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/.gif/gi,"on.gif"); 

    this.is_rolling = false; 
} 
pop_rolling.prototype.resume = function(){ 
    var img_btn1 = document.getElementById("play"); 
    var img_btn2 = document.getElementById("stop"); 
    img_btn1.src = img_btn1.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/on.gif/gi,".gif");
    img_btn1.src = img_btn1.src.replace(/.gif/gi,"on.gif"); 
  
    this.is_rolling = true; 
} 

pop_rolling.prototype.stop = function(){ 
    var img_btn1 = document.getElementById("play"); 
    var img_btn2 = document.getElementById("stop"); 
    img_btn1.src = img_btn1.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/on.gif/gi,".gif");
    img_btn2.src = img_btn2.src.replace(/.gif/gi,"on.gif"); 

    this.is_rolling = false; 
    if(!this.time_timer){ 
        clearInterval(this.time_timer); 
    } 
    this.time_timer = null; 
} 





<!-- »õ·Î¿îÃ¢
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->




//½½¶óÀÌµùÄü¸Þ´º//
function initMoving(target, topPosition, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = topPosition;
	obj.initLeft = "680px";
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.style.left = "928px";
	obj.style.top = obj.top + "px";

	obj.getTop = function() {
		if (document.documentElement.scrollTop) {
			return document.documentElement.scrollTop;
		} else if (window.pageYOffset) {
			return window.pageYOffset;
		} else {
			return 0;
		}
	}
	
	obj.getHeight = function() {
		if (self.innerHeight) {
			return self.innerHeight;
		} else if(document.documentElement.clientHeight) {
			return document.documentElement.clientHeight;
		} else {
			return 500;
		}
	}
	obj.move = setInterval(function() {
		//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		pos = obj.getTop() + topPosition;

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit
		if (pos < obj.topLimit)
			pos = obj.topLimit

		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 30)
}






//tab¸Þ´º ÀÌ¹ÌÁö on/off
function tab_notice(tabMenu_name, tabLayer_name, more_name, idx){	
	for(i=1 ; i<=12 ; i++){
		objImage = document.getElementById(tabMenu_name+i);
		objLayer = document.getElementById(tabLayer_name+i);
		objMore = document.getElementById(more_name+i);
		
		try{
			if(i == idx){
				objImage.src = objImage.src.replace("ov.gif", ".gif");
				objImage.src = objImage.src.replace(".gif", "ov.gif");
				objLayer.style.visibility = "visible";
				objMore.style.visibility = "visible";
			}else{
				objImage.src = objImage.src.replace("ov.gif", ".gif");  
				objLayer.style.visibility = "hidden";
				objMore.style.visibility = "hidden";
			}
		}catch(e){ }
	}
}





// flash visual
function makeflash(Url,Width,Height,m,s)
{
  document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + Width + "\" height=\"" + Height + "\">");
  document.writeln("<param name=\"movie\" value=\"" + Url + "\">");
  document.writeln("<param name=\"quality\" value=\"high\" />");
  document.writeln("<param name=\"wmode\" value=\"transparent\">");
  document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + Width + "\"  height=\"" + Height + "\" wmode=\"transparent\"></embed>");
  document.write("<param name=\"FlashVars\" value=\"m="+m+"&s="+s+"\">");
  document.writeln("</object>");
}






