function CBgImg( title, url ) {
	this.title = title;
	this.url   = url;
	this.img   = new Image(640,200);
	this.img.src = "image\/" + this.url;
	this.toString = function () {
		return ( "url(image\/" + this.url + ") no-repeat fixed right bottom" );
	}
}

bgimg = new Array();
bgimg[1] = new CBgImg("blue",   "bg_blue.jpg"  );
bgimg[2] = new CBgImg("green",  "bg_green.jpg" );
bgimg[3] = new CBgImg("orange", "bg_orange.jpg");
bgimg[4] = new CBgImg("pink",   "bg_pink.jpg"  );
bgimg[5] = new CBgImg("purple", "bg_purple.jpg");
bgimg[6] = new CBgImg("yellow", "bg_yellow.jpg");

function change_bgimage()
{
	if (document.all) doc = document.all.item("ss");
	else if (document.getElementById) doc = document.getElementById("ss");
	
	n = document.forms["change_color"].elements["selectbox"].selectedIndex + 1;
	
	if( doc )
		doc.style.background = bgimg[n].toString();
}

function exec_moveLogo()
{
	doc = document.all("logo_id");
	if( doc ) {
		with (doc.style) {
			left = (document.body.scrollLeft + 10) + "px";
			top  = (document.body.scrollTop  + 10) + "px";
			position = "absolute";
			display  = "block";
		}
	}
}

function exec_initialize() {
	if(document.all) {
		//	IEのみ
		doc = document.all("logo_id");
		if( doc ) {
			doc.style.position = "absolute";
			doc.style.display  = "none";
			doc.style.left  = "0px";
			doc.style.top   = "0px";
			
			window.onscroll = exec_moveLogo;
			
			exec_moveLogo();
		}
	}
}

// EUCで保存するための日本語コード（ｗ
