function initShowActionArticles ()
{
  num = 0;
  $$( '.productOverview' ).forEach( function( el )
  {
    if ( num > 5 )
      el.style [ 'display' ] = 'none';

    num ++;
  }.bind ( this ) );

  setTimeout ( 'showActionArticles ();', 3500 );
}

lastRnd = false;
function showActionArticles ()
{
  if ( ( arts = $$( '.productOverview' ) ).length > 6 )
  {
    //while ( lastRnd == ( rnd = Math.floor ( Math.random () * 5 ) ) || arts [ rnd ].getElement ( '.actions' ).style [ 'opacity' ] > 0 );
    while ( lastRnd == ( rnd = Math.floor ( Math.random () * 5 ) )  );
    
    lastRnd = rnd;
    rnd2 = 6;

    arts [ rnd2 ].style [ 'display' ] = 'block';
    arts [ rnd ].style [ 'display' ] = 'none';
    $$( '.productOverview' ) [ rnd2 ].injectAfter ( $$( '.productOverview' ) [ rnd ] );
    $$( '.productOverview' ) [ rnd ].injectAfter ( $$( '.productOverview' ) [ $$( '.productOverview' ).length - 1 ] );

    setTimeout ( 'showActionArticles ();', 3500 );
  }
}
initShowActionArticles ();

