function Phs(pic,param) 
{
 this.src=pic; 
 this.param=param;
 this.img=new Image();
 this.img.src=pic;
}

function SlideEfx(ar,imgID,funname,wait,type,callclick)
{
	var arPh=ar;
	var len=ar.length;
	if (!len) return; // no photos
	
	var i=0,j,iDelay=wait*1000;
	var oImg=document.getElementById(imgID); 
	if (!oImg) return;
	var fAvaible=document.all?true:false;
	var funcCall=callclick;
	
	if (fAvaible) 
	{
		oImg.style.filter="progid:DXImageTransform.Microsoft."+type;
		oImg.style.cursor="hand";
	}
	else	oImg.style.cursor="pointer";

	this.fncSlideShow=function(who)
   {
		if (fAvaible) oImg.filters[0].apply();
		i%=len; oImg.src=arPh[i].img.src; 	j=i;
		if (funcCall) oImg.onclick=function() {funcCall(arPh[j].param);};
		i++;	;
		if (fAvaible) oImg.filters[0].play();
		setTimeout(who+".fncSlideShow('"+who+"')",iDelay);
		
   }
 
  this.fncSlideShow(funname);
}

function SlideFilter(ar,imgID,funname,wait,type,callclick)
{
	var arPh=ar;
	var len=ar.length;
	if (!len) return; // no photos
	
	var i=0,j,iDelay=wait*1000;
	var oImg=document.getElementById(imgID);
	if (!oImg) return;
	var fAvaible=document.all?true:false;
	var funcCall=callclick;
	if (!len) return; // no photos
	if (fAvaible) 
	{
		oImg.style.filter=type;
		oImg.style.cursor="hand";
	}
	else	oImg.style.cursor="pointer";

	this.fncSlideShow=function(who)
   {
		if (fAvaible) oImg.filters[0].apply();
		i%=len; oImg.src=arPh[i].img.src; 	j=i;
		if (funcCall) oImg.onclick=function() {funcCall(arPh[j].param);};
		i++;	
		if (fAvaible) oImg.filters[0].play();
		setTimeout(who+".fncSlideShow('"+who+"')",iDelay);
   }
 
  this.fncSlideShow(funname);
}