<!--//
/*-- released : 070208 --*/
/*-- 090731: point 'px'±³Á¤ --*/
/*-- 100219: ad_h1.js·Î ÀÌÀü¹öÀü ÀúÀåÈÄ Àç±¸¼º --*/
/*-- 100219: mp_panel_obj Ãß°¡ --*/
function ad_is_number(pVal) { return !(isNaN(parseInt(pVal, 10))); }
function ad_set_cookie(name, value, expires, path, domain, secure) {
	if ((expires) && (expires.constructor == Number)) { var dt = new Date(); dt.setDate(dt.getDate() + expires); expires = dt; }
	var curCookie = name + '=' + escape(value) +
		((expires) ? '; expires=' + expires.toGMTString() : '') +
		((path) ? '; path=' + path : '') +
		((domain) ? '; domain=' + domain : '') +
		((secure) ? '; secure' : '');
	document.cookie = curCookie;
}

function ad_get_cookie(name) {
	var dc = document.cookie;
	var prefix = name + '=';
	var begin = dc.indexOf('; ' + prefix);
	if (begin == -1) {
		begin = dc.indexOf(prefix);
		if (begin != 0) return '';
	}
	else {
		begin += 2;
	}
	var end = document.cookie.indexOf(';', begin);
	if (end == -1) end = dc.length;
	return unescape(dc.substring(begin + prefix.length, end));
}

//Create Ramdom Number - [0 - (p_max - 1)]
function ad_get_random_idx(p_max) {
	return Math.floor(Math.random()*p_max);
}

function ad_get_swf_tag_v2(src,w,h,m,id,fvar,bgc,fscr) {
	var t_id = (((typeof(id) != 'undefined') && (id.toString().length > 0)) ? (' id="' + id + '" ') : '');
	var t_name = (((typeof(id) != 'undefined') && (id.toString().length > 0)) ? (' name="' + id + '" ') : '');
	m = ((typeof(m) != 'undefined') ? m : 'transparent');
	w = (((w = ((typeof(w) != 'undefined') ? parseInt(w, 10) : 0)) > 0) ? (' width="' + w + '" ') : '');
	h = (((h = ((typeof(h) != 'undefined') ? parseInt(h, 10) : 0)) > 0) ? (' height="' + h + '" ') : '');
	fvar = ((typeof(fvar) != 'undefined') ? fvar : '');
	bgc = ((typeof(bgc) != 'undefined') ? bgc : '#FFFFFF');			// bgColor default "#FFFFFF"
	fscr = ((typeof(fscr) != 'undefined') ? fscr : true);				// allowFullScreen default true

	var tag = ''
	tag += '<object '+t_id+' '+w+' '+h+' align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">';
	tag += '<param name="movie" value="'+src+'"/>';
	tag += '<param name="wmode" value="'+m+'"/>';
	tag += '<param name="quality" value="high"/>';
	tag += '<param name="menu" value="false">';
	tag += '<param name="FlashVars" value="'+fvar+'">';
	tag += '<param name="bgcolor" value="'+bgc+'"/>';
	tag += '<param name="allowFullScreen" value="'+fscr+'" />';
	tag += '<param name="allowScriptAccess" value="always" />';
	tag += '<embed '+t_name +' '+w+' '+h+' src="'+src+'" wmode="'+m+'" quality="high" menu="false" FlashVars="'+fvar+'" bgcolor="'+bgc+'" allowFullScreen="'+fscr+'" allowScriptAccess="always" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash"></embed>';
	tag += '</object>';
	return tag;
}

function ad_get_img_tag(src,w,h,id,etc) {
	etc = ((typeof(etc) == 'undefined') ? '' : etc);
	w = (((w = ((typeof(w) != 'undefined') ? parseInt(w, 10) : 0)) > 0) ? (' width="' + w + '" ') : '');
	h = (((h = ((typeof(h) != 'undefined') ? parseInt(h, 10) : 0)) > 0) ? (' height="' + h + '" ') : '');
	id = (((typeof(id) != 'undefined') && (id.toString().length > 0)) ? (' id="' + id + '" ') : '');
	var tag = '<img '+id+' src="'+src+'" '+w+' '+h+' '+etc+' border="0">';
	return tag;
}

function ad_get_html_tag(id) {
	var obj = document.getElementById(id);
	return obj.innerHTML;
}

// Object multi display - [drm:061121]
function mp_display_obj(id) {
	this.id = id;						// ½Äº°¸íÄª
	this.start_idx = -1;		// Default Start Index
	this.width = 0;					// width
	this.height = 0;				// height
	this.swf_m = '';				// Flash mode
	this.view_items = 1;
	this.blank_hori = 0;
	this.zindex = 0;
	this.delay = 0;					// Time
	this.pausemouseover = true;
	this.call_ad_pub_vw = false;		//-- ad_pub_vw()È£Ãâ¿©ºÎ

	this.m_a_item = null;		//-- [ResType, ResSource, Link, AdCode]
	this.m_a_adcode = null;	//-- adcode
	this.is_pause = false;	//-- µ¿ÀÛ¿©ºÎ
	this.obj;
	this.is_init = false;
	this.set_data = function (p_arr) { this.m_a_item = p_arr; }

	this.get_start_idx = function () {
		this.start_idx = ad_get_cookie(this.id);
		this.start_idx = (((ad_is_number(this.start_idx) == false) || (this.is_valid_idx(this.start_idx) == false)) ? ad_get_random_idx(this.m_a_item.length) : this.start_idx);
		return parseInt(this.start_idx, 10);
	}
	this.set_start_idx = function (p_idx) {
		if (!ad_is_number(p_idx)) { return; }
		p_idx %= this.m_a_item.length;
		var expireDate = new Date;
		expireDate.setMonth(expireDate.getMonth() + 12);
		ad_set_cookie(this.id, p_idx, expireDate, '/');
	}
	this.inc_start_idx = function () {
		this.start_idx++;
		this.start_idx %= this.m_a_item.length;
	}
	this.dec_start_idx = function () {
		this.start_idx += (this.m_a_item.length - 1);
		this.start_idx %= this.m_a_item.length;
	}

	this.init = function () {
		this.obj = document.getElementById(this.id);
		if (!this.obj) { return; }

		var i;
		var a_tmp_item = new Array;
		var a_tmp_adcode = new Array;
		var a_data, s_data_type, s_data_res, s_data_link, s_adcode;
		var s_tag, s_style;
		var w = parseInt(this.width, 10);
		var h = parseInt(this.height, 10);
		var is_fixed_size = ((w > 0) && (h > 0));
		var s_overflow = '';

		if (this.m_a_item.constructor != Array) { this.m_a_item = new Array; }

		for (i = 0; i < this.m_a_item.length; i++) {
			a_data = this.m_a_item[i];
			if (a_data.constructor != Array) { continue; }
			if (a_data.length < 2) { continue; }
			s_data_type = a_data[0].toLowerCase();
			s_data_res = ((a_data.length >= 2) ? a_data[1] : '');
			s_data_link = ((a_data.length >= 3) ? a_data[2] : '');
			s_adcode = ((a_data.length >= 4) ? ((a_data[3].length == 10) ? a_data[3] : '') : '');
			s_tag = '';
			if (s_data_type == 'img')          { s_tag += ad_get_img_tag(s_data_res); }
			else if (s_data_type == 'swf')     { s_tag += ad_get_swf_tag_v2(s_data_res, w, h, this.swf_m); }
			else if (s_data_type == 'html')    { s_tag += ad_get_html_tag(s_data_res); }
			else { continue; }
			if (s_data_link.length > 0) {
				s_tag = ('<a href="'+s_data_link+'" target="_blank">' + s_tag + '</a>');
			}
			s_style = '';
			if (is_fixed_size == true) {
				s_style = 'style="width:' + w + 'px; height:' + h + 'px;  overflow: hidden;"';
			}
			s_tag = '<div id="'+this.get_item_id(i)+'" ' + s_style + '>' + s_tag + '</div>';
			a_tmp_item[i] = s_tag;
			a_tmp_adcode[i] = s_adcode;
		}

		w = (((w = parseInt(w, 10)) > 0) ? (' width:' + w + 'px; ') : '');
		h = (((h = parseInt(h, 10)) > 0) ? (' height:' + ((h * this.view_items) + (this.blank_hori * (this.view_items - 1))) + 'px; ') : '');

		s_style = '';
		s_overflow = 'hidden';
		if (parseInt(this.zindex, 10) > 0) {
			s_style += 'z-index: ' + this.zindex + '; ';
		}
		s_tag = '<div id="'+this.get_items_id()+'" style="position:relative; overflow:'+s_overflow+'; '+s_style+w+h+'"></div>';
		this.obj.innerHTML = s_tag;
		this.obj = document.getElementById(this.get_items_id());
		this.obj.ad_obj = this;
		if ((this.delay > 0) && (this.pausemouseover ==  true)) {
			if (!this.obj.onmouseover) { this.obj.onmouseover = function() { this.ad_obj.onmouseover(); } }
			if (!this.obj.onmouseout)  { this.obj.onmouseout =  function() { this.ad_obj.onmouseout(); } }
		}

		this.m_a_item = a_tmp_item;
		this.m_a_adcode = a_tmp_adcode;
		this.is_init = true;
	}
	this.onmouseover = function () { if (this.pausemouseover) { this.is_pause = true; } }
	this.onmouseout = function ()  { if (this.pausemouseover) { this.is_pause = false; } }

	this.run = function () {
		var b_is_auto_inc_start_idx = true;

		//-- ¿¹¿Ü»óÈ²Ã³¸® {
		switch (this.id.toUpperCase()) {
			case '':	break;
			default:	break;
		}
		//-- ¿¹¿Ü»óÈ²Ã³¸® }

		if (!this.is_init) {
			this.init();
		}
		if (!this.obj) { return; }
		if (this.m_a_item.length <= 0) { return; }

		this.start_idx = this.get_start_idx();
		this.disp();
		if (b_is_auto_inc_start_idx == true) {
			this.set_start_idx(this.start_idx + 1);
		}

		if (this.call_ad_pub_vw == true) {
			this.ad_pub_vw();
		}
	}
	this.ad_pub_vw = function () {
		//-- ad_pub_vw() at /script/ad_pub_proc.js
		if (typeof(ad_pub_vw) == 'function') {
			var s_adcode = this.m_a_adcode[this.start_idx];
			s_adcode =  ((s_adcode.length == 10) ? s_adcode : '');
			ad_pub_vw(this.id, s_adcode);
		}
	}
	this.auto_disp = function () {
		if ((this.delay > 0) && (this.pausemouseover ==  true)) {
			if (this.is_pause) { window.setTimeout(this.id+'.auto_disp()', this.delay); return; }
		}
		this.next();
	}
	this.disp = function () {
		var n_idx;
		var s_tag = '';
		var s_tag_hori = ((parseInt(this.blank_hori, 10) > 0) ? '<div style="margin-bottom:' + this.blank_hori + '"></div>' : '');

		for (var i = 0; (i < this.view_items) && (i < this.m_a_item.length); i++) {
			n_idx = ((this.start_idx + i) % this.m_a_item.length);
			s_tag += (((i > 0) ? s_tag_hori : '') + this.m_a_item[n_idx]);
		}
		this.obj.innerHTML = s_tag;
		if (this.delay > 0) { window.setTimeout(this.id+'.auto_disp()', this.delay); }
	}
	this.next = function () {
		this.inc_start_idx();
		this.disp();
	}
	this.prev = function () {
		this.dec_start_idx();
		this.disp();
	}
	//-- id naming rule
	this.get_items_id = function() { return (this.id + '_items'); }
	this.get_item_id = function(p_idx) { return (this.id + '_item' + p_idx); }
	this.is_valid_idx = function(p_idx) { return ((p_idx >= 0) && (p_idx < this.m_a_item.length)) }
}

// Object panel display
function mp_panel_obj(id) {
	this.id = id;						// ½Äº°¸íÄª
	this.start_idx = -1;		// Default Start Index
	this.width = 0;					// width
	this.height = 0;				// height
	this.cur_idx = -1;			// displayed Index
	this.delay = 0;					// Time
	this.pausemouseover = true;
	this.call_ad_pub_vw = false;	//-- ad_pub_vw()È£Ãâ¿©ºÎ

	this.m_a_item = null;		//-- [ResType, ResSource, Link, AdCode]
	this.m_a_adcode = null;	//-- adcode
	this.m_a_div = null;
	this.obj;
	this.is_init = false;
	this.set_data = function (p_arr) { this.m_a_item = p_arr; }
	this.get_start_idx = function () {
		this.start_idx = ad_get_cookie(this.id);
		this.start_idx = (((ad_is_number(this.start_idx) == false) || (this.is_valid_idx(this.start_idx) == false)) ? ad_get_random_idx(this.m_a_item.length) : this.start_idx);
		return parseInt(this.start_idx, 10);
	}
	this.set_start_idx = function (p_idx) {
		if (!ad_is_number(p_idx)) { return; }
		p_idx %= this.m_a_item.length;
		var expireDate = new Date;
		expireDate.setMonth(expireDate.getMonth() + 12);
		ad_set_cookie(this.id, p_idx, expireDate, '/');
	}
	this.inc_start_idx = function () {
		this.start_idx++;
		this.start_idx %= this.m_a_item.length;
	}
	this.dec_start_idx = function () {
		this.start_idx += (this.m_a_item.length - 1);
		this.start_idx %= this.m_a_item.length;
	}
	this.on_change = null;			// callback function

	this.init = function () {
		this.obj = document.getElementById(this.id);
		if (!this.obj) { return; }

		var i;
		var a_tmp_item = new Array;
		var a_tmp_adcode = new Array;
		var a_data, s_data_type, s_data_res, s_data_link, s_adcode;
		var s_tag_init, s_tag, s_tag_item, s_style, s_display;
		var w = parseInt(this.width, 10);
		var h = parseInt(this.height, 10);
		var is_fixed_size = ((w > 0) && (h > 0));

		if (this.m_a_item.constructor != Array) { this.m_a_item = new Array; }

		this.start_idx = this.get_start_idx();

		s_tag_init = '';
		for (i = 0; i < this.m_a_item.length; i++) {
			a_data = this.m_a_item[i];
			if (a_data.constructor != Array) { continue; }
			if (a_data.length < 2) { continue; }
			s_data_type = a_data[0].toLowerCase();
			s_data_res = ((a_data.length >= 2) ? a_data[1] : '');
			s_data_link = ((a_data.length >= 3) ? a_data[2] : '');
			s_adcode = ((a_data.length >= 4) ? ((a_data[3].length == 10) ? a_data[3] : '') : '');
			s_tag_item = '';
			if (s_data_type == 'img')          { s_tag_item += ad_get_img_tag(s_data_res); }
			else if (s_data_type == 'swf')     { s_tag_item += ad_get_swf_tag_v2(s_data_res, w, h, this.swf_m); }
			else if (s_data_type == 'html')    { s_tag_item += ad_get_html_tag(s_data_res); }
			if (s_data_link.length > 0) {
				s_tag_item = ('<a href="'+s_data_link+'" target="_blank">' + s_tag_item + '</a>');
			}

			s_display = ((i == this.start_idx) ? '' : 'none');
			s_style = 'display:' + s_display + '; ';
			if (is_fixed_size == true) {
				s_style += 'width:' + w + 'px; height:' + h + 'px;  overflow: hidden;';
			}
			s_tag = '<div id="' + this.get_item_id(i) + '" style="' + s_style + '">';
			//-- prepare default item
			if ((i == this.start_idx)) {
				s_tag += s_tag_item;
				this.cur_idx = parseInt(this.start_idx, 10);
			}
			s_tag += '</div>';
			s_tag_init += s_tag;

			a_tmp_item[i] = s_tag_item;
			a_tmp_adcode[i] = s_adcode;
		}

		var w = this.width;
		var h = this.height;
		w = (((w = parseInt(w, 10)) > 0) ? (' width:' + w + 'px; ') : '');
		h = (((h = parseInt(h, 10)) > 0) ? (' height:' + h + 'px; ') : '');

		var s_style_items = '';
		var s_overflow = 'hidden';
		s_tag = '<div id="'+this.get_items_id()+'" style="position:relative; overflow:'+s_overflow+'; '+s_style_items+w+h+'">' + s_tag_init + '</div>';

		this.obj.innerHTML = s_tag;
		this.obj = document.getElementById(this.get_items_id());
		this.obj.ad_obj = this;
		if ((this.delay > 0) && (this.pausemouseover ==  true)) {
			if (!this.obj.onmouseover) { this.obj.onmouseover = function() { this.ad_obj.onmouseover(); } }
			if (!this.obj.onmouseout)  { this.obj.onmouseout =  function() { this.ad_obj.onmouseout(); } }
		}
		this.m_a_item = a_tmp_item;
		this.m_a_adcode = a_tmp_adcode;
		this.m_a_div = new Array;
		for (i = 0; i < this.m_a_item.length; i++) {
			this.m_a_div[i] = document.getElementById(this.get_item_id(i));
		}
		this.is_init = true;
	}
	this.onmouseover = function () { if (this.pausemouseover) { this.is_pause = true; } }
	this.onmouseout = function ()  { if (this.pausemouseover) { this.is_pause = false; } }
	this.run = function () {
		var b_is_auto_inc_start_idx = true;

		//-- ¿¹¿Ü»óÈ²Ã³¸® {
		switch (this.id.toUpperCase()) {
			case 'R100201':
			case 'R100202':
			case 'R100203':
			case 'R100204':
				b_is_auto_inc_start_idx = false;
				break;
		}
		//-- ¿¹¿Ü»óÈ²Ã³¸® }


		if (!this.is_init) {
			this.init();
		}
		if (!this.obj) { return; }
		if (this.m_a_item.length <= 0) { return; }

		//--init item already prepared
		//--this.start_idx = this.get_start_idx();
		this.disp();
		if (b_is_auto_inc_start_idx == true) {
			this.set_start_idx(this.start_idx + 1);
		}

		if (this.call_ad_pub_vw == true) {
			this.ad_pub_vw();
		}
	}
	this.ad_pub_vw = function() {
		//-- ad_pub_vw() at /script/ad_pub_proc.js
		if (typeof(ad_pub_vw) == 'function') {
			var s_adcode = this.m_a_adcode[this.start_idx];
			s_adcode =  ((s_adcode.length == 10) ? s_adcode : '');
			ad_pub_vw(this.id, s_adcode);
		}
	}
	this.auto_disp = function () {
		if ((this.delay > 0) && (this.pausemouseover ==  true)) {
			if (this.is_pause) { window.setTimeout(this.id+'.auto_disp()', this.delay); return; }
		}
		this.next();
	}
	this.disp = function () {
		this.show_panel(this.start_idx)
		if (this.delay > 0) { window.setTimeout(this.id+'.auto_disp()', this.delay); }
	}
	this.next = function () {
		this.inc_start_idx();
		this.disp();
	}
	this.prev = function () {
		this.dec_start_idx();
		this.disp();
	}
	this.show_panel = function (p_idx) {
		if (!this.is_valid_idx(p_idx)) { return; }
		var s_tag = this.m_a_item[p_idx];
		//-- first time build HTML
		if (s_tag.length > 0) {
			this.m_a_div[p_idx].innerHTML = s_tag;
			this.m_a_item[p_idx] = '';
		}
		this.display(this.m_a_div[p_idx], true);
		this.cur_idx = parseInt(p_idx, 10);

		for (i = 0; i < this.m_a_item.length; i++) {
			if (i != p_idx) {
				this.display(this.m_a_div[i], false);
			}
		}
		if (typeof(this.on_change) == 'function') {
			this.on_change(this);
		}
	}
	//-- id naming rule
	this.get_items_id = function() { return (this.id + '_items'); }
	this.get_item_id = function(p_idx) { return (this.id + '_item' + p_idx); }
	this.is_valid_idx = function(p_idx) { return ((p_idx >= 0) && (p_idx < this.m_a_item.length)) }

	this.get_current_item_index = function() { return (parseInt(this.cur_idx, 10)); }
	this.get_item_count = function() { return (this.m_a_item.length); }
	this.display = function (p_obj, p_is_on) {
		if (p_obj) {
			p_obj.style.display = (p_is_on ? '' : 'none');
		}
	}
}

function mp_scroll_obj(id) {
	this.id = id;			// ½Äº°¸íÄª
	this.start_idx = -1;		// Default Start Index
	this.width = 0;					// width
	this.height = 0;				// height
	this.swf_m = '';				// Flash mode
	this.scroll_items = 1;
	this.view_items = 1;
	this.scroll_speed = 1;
	this.delay = 0;					// Time
	this.pausemouseover = true;
	this.call_ad_pub_vw = false;	//-- ad_pub_vw()È£Ãâ¿©ºÎ

	this.item_height = 0;
	this.scroll_item_cnt = 0;
	this.current_top_item = 0;
	this.time_id;

	this.m_a_item = null;		//-- [ResType, ResSource, Link]
	this.is_pause = false;	// µ¿ÀÛ¿©ºÎ
	this.obj;
	this.is_init = false;
	this.set_data = function (p_arr) { this.m_a_item = p_arr; }
	this.get_start_idx = function () {
		this.start_idx = ad_get_cookie(this.id);
		this.start_idx = (((ad_is_number(this.start_idx) == false) || (this.is_valid_idx(this.start_idx) == false)) ? ad_get_random_idx(this.m_a_item.length) : this.start_idx);
		return parseInt(this.start_idx, 10);
	}
	this.set_start_idx = function (p_idx) {
		if (!ad_is_number(p_idx)) { return; }
		p_idx %= this.m_a_item.length;
		var expireDate = new Date;
		expireDate.setMonth(expireDate.getMonth() + 12);
		ad_set_cookie(this.id, p_idx, expireDate, '/');
	}
	this.inc_start_idx = function () {
		this.start_idx++;
		this.start_idx %= this.m_a_item.length;
	}
	this.dec_start_idx = function () {
		this.start_idx += (this.m_a_item.length - 1);
		this.start_idx %= this.m_a_item.length;
	}

	this.init = function () {
		this.obj = document.getElementById(this.id);
		if (!this.obj) { return; }

		var i, n_idx;
		var a_data, s_data_type, s_data_res, s_data_link, s_tag, s_tag_all, s_style;

		if (this.m_a_item.constructor != Array) { this.m_a_item = new Array; }

		this.start_idx = this.get_start_idx();

		s_tag = '<div id="'+this.get_items_id()+'" style="position:relative; overflow:hidden; width:'+this.width+'px; height:'+this.height+'px;"></div>';
		this.obj.innerHTML = s_tag;
		this.item_height = (this.height/this.view_items);
		s_style = 'style="position:absolute; left:0px; top:0px; display:hidden; width:'+this.width+'px; height:'+this.item_height+'px;"';

		this.obj = document.getElementById(this.get_items_id());
		this.obj.ad_obj = this;
		if (this.pausemouseover ==  true) {
			if (!this.obj.onmouseover) { this.obj.onmouseover = function() { this.ad_obj.onmouseover(); } }
			if (!this.obj.onmouseout)  { this.obj.onmouseout =  function() { this.ad_obj.onmouseout(); } }
		}

		s_tag_all = '';
		for (i = 0; i < this.m_a_item.length; i++) {
			n_idx = ((this.start_idx + i) % this.m_a_item.length);
			a_data = this.m_a_item[n_idx];
			if (a_data.constructor != Array) { continue; }
			if (a_data.length < 2) { continue; }
			s_data_type = a_data[0].toLowerCase();
			s_data_res = a_data[1];
			s_data_link = ((a_data.length == 3) ? a_data[2] : '');
			s_tag = '';
			if (s_data_type == 'img') {       s_tag += ad_get_img_tag(s_data_res); }
			else if (s_data_type == 'swf') {  s_tag += ad_get_swf_tag_v2(s_data_res, this.width, this.height, this.swf_m); }
			else if (s_data_type == 'html') { s_tag += ad_get_html_tag(s_data_res); }
			else { continue; }
			if (s_data_link.length > 0) {     s_tag = ('<a href="'+s_data_link+'" target="_blank">' + s_tag + '</a>'); }
			s_tag = '<div id="'+this.get_item_id(i)+'" ' + s_style + '>' + s_tag + '</div>';
			s_tag_all += s_tag;
		}
		this.obj.innerHTML = s_tag_all;

		for (i = 0; i < this.m_a_item.length; i++) {
			this.m_a_item[i] = document.getElementById(this.get_item_id(i));
			this.m_a_item[i].style.top = (this.item_height * i);
			this.m_a_item[i].style.display = 'block';
		}

		this.is_init = true;
	}
	this.onmouseover = function () { if (this.pausemouseover) { this.is_pause = true;  } }
	this.onmouseout = function ()  { if (this.pausemouseover) { this.is_pause = false; } }
	this.run = function () {
		var b_is_auto_inc_start_idx = true;

		//-- ¿¹¿Ü»óÈ²Ã³¸® {
		switch (this.id.toUpperCase()) {
			case '':	break;
			default:	break;
		}
		//-- ¿¹¿Ü»óÈ²Ã³¸® }

		if (!this.is_init) { this.init(); }
		if (!this.obj) { return; }
		if (this.m_a_item.length <= 0) { return; }

		this.is_pause = true;
		this.scroll_item_cnt = 0;
		this.time_id = window.setTimeout(this.id+'.scroll()', this.scroll_speed);
		window.setTimeout(this.id+".is_pause = false", this.delay);
		if (b_is_auto_inc_start_idx == true) {
			this.set_start_idx(this.start_idx + 1);
		}

		if (this.call_ad_pub_vw == true) {
			this.ad_pub_vw();
		}
	}
	this.ad_pub_vw = function () {
		//-- ad_pub_vw() at /script/ad_pub_proc.js
		if (typeof(ad_pub_vw) == 'function') {
			ad_pub_vw(this.id);
		}
	}
	this.scroll = function () {
		if (this.is_pause) { this.time_id = window.setTimeout(this.id+'.scroll()', this.scroll_speed); return; }
		var delay = this.scroll_speed;
		var obj_style;
		if (!this.is_pause) {
			for (var i = 0; i < this.m_a_item.length; i++) {
				obj_style = this.m_a_item[i].style;
				obj_style.top = parseInt(obj_style.top, 10) - 1;
				if (parseInt(obj_style.top, 10) <= this.item_height * (-1) ) {
					obj_style.top = this.item_height * (this.m_a_item.length - 1);
				}
				if (parseInt(obj_style.top, 10) == 0) {
					this.current_top_item = i;
					this.scroll_item_cnt++;
					if (this.scroll_item_cnt >= this.scroll_items) {
						delay = this.delay;
						this.scroll_item_cnt = 0;
					}
				}
			}
		}
		this.time_id = window.setTimeout(this.id+'.scroll()', delay);
	}
	this.current_top_position = function() {
		var obj_style = this.m_a_item[this.current_top_item].style;
		return parseInt(obj_style.top, 10);
	}
	this.up = function() {
		window.clearTimeout(this.time_id);
		var delta = (this.item_height - (this.current_top_position() * -1));
		delta = ((delta == 0) ? this.item_height : delta);

		for (var i = 0; i < this.m_a_item.length; i++) {
			obj_style = this.m_a_item[i].style;
			obj_style.top = parseInt(obj_style.top, 10) - (delta);
			if (parseInt(obj_style.top, 10) <= (this.item_height * (-1))) {
				obj_style.top = this.item_height * (this.m_a_item.length - 1);
			}
			if (parseInt(obj_style.top, 10) == 0) {
				this.current_top_item = i;
			}
		}
		this.scroll_item_cnt = 0;
		this.time_id = window.setTimeout(this.id+'.scroll()', this.delay);
	}
	this.dn = function() {
		window.clearTimeout(this.time_id);
		var delta = (this.current_top_position() * -1);
		delta = ((delta == 0) ? this.item_height : delta);

		for (var i = 0; i < this.m_a_item.length; i++) {
			obj_style = this.m_a_item[i].style;
			obj_style.top = parseInt(obj_style.top, 10) + (delta);
			if (parseInt(obj_style.top, 10) <= this.item_height * (-1) ) {
				obj_style.top = this.item_height * (this.m_a_item.length - 1);
			}
			if (parseInt(obj_style.top, 10) >= (this.item_height * this.m_a_item.length)) {
				obj_style.top = 0;
			}
			if (parseInt(obj_style.top, 10) == 0) {
				this.current_top_item = i;
			}
		}
		this.scroll_item_cnt = 0;
		this.time_id = window.setTimeout(this.id+'.scroll()', this.delay);
	}
	//-- id naming rule
	this.get_items_id = function() { return (this.id + '_items'); }
	this.get_item_id = function(p_idx) { return (this.id + '_item' + p_idx); }
	this.is_valid_idx = function(p_idx) { return ((p_idx >= 0) && (p_idx < this.m_a_item.length)) }
}
//-->
