var CTab = Class.create(); CTab.prototype = { initialize: function() { this.now_layer = null; this.layer_list = Array(); this.timer = null; }, addTab: function(list) { ar = list.split(","); ar.each((function(v){ this.layer_list.push(v); }).bind(this)); }, //tab¿¡ µû¸¥ ÄÁÅÙÃ÷ ºÎºÐÀº ·¹À̾îid µÚ¿¡ _box¸¦ Ãß°¡ÇÏ¿© ±×·ìÇÎ. show: function(tar) { this.layer_list.each((function(v){ $(v+"_box").hide(); $(v).removeClassName('selected'); }).bind(this)); $(tar+"_box").show(); $(tar).addClassName('selected'); }, onTabOver: function(tar) { if(this.timer) this.clearEvent(); this.timer = setTimeout((function(){ this.show(tar); }).bind(this),100); }, onTabOut: function() { this.clearEvent(); }, clearEvent: function() { clearTimeout(this.timer); this.timer = null; }, blank: function() { } }