
/*  -----\\\\\\    bY $MRAN   //////--------   */

var cur_news = 0;
function bOnLoad(){  	
  $A($$('#hotspot div')).each(function (v){v.style.display = 'none';});
  $A($$('#hotspot div'))[0].style.display = 'block';  
  run = setInterval("nextNews()", 8000);
}

function nextNews(){  
  new Effect.Fade($A($$('#hotspot div'))[cur_news]);  
  if(cur_news >= $A($$('#hotspot div')).size()-1) cur_news = 0;
  else cur_news++;  
  new Effect.Appear($A($$('#hotspot div'))[cur_news]);
}

function incOneNews(){
  clearInterval(run);  
  new Effect.Fade($A($$('#hotspot div'))[cur_news]);  
  if(cur_news >= $A($$('#hotspot div')).size()-1) cur_news = 0;
  else cur_news++;  
  new Effect.Appear($A($$('#hotspot div'))[cur_news]);	
  run = setInterval("nextNews()", 8000);
}

function jumpToNews(spot){
  clearInterval(run);  
  new Effect.Fade($A($$('#hotspot div'))[cur_news]);  
  if(cur_news >= $A($$('#hotspot div')).size()-1) cur_news = 0;
  else cur_news++;  
  new Effect.Appear($A($$('#hotspot div'))[spot]);	
  run = setInterval("nextNews()", 8000);
}