

var maryCatch = new Array(
'<a href="index_f.html" target="ydMain" onClick="openYDWindow(this.href, this.target); return false;"><img src="img/h1_00.jpg" alt="DESIGN - Introducing the philosophy of Yamaha product design. Insights into changes in design over the years, interviews with designers, and discussion on the spirit of Yamaha design." width="745" height="300" class="interface"></a></h1>',
'<a href="index_f.html" target="ydMain" onClick="openYDWindow(this.href, this.target); return false;"><img src="img/h1_06.jpg" alt="DESIGN - Introducing the philosophy of Yamaha product design. Insights into changes in design over the years, interviews with designers, and discussion on the spirit of Yamaha design." width="745" height="300" class="interface"></a></h1>',
'<a href="index_f.html" target="ydMain" onClick="openYDWindow(this.href, this.target); return false;"><img src="img/h1_07.jpg" alt="DESIGN - Introducing the philosophy of Yamaha product design. Insights into changes in design over the years, interviews with designers, and discussion on the spirit of Yamaha design." width="745" height="300" class="interface"></a></h1>'
);

var mintRandomMax = 5;
var garyRandomCatch = new Array();

function initRandomCatch() {
 garyRandomCatch = getRandomCatch(maryCatch, mintRandomMax);
}

function getRandomCatch(aryCatchThis, intRandomMax) {
 var aryRandomCatch = new Array();
 var intRandom;
 var intNum = 0;

 while (intNum < intRandomMax) {
  intRandom = Math.floor(Math.random() * aryCatchThis.length);
  aryRandomCatch[intNum] = aryCatchThis[intRandom];
  intNum++;
  aryCatchThis = delArrayData(aryCatchThis, intRandom);
 }
 return aryRandomCatch;
}

function delArrayData(aryThis, intNum) {
 var aryNew = new Array();
 var j = 0;

 for (var i = 0; i < aryThis.length; i++) {
  if (i != intNum) {
   aryNew[j] = aryThis[i];
   j++;
  }
 }

 return aryNew;
}
