
var cur = 0;
var last = cruiseimg.length;

// must use img inorder for firefox/mozilla to function properly (preloading image)
// IE works fine without using img as source

function play() {
	obj = document.getElementById('cruise');
	
	if (cur == last) {
		cur = 0;
		obj.style.background = "url('" + img[cur].src + "') no-repeat scroll top left";
	}
	else {
		obj.style.background = "url('" + img[cur].src + "') no-repeat scroll top left";
		cur++;
	}
}