/*
 * 画像生成君
 *   By Hajime Hoshi
 *   2005-09-01
 */

function TopImage( fileName, alt, href )
{
	this.fileName = fileName;
	this.alt = alt;
	this.href = href;
}

TopImage.prototype.getFileName = function()
{
	return this.fileName;
}

TopImage.prototype.getFilePath = function()
{
	return "./index/" + this.getFileName();
}

TopImage.prototype.getAlt = function()
{
	return this.alt;
}

TopImage.prototype.getHref = function()
{
	return this.href;
}

var images = new Array();

images[ images.length ] = new TopImage( "pr_1.jpg", "121r", "service/products/121r.html" );
images[ images.length ] = new TopImage( "pr_2.jpg", "ブログジャック", "service/products/blog_jack.html" );
images[ images.length ] = new TopImage( "pr_3.jpg", "監視 24", "service/kanshi24/description.html" );
images[ images.length ] = new TopImage( "pr_4.jpg", "ソーシャルキーワード", "service/products/social_keyword.html" );
images[ images.length ] = new TopImage( "pr_5.jpg", "BIBIO", "service/websites/bibio.html" );

var image = images[ Math.floor( Math.random() * images.length ) ];

var imgTag = '<p><a href="' + image.getHref() + '"><img width="750" height="200" ' +
	'src="' + image.getFilePath() + '"' +
	'alt="' + image.getAlt() + '"' +
	"/></a></p>";
document.write( imgTag );
