var browserVersion = parseInt(navigator.appVersion);

var isNS = (navigator.appName == "Netscape");
layerRef = (isNS) ? "document" : "document.all";
styleRef = (isNS) ? "" : ".style";

var imgNumber;

if (browserVersion > 2) {
	imgNumber = Math.ceil(Math.random() * 5);
		
	if (document.images) {
		imgNude = new Image();
		eval ("imgNude.src = 'images/nude" + imgNumber + ".gif'");
	}
}

function printImage (num) {
	if (browserVersion > 2)	{
		if (document.images) {
			document.writeln('<td width="150" colspan="2"><img src="' + imgNude.src + '" width="150" height="260" alt=""></td>');
		}
	} else {
		document.writeln('<td width="150" colspan="2"><img src="images/nude' + num + '.gif" width="150" height="260" alt=""></td>');
	}
}

