// $MB2/CreateRetailer88.ksh ########################### 111111
var MilSecPerPic = 4000;	// allowed for 4 secs per pic to download
var Aarr99       = new Array();	// image attributes    : Aarr99[0]='width="620px"'      or Aarr99[0]='height="920px"'
var Sarr99       = new Array();	// image src url       : Sarr99[0]="http://s7ondemand7.scene7.com/is/image/Timex/T5K362_X?scl=1"
var LoadedArr99  = new Array();	// LoadedArr99[0] == 1 : means 1st image has been loaded.  set by function CntImgs(iindex)
function CntImgs(iindex) {LoadedArr99[iindex]=1;}   // called by image onload event <img onload="CntImgs(0)" src="xxxxx" />
function ReloadImgs() {
	var NotLoadedCnt = 0;
	for 	(var i = 0; i < Sarr99.length; i++) {
		if	(LoadedArr99[i] != 1) {
			for 	(var j = 0; j < document.images.length; j++) {
				if	(document.images[j].src == Sarr99[i]) {
					if	(document.images[j].src.indexOf("?") == -1) {
					     document.images[j].src = document.images[j].src + "?sid=" + (new Date()).getTime();
					}
					else	{
					     document.images[j].src = document.images[j].src + "&sid=" + (new Date()).getTime();
					}
					NotLoadedCnt++;
				}
			}
		}
	}
	// check again if the requested pics have been loaded
	if	(NotLoadedCnt > 10) {
		window.setTimeout('ReloadImgs()',(NotLoadedCnt * MilSecPerPic));
	}
	window.status = cnt + " (-" + NotLoadedCnt + ") - " + Date();
} // $MB2/CreateRetailer88.ksh ########################### 999999
