var DoRedirect = "true";
var AmmountPreloads =2 ; 
var RedirectTo="Start.html";

var imgArray = CreateArray(AmmountPreloads+1,2);

	
	imgArray[1][1] = "flash"; 
	imgArray[1][0] = "Entrance.swf";	
	

	

	function CreateArray(dim1) {
		if (CreateArray.arguments.length == 1) {
			return new Array(dim1);
		} else {
			var multiArray = new Array(dim1)
			for (var i = 0; i < dim1; i++) {
				multiArray[i] = new Array(CreateArray.arguments[1]);
			}
			return multiArray;
		}
	}

window.document.write("<div id='preloadLayer' style='position:absolute; left:0px; top:0px; width:0px; height:1px; z-index:1; visibility: hidden;'>");

var LastType = "";
for (loop = 1; loop < imgArray.length; loop++) {
	var PrintString = "";
	var CheckType = "";
	

		if ( imgArray[loop][1] == "image" || (!imgArray[loop][1] && LastType == "image" )) {
			PrintString = "<img src='" + imgArray[loop][0] + "'>";
		} else if ( imgArray[loop][1] == "flash" || (!imgArray[loop][1] && LastType == "flash" )) {
			PrintString = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'> <PARAM NAME=movie VALUE='" + imgArray[1][0] + "'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src='" + imgArray[1][0] + "' quality=high bgcolor=#000000 ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
			
		} else {
	//	alert("Preload Warning: File type '" + imgArray[loop] + "' is not supported!! Keep in mind this is Case-sensitive!!");
		}
		if ( imgArray[loop][1] ) { LastType = imgArray[loop][1]; } 

	document.title=window.status;
	window.document.write("<br>" + PrintString);
}

window.document.write("</div><center><font size=4>LOADING SITE IMAGES....</font></center><img src=\"Empty.gif\">");


function Redirect() {
    navigate(RedirectTo);
}

if ( DoRedirect == "true" ) {
	window.onload = Redirect;
}