function _cls_marquee(OBJ){var obj=OBJ;var delay=50;var html=obj.innerHTML;var h=obj.offsetHeight;var w=obj.offsetWidth;var MSG='L';var _MSG;obj.style.height=h;obj.style.width=w;obj.style.overflow='hidden';obj.onmouseover=function(){_MSG=MSG;MSG='P';}
function fLRHtml(){obj.innerHTML='<table width="'+ 2*w+'" border="0" cellspacing="0" cellpadding="0"><tr><td style="width:'+ w +'px;" nowrap="nowrap">'+html+'</td><td style="width:'+ w +'px;" nowrap="nowrap">'+html+'</td></tr></table>';}
function fUDHtml(){obj.innerHTML='<table height="'+ 2*h+'" border="0" cellspacing="0" cellpadding="0"><tr><td style="height:'+ h +'px;">'+html+'</td></tr><tr><td style="height:'+ h +'px;">'+html+'</td></tr></table>';}
function playLeft(){fLRHtml();MSG='L';obj.onmouseout=function(){MSG=_MSG;_scroll_l();}
function _scroll_l(){if (MSG=='L'){if (obj.scrollLeft<w) obj.scrollLeft++;else obj.scrollLeft=1;setTimeout(_scroll_l,delay);}}_scroll_l();}
function playRight(){fLRHtml();MSG='R';obj.onmouseout=function(){MSG=_MSG;_scroll_r();}
function _scroll_r(){if (MSG=='R'){if (obj.scrollLeft>0) obj.scrollLeft--;else obj.scrollLeft=w-1;setTimeout(_scroll_r,delay);}}_scroll_r();}
function playUp(){fUDHtml();MSG='U';obj.onmouseout=function(){MSG=_MSG;_scroll_u();}
function _scroll_u(){if (MSG=='U'){if (obj.scrollTop<h) obj.scrollTop++;else obj.scrollTop=1;setTimeout(_scroll_u,delay);}}_scroll_u();}
function playDown(){fUDHtml();MSG='D';obj.onmouseout=function(){MSG=_MSG;_scroll_d();}
function _scroll_d(){if (MSG=='D'){if (obj.scrollTop>0) obj.scrollTop--;else obj.scrollTop=h-1;setTimeout(_scroll_d,delay);}}_scroll_d();}this.play=function(direction,DELAY){if (DELAY) delay=DELAY;if (/1|l(eft)?/ig.test(direction)) playLeft();else if (/2|r(ight)?/ig.test(direction)) playRight();else if (/3|u(p)?/ig.test(direction)) playUp();else if (/4|d(own)?/ig.test(direction)) playDown();else playLeft();}}