
var ua = window.navigator.userAgent;
if ((!ua.match(/MSIE 5./)) && (!ua.match(/MSIE 6./))) {
	document.write('<style type="text/css">');
	document.write('h1#top { background: transparent url(res/bg_topbar.png) center top no-repeat; }');
	document.write('div#topinfo { background: transparent url(res/about.png) center top no-repeat; }');
	document.write('img#topinfoimage { visibility: hidden; }');
	switch (window.location.hash) {
	case "#SnowMode":
		document.write('body { background: #B0B0B0 url(res/snow_back.gif) fixed; }');
		break;
	case "#VortexMode":
		document.write('body { background: #070707 url(res/vortex.jpg) no-repeat center center fixed; color: #FFFFFF; }');
		break;
	case "#ClownFishMode":
		document.write('body { background: #808080 url(res/clown-fish.jpg) no-repeat center center fixed; color: #FFFFFF; }');
		document.write('div#footer { color: #FFFFFF; }');
		document.write('address.copyright { color: #FFFFFF; }');
		break;
	}
	document.write('</style>');
}

function reCacheTopImage() {
	var imageCache = new Image(700, 150);
	var cacheTime = new Date();
	imageCache.src = ("res/top.jpg?" + cacheTime.getTime());
	document.getElementById('topimage').style.background = "url(" + imageCache.src + ") no-repeat";
}

function onJump(sBoxId) {
	var num = document.getElementById(sBoxId).selectedIndex;
	var str = document.getElementById(sBoxId).options[num].value;
	location.hash = str;
}
