﻿
	var chgCont = new Array()
	var seenCont
	chgCont[0] = "<a href='http://click.dtiserv2.com/Click2/100-124-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/eroanime/124-300-08.gif' border='0' alt='エロアニメTV' width='300' height='215'></a>"
	chgCont[1] = "<a href='http://click.dtiserv2.com/Click2/100-122-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/netcomic/122-300-01.jpg' border='0' alt='ネットコミック' width='300' height='215'></a>"
	chgCont[2] = "<a href='http://click.dtiserv2.com/Click2/100-21-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/xgallery/anime/21-300-01.jpg' border='0' alt='エックスギャラリー' width='300' height='214'></a>"
	chgCont[3] = "<a href='http://click.dtiserv2.com/Click2/100-86-1839' target='_blank'><img src='http://affiliate.dtiserv.com/auto/uraya/300x180.gif' border='0' alt='ウラヤ' width='300' height='180'></a>"
	chgCont[4] = "<a href='http://click.dtiserv2.com/Click2/100-21-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/xgallery/anime/21-200-01.jpg' border='0' alt='エックスギャラリー' width='200' height='280'></a>"
	chgCont[5] = "<a href='http://www.urabon-x.com/?a_aid=185&a_bid=3407' target='_blank'><img src='http://www.gl-cash.com/affiliate/banners/bk250_250.jpg' border='0' alt='裏本X' width='250' height='250'></a>"
	chgCont[6] = "<a href='http://www.zero-animation.net?a_aid=185&a_bid=2129' target='_blank'><img src='http://www.gl-cash.com/affiliate/banners/zero_200_2.gif' border='0' alt='ゼロアニメーション' width='200' height='150'></a>"
	chgCont[7] = "<a href='http://www.zero-animation.net?a_aid=185&a_bid=2129' target='_blank'><img src='http://www.gl-cash.com/affiliate/banners/zero_200_4.gif' border='0' alt='ゼロアニメーション' width='200' height='150'></a>"
	chgCont[8] = "<a href='http://www.zero-animation.net?a_aid=185&a_bid=2133' target='_blank'><img src='http://www.gl-cash.com/affiliate/banners/zero_200_6.gif' border='0' alt='ゼロアニメーション' width='200' height='150'></a>"
	chgCont[9] = "<a href='http://click.dtiserv2.com/Click2/100-93-1839' target='_blank'><img src='http://affiliate.dtiserv.com/image/laxtacy/93-300-06.jpg' border='0' alt='エクスタシー' width='300' height='215'></a>"
	chgCont[10] = "<a href='http://www.dmm.co.jp/digital/pcgame/7242-001' target='_blank'><img src='http://affiliate.dmm.com/pc_a/300_250.jpg' border='0' alt='エクスタシー' width='300' height='250'></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 + ";"