<!--
//By Lone
var delta=0.8;
var collection;
var closeB=false;
function scrollers(){
	this.items	= [];
	this.add = function(divId, dir, sp, x, y, tp){
		var newItem				= {};
		newItem.object			= document.getElementById(divId);
		newItem.direction		= dir;
		newItem.speed			= sp;
		newItem.x				= x;
		newItem.y				= y;
		newItem.type			= tp;
		newItem.interval		= 0;
		if (tp==2)
		{
			if(newItem.object.innerHTML!=''&&dir=='closed')newItem.object.innerHTML+='<a href="javascript:;" onclick="closeBanner();" style="background:#fff;">¹Ø±Õ</a>';
		}else{
			newItem.object.onmouseover = function(){newItem.interval=newItem.speed; newItem.speed=0}
			newItem.object.onmouseout = function(){newItem.speed=newItem.interval; newItem.interval=0}
		}
		this.items[this.items.length]		= newItem;
	}

	this.start = function()
	  {
		collection	= this.items;
	 	startscroll();
	  }
}

function startscroll(){
	for (var i=0; i<collection.length; i++)
	{
		if (collection[i].type!=2)
		{
			var div = collection[i].object;
			var html = div.innerHTML;
			var t = document.createElement("table");
			var r = document.createElement("tr");
			var c1 = document.createElement("td");
			var c2 = document.createElement("td");
			c1.innerHTML = html;
			c2.innerHTML = html;

			if (collection[i].direction=="up")
			{
				r.appendChild(c1);
				t.appendChild(r);
				r = document.createElement("tr");
				r.appendChild(c2);
				t.appendChild(r);
			}else{
				r.appendChild(c1);
				r.appendChild(c2);
				t.appendChild(r);
			}
			//div2.className = "flatLayout";
			html = t.outerHTML;
			collection[i].object.innerHTML = html;
		}
		Lone_Marquee(i);
	}
}

function Lone_Marquee(index){
	var div = collection[index].object;
	if (collection[index].speed==0)
	{
		setTimeout("Lone_Marquee("+index+")", collection[index].interval);
	}else{
		if (collection[index].type==2)
		{
			if(screen.width<=800 || closeB)
			{
				collection[index].object.style.display	= 'none';
				return;
			}
			var followObj		= collection[index].object;
			var followObj_x		= (typeof(collection[index].x)=='string'?eval(collection[index].x):collection[index].x);
			var followObj_y		= (typeof(collection[index].y)=='string'?eval(collection[index].y):collection[index].y);
			if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
				var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
				dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
				followObj.style.left=followObj.offsetLeft+dx;
				}
			if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
				var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
				dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
				followObj.style.top=followObj.offsetTop+dy;
				}
			followObj.style.display	= '';
		}else{
			var sdiv = div.childNodes;
			var dir = collection[index].direction;
			if (dir=="up")
			{
				var sdiv0 = sdiv[0].rows[0].cells[0];
				var sdiv1 = sdiv[0].rows[1].cells[0];
				if(sdiv1.offsetTop-div.scrollTop<=0)
					div.scrollTop-=sdiv0.offsetHeight;
				else{
					div.scrollTop++;
				}
			}else{
				var sdiv0 = sdiv[0].rows[0].cells[0];
				var sdiv1 = sdiv[0].rows[0].cells[1];			
				if(sdiv1.offsetWidth-div.scrollLeft<=0)
					div.scrollLeft-=sdiv0.offsetWidth;
				else{
					div.scrollLeft++;
				}
			}
		}
		setTimeout("Lone_Marquee("+index+")", collection[index].speed);
	}
}

function closeBanner()
{
	closeB=true;
	return;
}
-->