function setCMSystem(vname) {
	this.msg = new Array(); var msgct  = 0;
	this.msg[msgct++] = "<a href='publicity.php?m=d&id=p1302924295'>2011.04.16　「ホップステップシャンプー」でご紹介いただきました</a>"
	this.msg[msgct++] = "<a href='information.php?m=d&id=i1299708145'>2011.03.10　White Day 2011</a>"
	this.msg[msgct++] = "<a href='publicity.php?m=d&id=p1297065562'>2011.02.07　「関西ウォーカーSweets Collection」</a>"

	this.id   = "cm1";
	this.loop = -1;
	this.speed= 5000;
	this.objname= vname;
	this.ct     = 0;
	this.loopct = 0;
	this.Play   = playCMRelative;
}
function playCMRelative(obj) {
	if(!document.all && !document.getElementById && !document.layers) {
		return;
	}
	var el = (document.all) ? document.all(this.id) : ((document.getElementById) ? document.getElementById(this.id) : document.layers[this.id].layers[this.id+"-child"] );
	if(document.all || document.getElementById) {
		el.innerHTML = this.msg[this.ct];
	}else{
		el.document.open();
		el.document.write(this.msg[this.ct]);
		el.document.close();
	}
	if(this.ct >= this.msg.length-1) {
		if(this.loop != -1 && ++this.loopct >=this.loop) {
			return;
		}
		this.ct = 0;
	}else{
		this.ct++;
	}
	setTimeout(this.objname +".Play()", this.speed);
}
function initCMRelative() {
	cmsystem.Play();
}
var cmsystem = new setCMSystem("cmsystem");

