function preload()
{
	var args=arguments;
	with(this)
	{
		this.el=[];this.pre_image=[];
		this.ec=args[1].length;
		this.name=args[0];window[name]=this;
		for (var i=1;i<=ec;i++){if(!args[1][i-1]){args[1].splice(i-1,1);i--;ec--;}else{el[i]=args[1][i-1];}}
		this.cp=0;
		this.slink=0;this.kg=0;
		this.start=function()
		{
			for (i=1;i<=ec;i++){pre_image[i]=new Image();pre_image[i].src=el[i];}
			if(cp){kg=0;for(i=1;i<=ec;i++){pre_image[i].onload=function(){eval(name+".slinker();");};kg+=((!pre_image[i].complete)?1:0);}}
			if((!kg||!cp)&&slink){slinker();}
		}		
		this.alt=function()
		{
			for (var i=0;i<= ec;i++)
			{
				var ti=(i+1);
				pre_image[ti]=new Image;pre_image[ti].src=el[ti];if (ti==(ec-i)){break;}		
				ti=(ec-i);pre_image[ti]=new Image;pre_image[ti].src = el[ti];if (ti==(i+2)){break;}	
			}
			if(cp){kg=0;for(i=1;i<=ec;i++){pre_image[i].onload=function(){eval(name+".slinker();");};kg+=((!pre_image[i].complete)?1:0);}}
			if((!kg||!cp)&&slink){slinker();}
		}
		this.slinker=function()
		{
			if(cp){kg=0;for(i=1;i<=ec;i++){kg+=((!pre_image[i].complete)?1:0);}}
			kg--;if(cp&&(!kg||kg<0)){for(i=1;i<=ec;i++){pre_image[i].onload=function(){}}}
			if(!kg||kg<0){eval(slink+".start()");slink=0;}
		}
	}
}