function openWin(winURL, winName, winOptions) {
	win = window.open(winURL, winName, winOptions);
	win.focus();
}

document.preloaded = false;
function preloadImages() {
	if(document.images) {
		if(!document.preloadedImages) document.preloadedImages = new Array();
		var i, a = arguments, imgs = document.preloadedImages;
		for(i=0; i<a.length; ++i) {
			imgs[imgs.length] = new Image();
			imgs[imgs.length-1].src = a[i];
		}
		document.preloaded = true;
}	}

function swapImage() {
	if(document.preloaded) {
		a = arguments;
		for(i=0; i<a.length-1; i+=2)
			document.images[a[i]].src=a[i+1];
}	}

function showNav(id,display) {
	if(document.all && document.all.tags("div")[id])
		document.all.tags("div")[id].style.visibility = display;
	else if(document.getElementById && document.getElementById(id))
		document.getElementById(id).style.visibility = display;
}

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && (parseInt(navigator.appVersion) >= 4)) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if(plugin) plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE="VBScript"\>\n');
	document.write('on error resume next\n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('</SCRIPT\>\n');
}
