//-------------------------------------------------
//	Distribute casinos by software platform 
//	This script works together with casino_object.js
//	(must load casno_object.js in the same page)
//------------------------------------------------

MG_Casino = new Array();  //Microgaming Casinos
mgindex = 0;
PT_Casino = new Array(); //Playtech Casinos
ptindex = 0;

//Sort array of objects into sub arrays divided by affiliate group
for (i=0; i < myCasino.length; i++) {
	if (myCasino[i].software == "Microgaming") MG_Casino[mgindex++] = myCasino[i];
	if (myCasino[i].software == "Playtech") PT_Casino[ptindex++] = myCasino[i];
}


function ShowHeaderAndText(softw) {
	var selectedCasino = new Array();

	switch(softw) {
	case "Microgaming":
		selectedCasino = MG_Casino;
		break;
	case "Playtech":
		selectedCasino = PT_Casino;
		break;
	default:
		selectedCasino = MG_Casino;
	}
	var i = 0;
	for (i=0; i < selectedCasino.length; i++) HeaderAndText(selectedCasino[i]);
}


