/*	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_init2,false):window.attachEvent('onload',so_init2);var dd=document, imgs2 = new Array(), zInterval2 = null, currentt=0, pausee=false;function so_init2(){	if(!dd.getElementById || !dd.createElement)return;	css2 = dd.createElement('link');	css2.setAttribute('href','slideshow2_new.css');	css2.setAttribute('rel','stylesheet');	css2.setAttribute('type','text/css');	dd.getElementsByTagName('head')[0].appendChild(css2);	imgs2 = dd.getElementById('slideshow_new').getElementsByTagName('img');	for(i=1;i<imgs2.length;i++) imgs2[i].xOpacity = 0;	imgs2[0].style.display = 'block';	imgs2[0].xOpacity = .99;	setTimeout(so_xfade2,3000);}function so_xfade2(){	cOpacity = imgs2[currentt].xOpacity;	nIndex = imgs2[currentt+1]?currentt+1:0;	nOpacity = imgs2[nIndex].xOpacity;	cOpacity-=.05;	nOpacity+=.05;	imgs2[nIndex].style.display = 'block';	imgs2[currentt].xOpacity = cOpacity;	imgs2[nIndex].xOpacity = nOpacity;	setOpacity2(imgs2[currentt]);	setOpacity2(imgs2[nIndex]);	if(cOpacity<=0)	{		imgs2[currentt].style.display = 'none';		currentt = nIndex;		setTimeout(so_xfade2,3000);	}	else	{		setTimeout(so_xfade2,50);	}	function setOpacity2(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) + ')';	}}