﻿
	var chgCont = new Array()
	var seenCont
	chgCont[0] = "<a href='http://www.tora-tora-tora.com/affiliate/in.php?user=1099&url=monthly' target='_blank'><img src='http://bnr.tora-tora-tora.com/affiliate/bnr.php?size=248' border='0' alt='虎虎虎'  width='310px' height='275px'/></a>"
	chgCont[1] = "<a href='http://www.dmm.co.jp/monthly/momotaroubb/7242-001' target='_blank'><img src='http://affiliate.dmm.com/mt_momo/300_250.jpg' border='0' alt='ディーエムエム'  width='300px' height='250px'/></a></a>"
	chgCont[2] = "<a href='http://click.dtiserv2.com/Click150/200-6-1839' target='_blank'><img src='http://affiliate.dtiserv.com/sam/pop/movies/gif/02/carib01.gif' border='0' alt='カリビアンコム'  width='310px' height='190px'/></a>"
	chgCont[3] = "<a href='http://click.dtiserv2.com/Click150/200-18-1839' target='_blank'><img src='http://affiliate.dtiserv.com/sam/pop/movies/gif/02/1pondo01.gif' border='0' alt='一本道'  width='310px' height='190px'/></a>"
	chgCont[4] = "<a href='http://click.dtiserv2.com/Click5/200-44-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/xxxjg/44-350-01.jpg' border='0' alt='ジェイガール'  width='320px' height='200px'/></a>"
	chgCont[5] = "<a href='http://click.dtiserv2.com/Click2/200-56-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/x-ray/56-300-09.gif' border='0' alt='投稿大魔王'  width='300px' height='215px'/></a>"
	chgCont[6] = "<a href='http://sbs.nsk-sys.com/track/traffic.php?10428-001-102-20' target='_blank'><img src='http://www.exotica-xxx.com/img/sbs_at/300x200_new.gif' border='0' alt='エギゾチカ'  width='300px' height='200px'/></a>"
	// メッセージ中にはこの例のようにＨＴＭＬタグが使えます。
	// メッセージの途中で改行を入れるとスクリプトが動かなくなるので、長いメッセージでも
	// 改行を入れないでください。
	var newCont = chgCont[0] // デフォルトで表示されるもの（クッキーをオフにしている場合など）
	var cExpires
	var nowDate = new Date()
	nowDate.setMonth(nowDate.getDate()+7) //１週間後にクッキー消滅
	cExpires = nowDate.toGMTString()
	var cookieValue = document.cookie
	var startOfValue = cookieValue.indexOf("seenCont=")
	if (startOfValue == -1) {
	   startOfValue = cookieValue.indexOf("seenCont=")
	   if (startOfValue == -1) {
	      seenCont = 0
	      newCont = chgCont[seenCont]
	   }
	}
	if (seenCont != 0) {
	   startOfValue = cookieValue.indexOf("=", startOfValue) + 1
	   var endOfValue = cookieValue.indexOf(";", startOfValue)
	   if (endOfValue == -1) {
	      endOfValue = cookieValue.length
	   }
	   seenCont = Number(cookieValue.substring(startOfValue, endOfValue))
	   if (seenCont<chgCont.length-1) {
	      seenCont++
	   } else {
	      seenCont = 0
	   }
	   newCont = chgCont[seenCont]
	}
	document.cookie = "seenCont=" + seenCont + ";expires=" + cExpires + ";"