<!-- begin hiding
//Image Preloader Script By Ct_Sirius@Hotmail.com!
//
//Sys_Reactor@Neowin.net
//
//Copyright 2001
//
//Please do not remove this message.
//
//!Read Instructions If Confused, Else Leave at Default Value!
//
//#Begin No-Modify Section
BeginColor = new Array()
EndColor = new Array()
//#End No-Modify Section!
//#Begin Modify Settings Section!
//#The Images You Want To Preload!
//#Place Them In the Array by ("img name","img name",...)!
var yourImages = new Array("images/main_interfaceSlice06.jpg","images/main_interfaceSlice06over.jpg","images/main_interfaceSlice06down.jpg",
"images/main_interfaceSlice08.jpg","images/main_interfaceSlice08over.jpg","images/main_interfaceSlice08down.jpg",
"images/main_interfaceSlice15.jpg","images/main_interfaceSlice15over.jpg","images/main_interfaceSlice15down.jpg",
"images/main_interfaceSlice16.jpg","images/main_interfaceSlice16over.jpg","images/main_interfaceSlice16down.jpg",
"images/main_interfaceSlice19.jpg","images/main_interfaceSlice19over.jpg","images/main_interfaceSlice19down.jpg",
"images/main_interfaceSlice20.jpg","images/main_interfaceSlice20over.jpg","images/main_interfaceSlice20down.jpg",
"images/main_interfaceSlice23.jpg","images/main_interfaceSlice23over.jpg","images/main_interfaceSlice23down.jpg",
"winners/images/bottom_middle_heads.gif","winners/images/home.gif","winners/images/left_background.gif",
"winners/images/left_bottom_heads.gif","winners/images/left_middle_curtain.gif","winners/images/next.gif",
"winners/images/previous.gif","winners/images/right_background.gif","winners/images/right_bottom_heads.gif",
"winners/images/right_curtain.gif","winners/images/Theater_background.gif","winners/images/top_background.gif",
"winners/images/top_left_curtain.gif","winners/images/top_middle_l_curtain.gif","winners/images/top_middle_r_curtain.gif",
"winners/images/top_right_curtain.gif")
//#The target page that you to redirect to after the images successfully preload!
//#Default = index2.html
var PreloadTarget = "main.html"
//#The length of the preload status bar! Note it MUST BE larger than the number of images loaded!
//#Default = 500
var preloadbarWidth = 600
//#The height of the preload status bar!
//#Default = 20
var preloadbarHeight = 20
//#Default Color of the Preload Status Bar!
//#Default = White (#FFFFFF)!
var backgroundOfGradient = "#C6CCE2"
//#Enter the first letter or number of each set of HEX color codes!
//#Example {35,16,24}, Then BeginColor[0]=3, BeginColor[1]=1, BeginColor[2]=2, Etc!
//#You will NOT notice a color difference!
//#Default = {BC,BF,C0}
BeginColor[0] = "8" 
BeginColor[1] = "b"
BeginColor[2] = "e"
//#Enter the first letter or number of each set of HEX color codes!
//#Example {35,16,24}, Then EndColor[0]=3, EndColor[1]=1, EndColor[2]=2, Etc!
//#You will NOT notice a color difference!
//#Default = {BC,BF,C0}
EndColor[0] = "3"
EndColor[1] = "4"
EndColor[2] = "a"
//#If you get a javascript error, adjust this value, otherwise please do not modify!
//#Note that the MINUNUM VALUE is 2!
//#Default = 5!
var gap = 5
//#End Modify Settings Section!
//#Begin No-Modify Section!
if (!document.all) location.replace(PreloadTarget)
var a = 10, b = 11, c = 12, d = 13, e = 14, f=15, i, j, decimal = new Array(), hex = new Array(), diff = new Array();
var convert = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"), imgLen = yourImages.length;
var loaded = new Array(), preImages = new Array(), currCount = 0, pEndColor = 0, h = 0, hilite = new Array(), cover = new Array();
var num = Math.floor(preloadbarWidth/gap);


for (i = 0; i < 3; i++)
{
	BeginColor[i] = BeginColor[i].toLowerCase();
    	EndColor[i] = EndColor[i].toLowerCase();
    	BeginColor[i] = eval(BeginColor[i]);
    	EndColor[i] = eval(EndColor[i]);
    	diff[i] = (EndColor[i]-BeginColor[i])/num;
    	decimal[i] = Math.floor(diff[i]);
    	hex[i] = Math.round((diff[i] - decimal[i])*15);
}
EndColor[0] = 0;
EndColor[1] = 2;
EndColor[2] = 1;
i = 0, j = 0;


while (i <= num)
{
    	hilite[i] = "#";


        while (j < 3)
        {
        	hilite[i] += convert[BeginColor[j]];
        	hilite[i] += convert[EndColor[j]];
        	BeginColor[j] += decimal[j];
        	EndColor[j] += hex[j];
		if (EndColor[j] > 15)
		{
            		EndColor[j] -= 15;
            		BeginColor[j]++;
            	}
            	j++;	
         }
         j = 0;
         i++;
}


function loadImages()
{
	for (i = 0; i < imgLen; i++)
	{
       	preImages[i] = new Image();
              preImages[i].src = yourImages[i];
              loaded[i] = 0;
              cover[i] = Math.floor(num/imgLen)*(i+1)
       }
       cover[cover.length-1] += num%imgLen
       checkLoad();
}


function checkLoad()
{
	if (pEndColor)
	{ 
		changeto(); 
		return
	}
       if (currCount == imgLen)
       { 
       	location.replace(PreloadTarget); 
       	return 
      	}
	for (i = 0; i < imgLen; i++) 
	{
		if (!loaded[i] && preImages[i].complete) 
		{
              	loaded[i] = 1; 
              	pEndColor++; 
              	currCount++;
                     checkLoad();
                     return;
              }
        }
      	setTimeout("checkLoad()",10);
}


function changeto() 
{
	if (h+1 > cover[currCount-1]) 
	{
       	var percent = Math.round(100/imgLen)*currCount;
              if (percent > 100) 
              	while (percent != 100) 
              		percent--;
             	if (currCount == imgLen && percent < 100) 
             		percent = 100;
             	defaultStatus = "Loaded " + currCount + " out of " + imgLen + " Images [" + percent + "%].";
		document.all.stat.innerHTML = "Please Wait.... Loading Image " + currCount + " out of " + imgLen + " [" + percent + "%]";
              pEndColor--;
              checkLoad();
              return;
         }
         eval("document.all.cell" + (h+1) + ".style.backgroundColor = hilite[h]");
         h++;
         setTimeout("changeto()",1);
}
//defaultStatus = "Loaded 0 out of " + imgLen + " images [0%]."
// end hiding -->
