	var blank="";
	var objectList=new Array;
	var objectOpacityList=new Array;
	
	var engineTimer=0;
	
	
	fadeFx = function(obj,type,whenDone)
	{
		if(type=='custom')
		{
		opacityObject=obj;
		}
		else
		{
		opacityObject=document.getElementById(obj);
		}
	
		if(objectList.length>0)
		{
		objOrder=objectList.length;
		objectList[objOrder]=opacityObject;
		objectOpacityList[objOrder]=100;
		}
		else
		{
		objectList[0]=opacityObject;
		objectOpacityList[0]=100;
		}
		
		checkFadefx();
		
		if(engineTimer==0)
		{
		fadeEngine();
		}
	}
	
	checkFadefx = function()
	{
		newObjectList=new Array;
		newObjectOpacityList=new Array;

		objectCounter=0;	

		for(i=0;objectList.length>i;i++)
		{
			if(objectOpacityList[i]!=1)
			{
			newObjectList[objectCounter]=objectList[i];
			newObjectOpacityList[objectCounter]=objectOpacityList[i];
			objectCounter++;
			}
		}
			if(objectList.length==0)
			{
			clearTimeout(engineTimer);
			engineTimer=0;
			document.getElementById("content").style.opacity=1;
			objectList=new Array;
			objectOpacityList=new Array;
			}
			else
			{
			objectList=newObjectList;
			objectOpacityList=newObjectOpacityList;
			}

	}
	a=0;
	fadeEngine = function()
	{

		for(i=0;objectList.length>i;i++)
		{
		objectOpacityList[i]=objectOpacityList[i]-20;
			if(objectOpacityList[i]<1)
			{
			objectOpacityList[i]=1;
			}				
		objectList[i].style.opacity=1-(objectOpacityList[i]/100);
			if(document.all)
			{
			objectList[i].style.filter="alpha(opacity = "+(100-objectOpacityList[i])+")";
			}
		}
		engineTimer=setTimeout("fadeEngine()",80);

		
		checkFadefx();
	}