var c=0;
var s;
function photoGallery()
{

if(navigator.userAgent.indexOf("Firefox") != -1)
{   
   picture = document.getElementById('photo-gallery');
   if (c%4==0){
   picture.src = "homeGallery/homePic1.jpg";
   }
   if (c%4==1){
   picture.src = "homeGallery/homePic2.jpg";
   }
   if (c%4==2){
   picture.src = "homeGallery/homePic3.jpg";
   }
   if (c%4==3){
   picture.src = "homeGallery/homePic4.jpg";
   }
   if (c%4==4){
   picture.src = "homeGallery/homePic5.html";
   }

   c=c+1
   s=setTimeout("photoGallery()",4000)
    
}
else
{
   picture = document.getElementById('photo-gallery');
   picture.style.filter="blendTrans(duration=1)";
   picture.filters.blendTrans.Apply();

   if (c%4==0){
   picture.src = "homeGallery/homePic1.jpg";
   picture.filters.blendTrans.Play();
   }
   if (c%4==1){
   picture.src = "homeGallery/homePic2.jpg";
   picture.filters.blendTrans.Play();
   }
   if (c%4==2){
   picture.src = "homeGallery/homePic3.jpg";
   picture.filters.blendTrans.Play();
   }
   if (c%4==3){
   picture.src = "homeGallery/homePic4.jpg";
   picture.filters.blendTrans.Play();
   }
   if (c%4==4){
   picture.src = "homeGallery/homePic5.html";
   picture.filters.blendTrans.Play();
   }

   c=c+1
   s=setTimeout("photoGallery()",4000)
}
}
