﻿var divShowProList  = document.getElementById('divShowProList');

var _current_Friend = divShowProList.firstChild;
var _temp_Friend;
while(_current_Friend != null)
{
  _t = _current_Friend.nextSibling;
  
  if(_current_Friend.nodeName.toLowerCase().indexOf('text') > -1)
  {
    divShowProList.removeChild(_current_Friend);
  }
  _current_Friend=_t;
}

for(var i=1;i<divShowProList.childNodes.length;i++)
{
   divShowProList.childNodes[i].appendChild(divShowProList.firstChild.cloneNode(1));
}
function scroll_Friends()
{
    if(divShowProList.scrollTop >= divShowProList.firstChild.offsetHeight)
    {
       divShowProList.scrollTop = 0;
    }
    else
    {
       divShowProList.scrollTop++;
    }
}
var timer_Friends=setInterval("scroll_Friends();",120);
divShowProList.onmouseover = function()  {clearInterval(timer_Friends)};
divShowProList.onmouseout  = function()  {timer_Friends = setInterval("scroll_Friends();",120)};
