function mainlist_roll() {
	// ¹è¿­ ÀÌ¸§
	this.name = "list";
	// ½ÃÀÛÇÒ ÀÎµ¦½º °ª
	this.cur_idx = 1;
	// ¸¶Áö¸· ÀÎµ¦½º °ª
	this.last_idx;
	// º¸¿©Áö´Â ÀÎµ¦½º °ª
	this.show_idx = 1;
	// ÀÌ¹ÌÁö ¼î Å¸ÀÓ(ÃÊ)
	this.show_sec = 5;
	// ÃÊ Ã¼Å·°ª Ã¼Å·
	this.chk_cnt = 0;
	// Ä¿¼­ À§Ä¡½Ã flow ¸ØÃã
	this.stop = false;

	// ½Ã°£ÅÒÀ» µÎ°í ÀÚµ¿À¸·Î ÀÌ¹ÌÁö Ã¼ÀÎÁö
	this.auto_flow = function(){
		if(this.stop != true) {
			if(this.chk_cnt + 1 == this.show_sec) {
				this.chk_cnt = 1;
				this.next_list();
			}
			else {
				this.chk_cnt++;
			}
		}
		window.setTimeout(this.name + ".auto_flow();", 1000);
	}

	// flow ¸ØÃã
	this.pause  = function() {
		this.stop = true;
	}

	// flow ´Ù½Ã ½ÃÀÛ
	this.resume = function() {
		this.stop = false;
	}

	// ´ÙÀ½ Æ÷Åä º¸±â
	this.next_list = function () {
		if(this.cur_idx == this.last_idx) {
			this.cur_idx = 1;
		}
		else {
			this.cur_idx++;
		}
		this.show_list(this.cur_idx);
	}

	// ÀÌÀü Æ÷Åä º¸±â
	this.prev_list = function () {
		if(this.cur_idx == 1) {
			this.cur_idx = this.last_idx;
		}
		else {
			this.cur_idx--;
		}
		this.show_list(this.cur_idx);
	}

	this.show_list = function (idx) {
		// ±âÁ¸ÀÇ º¸¿©Áö´Â ¾ÆÀÌµð »ç¶óÁö°Ô ÇÏ±â
		var show_id = this.name + this.show_idx;
		show_obj = document.getElementById(show_id);
		show_obj.style.display = "none";

		// »õ·Î ¼±ÅÃµÈ ¾ÆÀÌµð º¸ÀÌ°Ô ÇÏ±â
		var div_id  = this.name + idx;
		this.show_idx = idx;
		new_obj = document.getElementById(div_id);
		new_obj.style.display = "";

		// ÃÊ Ã¼Å·°ª ÃÊ±âÈ­
		this.chk_cnt = 1;
	}
}


//////////////////////////////////////////////////////////////////////////
var nv = new Object();

nv.Scroll = function() {
this.version = "0.2";
this.name = "NvScroll";
this.divId = "";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 1000;
this.pausemouseover = false;
this.stop = false;
this.height = 100;
this.width = 100;
this.stopHeight=0;
this.i=0;
this.reloadData = 0;
}
nv.Scroll.prototype = {
add : function (text) {
this.item[this.itemcount] = text;
this.itemcount = this.itemcount + 1;
},
setDivId : function(name) {
this.divId = name
},
start : function () {
if ( this.itemcount == 1 ) {
this.add(this.item[0]);
}
this.display();
this.currentspeed = this.scrollspeed;
this.stop = true;
setTimeout(this.name+'.scroll()',this.currentspeed);
window.setTimeout(this.name+".stop = false", this.pausedelay);
},
display : function () {
var htmlCode;
htmlCode = '<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; vertical-align:middle " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">';
for(var i = 0; i < this.itemcount; i++) {
htmlCode += '<div id="'+this.name+'item'+i+'"style="left:0px;height:'+this.height+'; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; vertical-align:middle">';
htmlCode += this.item[i];
htmlCode += '</div>';
}
htmlCode += '</div>';

document.getElementById(this.divId).innerHTML=htmlCode;
},
scroll : function () {
this.currentspeed = this.scrollspeed;
if ( !this.stop ) {
for (var i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
obj.top = parseInt(obj.top) - 1;
if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
if ( parseInt(obj.top) == 0 ) {
this.currentspeed = this.pausedelay;
this.i = i;
}
}
}
window.setTimeout(this.name+".scroll()",this.currentspeed);
},
onmouseover : function () {},
onmouseout : function () {}
}

nv.Ranking = function(objID, iWidth, iHeight){
this.nvscroll = new nv.Scroll();
this.nvscroll.name = "";
this.nvscroll.name = objID;
this.nvscroll.height = iHeight;
this.nvscroll.width = iWidth;
this.nvscroll.scrollspeed = 1;
this.nvscroll.pausedelay = 2000;
this.nvscroll.pausemouseover = true;
}

nv.Ranking.prototype = {
init : function(divID){
this.nvscroll.setDivId(divID);
this.nvscroll.onmouseover = function() {

if ( this.pausemouseover ) {
this.stop = true;
}

}
this.nvscroll.onmouseout = function() {
if ( this.pausemouseover ) {
this.stop = false;
}
}
},
add : function(text){
this.nvscroll.add(text);
},

start : function(){
//this.init();
this.nvscroll.start();
},
onmouseover : function(){
this.nvscroll.onmouseover();
},
onmouseout : function(){
this.nvscroll.onmouseout();
},

next : function() {
for (i = 0; i < this.nvscroll.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
if ( parseInt(obj.left) < 1 ) {
width = this.nvscroll.width + parseInt(obj.left);
break;
}
}
for (i = 0; i < this.nvscroll.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
if ( parseInt(obj.left) < 1 ) {
obj.left = this.nvscroll.width * (this.nvscroll.itemcount-1);
} else {
obj.left = parseInt(obj.left) - width;
}
}
},

prev : function() {

for (i = 0; i < this.nvscroll.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
if ( parseInt(obj.left) < 1 ) {
width = parseInt(obj.left) * (-1);
break;
}
}
if ( width == 0 ) {
total_width = this.nvscroll.width * (this.nvscroll.itemcount-1);
for (i = 0; i < this.nvscroll.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
if ( parseInt(obj.left) + 1 > total_width ) {
obj.left = 0;
} else {
obj.left = parseInt(obj.left) + this.width;
}
}
} else {
for (i = 0; i < this.nvscroll.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style;
if ( parseInt(obj.left) < 1 ) {
obj.left = 0;
} else {
obj.left = parseInt(obj.left) + width;
}
}
}
},

unext : function () {
this.onmouseover();
this.next();
window.setTimeout(this.name+".onmouseout()",this.nvscroll.pausedelay);
},

uprev : function () {
this.onmouseover();
this.prev();
window.setTimeout(this.name+".onmouseout()",this.nvscroll.pausedelay);
}
}


///////////////////////////////////////////////////

	// SELECT BOX À§¿¡ ·¹ÀÌ¾î º¸ÀÌ°Ô ÀÛ¾÷
	function hideControl (tagName, popupObj) 
	{ 
		if (document.all) { 

			var x = cmGetX (popupObj); 
			var y = cmGetY (popupObj); 
			var w = popupObj.offsetWidth; 
			var h = popupObj.offsetHeight; 

			var i; 
			for (i = 0; i < document.all.tags(tagName).length; ++i) { 
				var obj = document.all.tags(tagName)[i]; 
				if (!obj || !obj.offsetParent) continue; 

				var ox = cmGetX (obj); 
				var oy = cmGetY (obj); 
				var ow = obj.offsetWidth; 
				var oh = obj.offsetHeight; 

				if (ox > (x + w) || (ox + ow) < x) continue; 
				if (oy > (y + h) || (oy + oh) < y) continue; 
				 
				if(obj.style.visibility == "hidden") continue; 

				if(!popupObj.overFlag) 
					popupObj.overFlag = new Array (); 

				popupObj.overFlag[popupObj.overFlag.length] = obj; 
				obj.style.visibility = "hidden"; 
			} 
		} 

	} 

	function showControl(popupObj) 
	{ 
		if (popupObj.overFlag) { 
			var i; 
			for (i = 0; i < popupObj.overFlag.length; ++i) 
				popupObj.overFlag[i].style.visibility = ""; 
		} 
		popupObj.overFlag = null; 
	} 

	function cmGetX (obj) 
	{ 
		var x = 0; 
		do 
		{ 
			x += obj.offsetLeft; 
			obj = obj.offsetParent; 
		} 
		while (obj); 
		return x; 
	} 

	function cmGetY (obj) 
	{ 
		var y = 0; 
		do 
		{ 
			y += obj.offsetTop; 
			obj = obj.offsetParent; 
		} 
		while (obj); 
		return y; 
	} 

///////////////////////////////////////////////////

	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];}
	}

