// JavaScript Document
var rentLs = ["i/rent/l2_apt_rental.jpg","i/rent/l3_apt_rental.jpg","i/rent/l4_apt_rental.jpg",
			  "i/rent/l5_apt_rental.jpg","i/rent/l6_apt_rental.jpg","i/rent/l7_apt_rental.jpg","i/rent/l1_apt_rental.jpg"];
var rentCs = ["i/rent/c3_apt_rental.jpg","i/rent/c4_apt_rental.jpg","i/rent/c2_apt_rental.jpg",
			  "i/rent/c5_apt_rental.jpg","i/rent/c6_apt_rental.jpg","i/rent/c7_apt_rental.jpg","i/rent/c2_apt_rental.jpg",];
var rentRs = ["i/rent/r2_apt_rental.jpg","i/rent/r3_apt_rental.jpg","i/rent/r4_apt_rental.jpg",
			  "i/rent/r5_apt_rental.jpg","i/rent/r6_apt_rental.jpg","i/rent/r7_apt_rental.jpg","i/rent/r1_apt_rental.jpg"];

setTimeout('rentC()',2500);
setTimeout('rentL()',5000);
setTimeout('rentR()',7500);


var i=0;
function rentL(){
	if (document.images) {
		document.getElementById("rentL").src = rentLs[i];
		i=i+1;
		if (i > 6) { i=i-7 }
		setTimeout('rentL()',7500);
	}
}

var k=0;
function rentR(){
	if (document.images) {
		document.getElementById("rentR").src = rentRs[k];
		k=k+1;
		if (k > 6) { k=k-7 }
		setTimeout('rentR()',7500);
	}
}

var j=0;
function rentC(){
	if (document.images) {
		document.getElementById("rentC").src = rentCs[j];
		j=j+1;
		if (j > 6) { j=j-7 }
		setTimeout('rentC()',7500);
	}
}
