var strArray=new Array();
strArray[0]='<font color="#CC0000">·</font><a   href="http://zhangshoutang.com/lp/index.asp" target="_blank" ><font color="#CC0000">展现自己的舞台……蓝色小屋</font> </a>'
strArray[1]='<font color="#CC0000">·</font><a   href="http://www.caan.cn/" target="_blank" ><font color="#CC0000">中国美术家协会</font></a>'
strArray[2]='<font color="#CC0000">·</font><a   href="http://www.caazl.cn/" target="_blank" color=red><font color="#CC0000">中国美术家协会展览中心</font></a>'
strArray[3]='<font color="#CC0000">·</font><a   href="http://www.nnamoc.org" target="_blank" ><font color="#CC0000">中国网络美术馆</font></a>'
strArray[4]='<font color="#CC0000">·</font><a   href="http://shoutangzhang.51.com" target="_blank" ><font color="#CC0000">张守堂博客</font></a>'
strArray[5]='<font color="#CC0000">·</font><a   href="http://www.lnsmx.cn/mx1/" target="_blank" ><font color="#CC0000">辽宁美术家协会</font></a>'
strArray[6]='<font color="#CC0000">·</font><a   href="http://51799551.blog.163.com" target="_blank" ><font color="#CC0000">老鼠博客</font></a>'


showId=Math.floor(Math.random()*7);
tempStr=strArray[showId];
strArray[showId]=strArray[0];
strArray[0]=tempStr;
              
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td>'
+'<div id="toptable" >'
+'<table width=300 border=0 cellspacing=0 cellpadding=0 >'
+'<tr><td width=300 height=40 >'+strArray[0]+'</td></tr>'
+'<tr><td height=40 >'+strArray[1]+'</td></tr>'
+'<tr><td height=40 >'+strArray[2]+'</td></tr>'
+'<tr><td height=40 >'+strArray[3]+'</td></tr>'
+'<tr><td height=40 >'+strArray[4]+'</td></tr>'
+'<tr><td height=40 >'+strArray[5]+'</td></tr>'
+'<tr><td height=40 >'+strArray[6]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');

marqueesHeight=40;
stopscroll=false;
toptable.scrollTop=0;

with(toptable){
  style.width=0;
  style.height=marqueesHeight;
  style.overflowX="visible";
  style.overflowY="hidden";
  noWrap=true;
  onmouseover=new Function("stopscroll=true");
  onmouseout=new Function("stopscroll=false");
}

preTop=0; currentTop=40; stoptime=0;
toptable.innerHTML+=toptable.innerHTML;

function init_srolltext(){
  toptable.scrollTop=0;
  setInterval("scrollleft()",40);
}init_srolltext();

function scrollleft(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==22)
  {
  	stoptime+=1;
  	currentTop-=1;
  	if(stoptime==80) 
  	{
  		currentTop=0;
  		stoptime=0;
  	}
  }
  else {  	
	  preTop=toptable.scrollTop;
	  toptable.scrollTop+=1;
	  if(preTop==toptable.scrollTop){
	    toptable.scrollTop=42;
	    toptable.scrollTop+=1;
	  }
  }

}