if (document.images) {
	var theImages = new Array()
	theImages[0] = '/images/bnrs/ConvaTecFeb09b.jpg'
	theImages[1] = '/images/bnrs/Schena_288x288.jpg'
	theImages[2] = '/images/bnrs/HollisterQuiet_288x288.jpg'
	theImages[3] = '/images/bnrs/HollisterC3Life2.jpg'
	theImages[4] = '/images/bnrs/OstomySecrets.jpg'
	var theURLs = new Array()
	theURLs[0] = 'www.ostomy.org/redir1.cgi?id=0130'
	theURLs[1] = 'www.ostomy.org/redir1.cgi?id=0142'
	theURLs[2] = 'www.ostomy.org/redir1.cgi?id=0143'
	theURLs[3] = 'www.ostomy.org/redir1.cgi?id=0144'
	theURLs[4] = 'www.ostomy.org/redir1.cgi?id=0146'
// do not edit below this line
		thisImageFirst = true;
		applePosition = navigator.userAgent.indexOf("AppleWebKit");
		isSafari = (applePosition != -1) ? true : false;
		if (isSafari) {
			if (parseInt(navigator.userAgent.charAt(applePosition+12)) > 4) isSafari = false;
		}
}
function cycleImages() {
	if (document.images) {
		if (thisImageFirst) {
			var p = theImages.length;
			thisImage = Math.min(Math.floor(Math.random()*p),p-1);
			document.cycleWindow.src = theImages[thisImage];
			thisImageFirst = false;
		}
		else if (isSafari || document.cycleWindow.complete) {
			if (++thisImage == theImages.length)
				thisImage = 0;
			document.cycleWindow.src = theImages[thisImage];
		}
	}
	// change to next image every 5 seconds
	setTimeout("cycleImages()", 5000);
}
function gotoLink() {
	document.location.href = "http://" + theURLs[thisImage];
}
