if (window.navigator.appName.toUpperCase() == 'NETSCAPE') {
	NN = true;
} else {
	NN = false;
}

function imageSwitch(target1, filename1) {
	document.images[target1].src = filename1;
}

function imageSwitch2(target1, filename1, target2, filename2) {
	imageSwitch(target1, filename1);
	imageSwitch(target2, filename2);
}

function popupWin(url1, target1, width1, height1, opt1) {
	if (!target1) target1 = "_blank";
	if (!width1) width1 = 600;
	if (!height1) {
		if (NN && window.screen.availHeight) {
			height1 = window.screen.availHeight - 60;
		} else if (window.screen.height) {
			height1 = window.screen.height - 106;
		} else {
			height1 = 400;
		}
	}
	if (!opt1) {
		opt1 = ",resizable=yes,status=no,menubar=no,toolbar=no,location=no,scrollbars=yes,directories=no,personalbar=no,top=0";
		opt1 = "width=" + width1 + ",height=" + height1 + opt1;
	} else {
		opt1 = "width=" + width1 + ",height=" + height1 + opt1;
	}
	wp = window.open(url1, target1, opt1);
	wp.focus();
}

function preloadImages(imagefiles) {
	imgs = new Array();
	for (i = 0; i < imagefiles.length; i++) {
		imgs[i] = new Image();
		imgs[i].src = imagefiles[i];
	}
}

function put_title_image() {
	title_images = new Array(
		"/images/title_photos/101.jpg",
		"/images/title_photos/102.jpg",
		"/images/title_photos/103.jpg",
		"/images/title_photos/104.jpg",
		"/images/title_photos/105.jpg",
		"/images/title_photos/106.jpg",
		"/images/title_photos/107.jpg",
		"/images/title_photos/108.jpg",
		"/images/title_photos/109.jpg",
		"/images/title_photos/110.jpg",
		"/images/title_photos/111.jpg",
		"/images/title_photos/112.jpg",
		"/images/title_photos/113.jpg",
		"/images/title_photos/114.jpg",
		"/images/title_photos/115.jpg");
	r1 = Math.floor(Math.random() * 15);
	r2 = Math.floor(Math.random() * 14) + r1 + 1;
	if (r2 >= 15) {
		r2 = r2 - 15;
	}

	document.write("<img src='" + title_images[r1] + "' width='80' height='60'>");
	document.write("<img src='" + title_images[r2] + "' width='80' height='60'>");
}

