function controlGNB(gnbs,snbs){
    //var etcSNB = document.getElementById('gnb-etc').getElementsByTagName('div')[0];

    var index = -1;
    var timer = null;

    function overGNB(idx) {
        clearTimeout(timer);

        if (index != idx) {
            index = idx;

            for (var i = 0; i < gnbs.length; i++) {
            	//*** 20110329 ���
    						if( gnbs[i] == null || gnbs[i] == "undefined") continue;
                	jQuery(snbs[i]).stop();
            	//*** 20110329 ��

                if (i == index) {
                    gnbs[i].getElementsByTagName('a')[0].className = 'gnb on';
                    snbs[i].style.height = null;
                    snbs[i].style.minHeight = 0;

                    jQuery(snbs[i]).slideDown();
                }
                else {
                    gnbs[i].getElementsByTagName('a')[0].className = 'gnb';
                    snbs[i].style.display = 'none';
                }
            }
        }
    };

    var outGNB = function() {
        clearTimeout(timer);

        timer = setTimeout(function() {
            index = -1;

            for (var i = 0; i < gnbs.length; i++) {
            	//*** 20110329 ���
    					if( gnbs[i] == null || gnbs[i] == "undefined") continue;
            	//*** 20110329 ��


							gnbs[i].getElementsByTagName('a')[0].className = 'gnb';
              jQuery(snbs[i]).slideUp();
            }
        }, 500);
    };

    for (var i = 0; i < gnbs.length; i++) {
    	//*** 20110329 ���
    	if( gnbs[i] == null || gnbs[i] == "undefined") continue;
    	//*** 20110329 ��

      gnbs[i].onmouseover = snbs[i].onmouseover = function() {
          var idx = i;
          return function(){ overGNB(idx); };
      }();

      gnbs[i].onmouseout = outGNB;
    }

    var articlePassengerLi = document.getElementById('article-passenger').getElementsByTagName('li');
    var articleRecreationalLi = document.getElementById('article-recreational').getElementsByTagName('li');

    for(var i=0;i<articlePassengerLi.length;i++){
        articlePassengerLi[i].onmouseover = function(){
            this.getElementsByTagName('p')[0].style.color = '#0f5699';

            this.onmouseout = function(){
                this.getElementsByTagName('p')[0].style.color = '#666';
            }
        }
        articlePassengerLi[i].onclick = function(){
            location.href = this.getElementsByTagName('a')[0].href;
        }
    }

    for(var i=0;i<articleRecreationalLi.length;i++){
        articleRecreationalLi[i].onmouseover = function(){
            this.getElementsByTagName('p')[0].style.color = '#0f5699';

            this.onmouseout = function(){
                this.getElementsByTagName('p')[0].style.color = '#666';
            }
        }
        articleRecreationalLi[i].onclick = function(){
            location.href = this.getElementsByTagName('a')[0].href;
        }
    }
}
