var images = {
        // 画像とジャンプ先の URL のペア
        url : [
          ['images/toggle-ecs.gif', 'http://www.toggle-ecs.com'],
          ['images/kozo-keikaku.gif', 'http://www.kozo-keikaku.com']
          ],

        // 順番のシャッフル
        shuffle : function() {
          for (i = this.url.length; i > 0; --i) {
            tmp = this.url[p = Math.floor(Math.random()*i)] ;
            this.url[p] = this.url[i-1] ;
            this.url[i-1] = tmp ;
          }
        },

        p : 0, // 表示画像のポインタ

        // 画像表示
        put : function() {
          if (this.p >= this.url.length) this.p = 0 ;
          return '<a href="'+this.url[this.p][1]+'"><img src="'+this.url[this.p++][0]+'" /></a>' ;
        }
      } ;

      onload = function() {
        images.shuffle() ;
        divs = document.getElementsByTagName('div') ;
        for (i = 0; i < divs.length; ++i) {
          if (divs[i].className != 'block') continue ; // class が「block」ではない div はスルー
          divs[i].innerHTML += images.put() ;
        }
      }
