function hilite(tdObj, bgColor) {
	if (document.getElementById || document.all) {
		tdObj.style.backgroundColor = bgColor;
	}
}

var newWin;
function launchNews() {
	if (!newWin || newWin.closed) {
		newWin = window.open('flashnews.html','KINews','width=300,height=500,scrollbars');
	}
	return false;
}

function showContact() {
	if (document.all) {
		winW = document.body.scrollWidth;
		winH = document.body.scrollHeight;
		document.all['contact'].style.top = ((winH / 2) - 50);
		document.all['contact'].style.left = ((winW / 2) - 125);
		document.all['contact'].style.visibility = 'visible';
	} else if (document.getElementById || document.layers) {
		winW = parseInt(window.innerWidth);
		winH = parseInt(window.innerHeight);
		if (document.getElementById) {
			document.getElementById('contact').style.top = ((winH / 2) - 50) + 'px';
			document.getElementById('contact').style.left = ((winW / 2) - 125) + 'px';
			document.getElementById('contact').style.visibility = 'visible';
		} else {
			document.contact.top = ((winH / 2) - 50);
			document.contact.left = ((winW / 2) - 125);
			document.contact.visibility = 'show';
		}
	}
	dhtml = false;
	if (document.getElementById || document.all || document.layers) {
		dhtml = true;
	}
	return !dhtml;
}

function hideContact() {
	if (document.getElementById) {
		document.getElementById('contact').style.visibility = 'hidden';
	} else if (document.all) {
		document.all['contact'].style.visibility = 'hidden';
	} else if (document.layers) {
		document.contact.visibility = 'hide';
	}
}

currPic = 1;
function changeSlide(increment, maxSlides) {
	newPic = currPic + increment;
	if (newPic == 0) {
		newPic = maxSlides;
	}
	if (newPic > maxSlides) {
		newPic = 1;
	}
	if (document.images) {
		eval('document.slideShow.src = slide' + newPic + '.src;');
	}
	currPic = newPic;
}

if (document.layers) {
	document.write('<style type="text/css">');
	document.write('h1 {margin: -1em 0 -1em 0;} ');
	document.write('h2 {margin-bottom: -1em;} ');
	document.write('p {margin-top: -1em; margin-bottom: 2em;} ');
	document.write('</style>');
}
if (navigator.userAgent.indexOf('Mac') > -1 && parseInt(navigator.appVersion) <= 4) {
	document.write('<link rel="stylesheet" href="styles_mac.css" type="text/css" title="Site Stylesheet">');
}