function newImage(imageUrl, imageWidth, imageHeight) 
{
	document.getElementById('pozaMare').src=imageUrl;
	document.getElementById('pozaMare').width=imageWidth;
	document.getElementById('pozaMare').height=imageHeight;
	t = 0;
}


function runSlideShow(){
   if (document.all){
      document.getElementById('pozaMare').style.filter="blendTrans(duration=2)";
      document.getElementById('pozaMare').style.filter="blendTrans(duration=2)";
      document.getElementById('pozaMare').filters.blendTrans.Apply()  ;    
   }
   document.getElementById('pozaMare').src = preLoad[j].src;
   if (Picwidth[j]>Picheight[j]) {
	   document.getElementById('pozaMare').width=Picwidth[j];
	   document.getElementById('pozaMare').height=Picheight[j];
	} else {
	   document.getElementById('pozaMare').width=Math.round((Picwidth[j]/1.5),0);
	   document.getElementById('pozaMare').height=Math.round((Picheight[j]/1.5),0);	
	}
   if (document.all){
      document.getElementById('pozaMare').filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', 6000);


}
