/*	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',fade,false):window.attachEvent('onload',fade);slideShowSpeed = 8000;crossFadeDuration = 2;var t;function fade(){    j = 0;    p = lf.length;    preLoad = new Array();    for (i = 0; i < p; i++) {        preLoad[i] = new Image();        preLoad[i].src = lf[i];    }    t=window.setTimeout(runSlideShow, slideShowSpeed);}function runSlideShow() {    if (document.all) {        document.images.SlideShow.style.filter="blendTrans(duration=2)";        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";        document.images.SlideShow.filters.blendTrans.Apply();    }    document.images.SlideShow.src = preLoad[j].src;    if (document.all) {        document.images.SlideShow.filters.blendTrans.Play();    }    j = j + 1;    if (j > (p - 1))        j = 0;    t=window.setTimeout(runSlideShow, slideShowSpeed);}//  End -->/*var d=document, imgs = new Array(), zInterval = null, current=0, pause=false;current=0;function so_init(){	if(!d.getElementById)return;    immagine=new Array();	for(i=0;i<lf.length;i++){	   //preload immagini    	immagine[i]= new Image();    	immagine[i].src='resizeImage.php?c='+lf[i][0]+'&file='+lf[i][1];	}    setTimeout(so_xfade,3000);}function so_xfade(){    if(current==lf.length)        current=0;    else        current++;	cOpacity = immagine[current].xOpacity;	nIndex = immagine[current+1]?current+1:0;	nOpacity = immagine[nIndex].xOpacity;	cOpacity-=.05;	nOpacity+=.05;	//lf[nIndex].style.display = 'block';	immagine[current].xOpacity = cOpacity;	immagine[nIndex].xOpacity = nOpacity;	setOpacity(immagine[current]);	setOpacity(immagine[nIndex]);	if(cOpacity<=0)	{		immagine[current].style.display = 'none';		current = nIndex;		setTimeout(so_xfade,3000);	}	else	{		setTimeout(so_xfade,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) + ')';	}}*/