	var retCnt;
	var arrCnt;

var arrIMG = new Array();

				arrIMG[arrIMG.length]="/digest/special_box/ebooks120111.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/collaboriang.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/choice120131.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/minitour120116.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/angulamotion.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/award2012.jpg"
				arrIMG[arrIMG.length]="/digest/special_box/rule2012.jpg"
				//以下チームＧＤローテーション
				arrIMG[arrIMG.length]="/digest/special_box/teamGD_linenap.jpg"
				//arrIMG[arrIMG.length]="/digest/special_box/teamGD_nikeball.jpg"
				//arrIMG[arrIMG.length]="/digest/special_box/teamGD_111204movie.jpg"
				//arrIMG[arrIMG.length]="/digest/special_box/teamGD_111118_1.jpg"

var arrLink = new Array();
				arrLink[arrLink.length]="/digest/ebooks/default.asp?sp_box=gd";
				arrLink[arrLink.length]="http://www.g-pocket.jp/shopdetail/005001000006/001/001/order/";
				arrLink[arrLink.length]="http://www.g-pocket.jp/shopdetail/007001000008/001/001/order/";
				arrLink[arrLink.length]="/digest/teamgd/tournament/2012spring_minitour/default.asp?sp_box=gd";
				arrLink[arrLink.length]="/digest/teamgd/product_development/angularmotion/default.asp?sp_box=gd";
				arrLink[arrLink.length]="/digest/gd_info/2012_award/default.asp";
				arrLink[arrLink.length]="/digest/book/golfrule_2012_2013/special.asp";
				//以下チームＧＤローテーション
				arrLink[arrLink.length]="/digest/teamgd/product_development.asp?sp_box=gd";
				//arrLink[arrLink.length]="/digest/teamgd/entry_desk.asp?sp_box=gd";
				//arrLink[arrLink.length]="/digest/teamgd/report/111204/default.asp?sp_box=gd";
				//arrLink[arrLink.length]="http://www.g-pocket.jp/shopdetail/014001000001/008/001/order/?sp_box=gd";

function fnc_showImage(){
	arrCnt = arrIMG.length; 
	retCnt = 0;
	retCnt = Math.floor(Math.random() * arrCnt);
	document.rdmIMG.src=arrIMG[retCnt];
	fnc_nextLoop();//一定期間の画像変換処理
}

function fnc_Location() {
	var ad_url = arrLink[retCnt-1];
	ad_url = ad_url.substring(0,ad_url.indexOf(":"));
	if( ad_url=="http" || ad_url=="https"){//別画面生成
	var ad = arrLink[retCnt-1];
	var new_w = window.open(ad,'newwin','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes');
	} else {
	window.location.href = arrLink[retCnt-1];//通常の場合
	}
}

function fnc_nextLoop(){//イメージ配列の最大値を0にする
	if(retCnt == arrIMG.length){
	document.rdmIMG.src=arrIMG[retCnt-1];
	var timeID = setTimeout("fnc_nextLoop()",0);
	retCnt = 0 ;
	} else {
	document.rdmIMG.src=arrIMG[retCnt];
	var timeID = setTimeout("fnc_nextLoop()",4000);
	retCnt = ++retCnt;
	}
}


window.onload = fnc_showImage;
