function photos()
{
	for ( var count = 0; count!= 4; count++ )
    {
		var img = document.getElementById('img_' + count );
        var rnd = img.getAttribute('rnd');
        rnd++;
       	if ( rnd >= 34 ) rnd = 1;
        img.setAttribute('rnd' , rnd );  
        img.src='origineel/'+rnd+'.jpg';      
    }
	setTimeout( 'photos()' , 4000 );

	var h2 = document.getElementById( 'h2' );
	if ( h2.getAttribute('text2')!='' )
	    h2.innerHTML=h2.innerHTML==h2.getAttribute('text1')? h2.getAttribute('text2') : h2.getAttribute('text1');
}
setTimeout( 'photos()' , 4000 );
