/*	Image Cross Fade Redux	Version 1.0	Last revision: 02.15.2006	steve@slayeroffice.com	Rewrite of old code found here: http://slayeroffice.com/code/imageCrossFade/index.html*/window.addEventListener?window.addEventListener('load',so_init,false):window.attachEvent('onload',so_init);var d=document, divArray = new Array(), zInterval = null, current=0, pause=false;function so_init(){	if(!d.getElementById || !d.createElement)return;	divArray = d.getElementById('fade').getElementsByTagName('table');	for(i=1;i<divArray.length;i++) divArray[i].xOpacity = 0;	divArray[0].style.display = 'block';	divArray[0].xOpacity = .99;		if(divArray.length > 1)		setTimeout(so_xfade_svela,3000);}function so_xfade_svela(){	cOpacity = divArray[current].xOpacity;	cOpacity-=.05;	divArray[current].xOpacity = cOpacity;	setOpacity(divArray[current]);		if(cOpacity<=0)	{		divArray[current].style.display = 'none';				setTimeout(so_xfade_scopri,1000);	}	else	{		setTimeout(so_xfade_svela,50);	}	function setOpacity(obj)	{		if(obj.xOpacity>.99)		{			obj.xOpacity = .99;			return;		}		obj.style.opacity = obj.xOpacity;		obj.style.MozOpacity = obj.xOpacity;		obj.style.filter = 'alpha(opacity=' + (obj.xOpacity*100) + ')';	}}function so_xfade_scopri(){	nIndex = divArray[current+1]?current+1:0;	nOpacity = divArray[nIndex].xOpacity;	nOpacity+=.05;	divArray[nIndex].style.display = 'block';	divArray[nIndex].xOpacity = nOpacity;	setOpacity(divArray[nIndex]);		if(nOpacity>.99)	{		current = nIndex;		setTimeout(so_xfade_svela,3000);	}	else	{		setTimeout(so_xfade_scopri,100);	}	function setOpacity(obj)	{		if(obj.xOpacity>.99)		{			obj.xOpacity = .99;			return;		}		obj.style.opacity = obj.xOpacity;		obj.style.MozOpacity = obj.xOpacity;		obj.style.filter = 'alpha(opacity=' + (obj.xOpacity*100) + ')';	}}