// Preload.js

<!--

function swapimage(imageName, imageFile){
	//alert("In swapimage( " + imageName + ", " + imageFile + " )");
	document.images[imageName].src=imageFile;
}

var myimages=new Array();
function preloadImages(){
	for (i=0;i<preloadImages.arguments.length;i++){
		myimages[i]=new Image();
		source=preloadImages.arguments[i];
		myimages[i].src=source;
	}
}

function checkForSWF() {
	var theFile = document.getElementById('cssHolder').getAttribute('href');
	var theBegin = theFile.search(/site/i) + 4;
	var theEnd = theFile.search(/css/i) - 2;
	var theCSS = theFile.substr(theBegin,theEnd-theBegin+1);
	return theCSS;
}

var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length) {
	x = navigator.plugins["Shockwave Flash"];
	if (x) {
		flashinstalled = 2;
		if (x.description) {
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"]) {
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length) {
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";

-->