// マーキーオブジェクト
function Marquee() {
	this.behavior = '';
	this.bgcolor = '';
	this.scrollamount = '';
	this.width = '';
	this.derection = '';
	this.scrolldelay = '';
	this.loop = '';
	this.message = '';
	this.Write = WriteMarq;
	this.Init = InitMarq;
}


// 初期化
function InitMarq() {
	this.behavior = '';
	this.bgcolor = '';
	this.scrollamount = '';
	this.width = '';
	this.derection = '';
	this.scrolldelay = '';
	this.message = '';
	this.loop = '';
}


// マーキー書き込み
function WriteMarq() {
	//マーキータグはネスケでは使えないそうなので
	var strmaqtag;
	if ( false == IsNetscape() ) {
		strmaqtag = ' <MARQUEE ';
		strmaqtag = strmaqtag + ' BEHAVIOR="' + this.behavior + '" ';
		if ( '' != this.bgcolor ) {
			strmaqtag = strmaqtag + ' BGCOLOR="' + this.bgcolor + '" ';
		}
		if ( '' != this.scrollamount ) {
			strmaqtag = strmaqtag + ' SCROLLAMOUNT="' + this.scrollamount + '" ';
		}
		if ( '' != this.width ) {
			strmaqtag = strmaqtag + ' WIDTH="' + this.width + '" ';
		}
		if ( '' != this.derection ) {
			strmaqtag = strmaqtag + ' DIRECTION="' + this.derection + '" ';
		}
		if ( '' != this.scrolldelay ) {
			strmaqtag = strmaqtag + ' SCROLLDELAY="' + this.scrolldelay + '" ';
		}
		if ( '' != this.loop ) {
			strmaqtag = strmaqtag + ' LOOP="' + this.loop + '" ';
		}
		strmaqtag = strmaqtag + ' >';
		strmaqtag = strmaqtag + this.message + '</MARQUEE>';
	} else {
		strmaqtag = this.message + '<BR>';
	}
	document.write(strmaqtag);
	return 0;
}
