var cutArray = new Object();
function cutContent(str)
{
	var strObject = document.getElementById(str);
	var newsBar = document.getElementById('newsBar');
	var newsId = document.getElementById('newsId');
	if(cutArray['newsId'] == null)
	{
		cutArray['newsId'] = newsId.innerHTML;
	}
	if(cutArray[str] == null)
	{
		cutArray[str] = strObject.innerHTML;
	}
    newsId.innerHTML = cutArray[str];
	if(str == 'newsId')
	{
		newsBar.className = 'newsBarA';
	}
	else
	{
		newsBar.className = 'newsBarB';
	}
}
function flowOverIt(){ 
  if(imgIndex < imgLenth)
  {
	  flowImgId.src=imgSrc[imgIndex];
	  flowImgId.alt=imgAlt[imgIndex];
	  flowUrlId.href=imgUrl[imgIndex];
	  flowUrlId.title=imgAlt[imgIndex];
	  ++imgIndex;
	  document.getElementById("N"+imgIndex).className='a';
      document.getElementById("N"+numIndex).className = 'b';
      numIndex = imgIndex;
  }
  else
  {
	  flowImgId.src=imgSrc[0];
	  flowImgId.alt=imgAlt[0];
	  flowUrlId.href=imgUrl[0];
	  flowUrlId.title=imgAlt[0];
	  imgIndex = 1;
	  document.getElementById("N"+imgIndex).className='a';
      document.getElementById("N"+numIndex).className = 'b';
      numIndex = imgIndex;
  }
}
function toFlow()
{
  objFlow  = window.setInterval("flowOverIt()",3500);
}
function stopFlow(id){
  clearInterval(objFlow);
  if(id!=numIndex)
  {
     document.getElementById("N"+id).className='a';
     document.getElementById("N"+numIndex).className = 'b';
     numIndex = id;
     var objImg = document.getElementById('flowImg');
     objImg.src=imgSrc[id-1];
  }
}