function bannerRotate(){
	// init

	function BannerObj(src,alt,url,blank,popup,width,height,name,parameter){
		this.src    = src;// image source (str)
		this.alt    = alt;// string of alt att. (str)
		this.url    = url;// url for link (str)
		this.blank  = blank;// is blank window or not (bool)
		this.popup  = popup;// is popup window or not (bool)
		this.width  = width;// width of popup window (int)
		this.height = height;// height of popup window (int)
		this.name   = name;// name of popup window (str)
		this.param  = parameter// parmeter of popup window (str)

		return this;
	}

	var n;
	var str = "";
	var banner = new Array();


	// data fork




/*
banner[banner.length] = new BannerObj(
"/img/banner/top_banner_jdpowe2008.jpg",
"お客様満足度No.1&nbsp;3部門受賞",
"/imagio/cs/index.html",
false,
true,
820,
680,
"JDPower",


"scrollbars=yes,resizable=yes"
	);
*/



/*
banner[banner.length] = new BannerObj(
"/img/jdpower.jpg",
"お客様満足度No.1&nbsp;3部門受賞",
"http://www.ricoh.co.jp/imagio/cs/index.html",
false,
true,
820,
680,
"2008",


"scrollbars=yes,resizable=yes"
	);
*/



/*
banner[banner.length] = new BannerObj(
"/img/banner/top_banner_mlb2008.jpg",
"&#39;08&nbsp;リコー&nbsp;MLB開幕戦",
"/advertisement/event/mlb/index.html?cd=r_top",
false,
false,
820,
680,
"MLB2008",


"scrollbars=yes,resizable=yes"
	);
*/




banner[banner.length] = new BannerObj(
"/img/vicrea_new.jpg",
"ライブオフィスヴィクレア",
"/about/management/liveoffice/",
false,
false,
820,
700,
"ViCreA",


"scrollbars=yes,resizable=yes"
	);



	// select sequence

	n = Math.floor(Math.random()*(banner.length));


	

	if(banner[n].popup == true){
		str += "<a href='' onClick=\"window.open('";
		str += banner[n].url;
		str += "', '";
		str += banner[n].name;
		str += "', 'width=";
		str += banner[n].width;
		str += ", height=";
		str += banner[n].height;
		str += ","
		str += banner[n].param;
		str += "'); return false;\">";

	} else {
		str += "<a href='";
		str += banner[n].url;
		str += "'>";
	}

	str += "<img src=";
	str += banner[n].src;
	str += " width=184 height=200 alt=";
	str += banner[n].alt;
	str += " border=0></a>";

	//alert (str);// This is for showing link for debug mode!

	document.open();
	document.write(str);
	document.close();
}


function mainimageRotate(){
	// init

	function BannerObj(src,alt,url,blank,popup,width,height,name,parameter){
		this.src    = src;// image source (str)
		this.alt    = alt;// string of alt att. (str)
		this.url    = url;// url for link (str)
		// this.blank  = blank;// is blank window or not (bool)
		this.popup  = popup;// is popup window or not (bool)
		this.width  = width;// width of popup window (int)
		this.height = height;// height of popup window (int)
		this.name   = name;// name of popup window (str)
		this.param  = parameter// parmeter of popup window (str)

		return this;
	}

	var n;
	var str = "";
	var banner = new Array();


	// data fork

/*
banner[banner.length] = new BannerObj(
"/img/vicrea_new.jpg",
"*******",
"/about/management/liveoffice/",
false,
true,
1010,
680,
"ecology",
"scrollbars=yes,resizable=yes"
	);


banner[banner.length] = new BannerObj(
"/img/office_cam_l.jpg",
"*******",
"/ecology/special/index.html",
false,
true,
1010,
680,
"ecology",
"scrollbars=yes,resizable=yes"
	);
*/


	// select sequence

	n = Math.floor(Math.random()*(banner.length));


	

	if(banner[n].popup == true){
		str += "<a href='' onClick=\"window.open('";
		str += banner[n].url;
		str += "', '";
		str += banner[n].name;
		str += "', 'width=";
		str += banner[n].width;
		str += ", height=";
		str += banner[n].height;
		str += ","
		str += banner[n].param;
		str += "'); return false;\">";

	} else {
		str += "<a href='";
		str += banner[n].url;
		str += "'>";
	}

	str += "<img src=";
	str += banner[n].src;
	str += " width=184 height=200 alt=";
	str += banner[n].alt;
	str += " border=0></a>";

	//alert (str);// This is for showing link for debug mode!

	document.open();
	document.write(str);
	document.close();
}





/*
banner rotate script ver. 0.9.3
it need to optimize.
2004.12.09
*/

