
FeaturedData_1 =  new Array();
FeaturedData_1[0] = "199116";
FeaturedData_1[1] = "204046";
FeaturedData_1[2] = "204283";
FeaturedData_1[3] = "207003";
FeaturedData_1[4] = "188319";
FeaturedData_1[5] = "206665";
FeaturedData_1[6] = "201176";
FeaturedData_1[7] = "207033";
FeaturedData_1[8] = "204072";
FeaturedData_1[9] = "205958";
FeaturedData_1[10] = "199479";
FeaturedData_1[11] = "203972";
FeaturedData_1[12] = "208089";

FeaturedData_2 =  new Array();
FeaturedData_2[0] = "199116";
FeaturedData_2[1] = "206432";
FeaturedData_2[2] = "207253";
FeaturedData_2[3] = "208098";
FeaturedData_2[4] = "201995";
FeaturedData_2[5] = "204046";
FeaturedData_2[6] = "206752";
FeaturedData_2[7] = "206840";
FeaturedData_2[8] = "207723";
FeaturedData_2[9] = "207482";
FeaturedData_2[10] = "204283";
FeaturedData_2[11] = "207003";
FeaturedData_2[12] = "188319";
FeaturedData_2[13] = "201438";
FeaturedData_2[14] = "206665";
FeaturedData_2[15] = "207118";
FeaturedData_2[16] = "207986";
FeaturedData_2[17] = "201176";
FeaturedData_2[18] = "207033";
FeaturedData_2[19] = "204072";
FeaturedData_2[20] = "207954";
FeaturedData_2[21] = "207327";
FeaturedData_2[22] = "206927";
FeaturedData_2[23] = "205958";
FeaturedData_2[24] = "207328";
FeaturedData_2[25] = "199479";
FeaturedData_2[26] = "206269";
FeaturedData_2[27] = "203972";
FeaturedData_2[28] = "207438";
FeaturedData_2[29] = "192698";
FeaturedData_2[30] = "208089";

FeaturedData_3 =  new Array();
FeaturedData_3[0] = "199116";
FeaturedData_3[1] = "206432";
FeaturedData_3[2] = "207253";
FeaturedData_3[3] = "208098";
FeaturedData_3[4] = "201995";
FeaturedData_3[5] = "204046";
FeaturedData_3[6] = "206752";
FeaturedData_3[7] = "206840";
FeaturedData_3[8] = "207723";
FeaturedData_3[9] = "207482";
FeaturedData_3[10] = "204283";
FeaturedData_3[11] = "207003";
FeaturedData_3[12] = "188319";
FeaturedData_3[13] = "201438";
FeaturedData_3[14] = "206665";
FeaturedData_3[15] = "207118";
FeaturedData_3[16] = "207986";
FeaturedData_3[17] = "201176";
FeaturedData_3[18] = "207033";
FeaturedData_3[19] = "204072";
FeaturedData_3[20] = "207954";
FeaturedData_3[21] = "207327";
FeaturedData_3[22] = "206927";
FeaturedData_3[23] = "205958";
FeaturedData_3[24] = "207328";
FeaturedData_3[25] = "199479";
FeaturedData_3[26] = "206269";
FeaturedData_3[27] = "203972";
FeaturedData_3[28] = "207438";
FeaturedData_3[29] = "192698";
FeaturedData_3[30] = "208089";

FLRecordCount_1=FeaturedData_1.length;
FLRecordCount_2=FeaturedData_2.length;
FLRecordCount_3=FeaturedData_3.length;
FLIndex_1=randRange(1,FLRecordCount_1);
FLIndex_2=randRange(1,FLRecordCount_2);
FLIndex_3=randRange(1,FLRecordCount_3);
function FLNext(){
	if(FLIndex_1 == FLRecordCount_1){
		FLIndex_1=1;
	} else {
		FLIndex_1++;
	}
	document.getElementById("FL-1").style.backgroundImage="url('http://clarenproject.com/GLAR/listings/200/grtrlks"+FeaturedData_1[FLIndex_1-1]+".jpg')";
	document.getElementById("FL-1").href="listing.cfm?mls="+FeaturedData_1[FLIndex_1-1]+"&ln="+FeaturedData_1[FLIndex_1-1];
	
	
	if(FLIndex_2 == FLRecordCount_2){
		FLIndex_2=1;
	} else {
		FLIndex_2++;
	}
	document.getElementById("FL-2").style.backgroundImage="url('http://clarenproject.com/GLAR/listings/200/grtrlks"+FeaturedData_2[FLIndex_2-1]+".jpg')";
	document.getElementById("FL-2").href="listing.cfm?mls="+FeaturedData_2[FLIndex_2-1]+"&ln="+FeaturedData_2[FLIndex_2-1];
	
	
	if(FLIndex_3 == FLRecordCount_3){
		FLIndex_3=1;
	} else {
		FLIndex_3++;
	}
	document.getElementById("FL-3").style.backgroundImage="url('http://clarenproject.com/GLAR/listings/200/grtrlks"+FeaturedData_3[FLIndex_3-1]+".jpg')";
	document.getElementById("FL-3").href="listing.cfm?mls="+FeaturedData_3[FLIndex_3-1]+"&ln="+FeaturedData_3[FLIndex_3-1];
}
function FLPlay(){
	if(!window.oFLPlayer){
		document.getElementById("FL-1").style.display="block";
		document.getElementById("FL-1").style.width="200px";
		document.getElementById("FL-1").style.height="110px";
		document.getElementById("FL-1").style.backgroundPosition="center center";
		document.getElementById("FL-1").style.backgroundColor="black";
		document.getElementById("FL-1").style.border="2px solid #E82135";
		document.getElementById("FL-1").style.marginBottom="2px";
		document.getElementById("FL-1").innerHTML="";
		
		document.getElementById("FL-2").style.display="block";
		document.getElementById("FL-2").style.width="200px";
		document.getElementById("FL-2").style.height="110px";
		document.getElementById("FL-2").style.backgroundPosition="center center";
		document.getElementById("FL-2").style.backgroundColor="black";
		document.getElementById("FL-2").style.border="2px solid #E82135";
		document.getElementById("FL-2").style.marginBottom="2px";
		document.getElementById("FL-2").innerHTML="";
		
		document.getElementById("FL-3").style.display="block";
		document.getElementById("FL-3").style.width="200px";
		document.getElementById("FL-3").style.height="110px";
		document.getElementById("FL-3").style.backgroundPosition="center center";
		document.getElementById("FL-3").style.backgroundColor="black";
		document.getElementById("FL-3").style.border="2px solid #E82135";
		document.getElementById("FL-3").style.marginBottom="2px";
		document.getElementById("FL-3").innerHTML="";
		FLNext();
		if(FLRecordCount_1 > 1 && FLRecordCount_2 > 1 && FLRecordCount_3 > 1){
			oFLPlayer = window.setInterval(FLNext, 5000);
		}
	}
}
function randRange(a,b) {
	return a + Math.floor(Math.random()*(b-a+1));
}
if(FLRecordCount_1 > 0 && FLRecordCount_2 > 0 && FLRecordCount_3 > 0){
	FLPlay();
}
