rand = Math.floor( (Math.random( ) * 100 )) % ad.length ;   document.write( ad[rand] ) ;