var images = {
  // 画像とジャンプ先の URL のペア
  url : [
    ['img/bnr_ad_ace.gif', 'ad/bnr_ad_ace.html'],
    ['img/bnr_ad_hebel.jpg', 'ad/bnr_ad_hebel.html'],
    ['img/bnr_ad_tokiomarine.jpg', 'ad/bnr_ad_tokiomarine.html'],
    ['img/bnr_ad_cr70.jpg', 'ad/bnr_ad_cr70.html'],
    ['img/bnr_ad_ceremony.gif', 'ad/bnr_ad_ceremony.html'],
    ['img/bnr_ad_nrc.gif', 'ad/bnr_ad_nrc.html'],
    ['img/bnr_ad_ceremore.gif', 'ad/bnr_ad_ceremore.html'],
    ['img/bnr_ad_eneosf.gif', 'ad/bnr_ad_eneosf.html']
    ],

  // 順番のシャッフル
  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() {
    document.write('<a href="'+this.url[this.p][1]+'" target="_blank" title="別ウィンドウで表示します"><img src="'+this.url[this.p++][0]+'" width="234" height="60" /></a>') ;
    if (this.p >= this.url.length) this.p = 0 ;
  }
} ;

images.shuffle() ;

