// Set slideShowSpeed (milliseconds)
var slideShowSpeed_2 = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration_2 = 2;

// do not edit anything below this line
var t_2;
var Nb_Pic_Tot_2 = Pic_2.length;
var Index_Pic_Cur_2 = Nb_Pic_Tot_2;
var preLoad_2 = new Array();
for (o = 0; o < Nb_Pic_Tot_2; o++)
{
  preLoad_2[o] = new Image();
  preLoad_2[o].src = Pic_2[o];  //
}

function runSlideShow_2()
{
  Index_Pic_Cur_2 = Index_Pic_Cur_2 + 1;
  if (Index_Pic_Cur_2 >= Nb_Pic_Tot_2) Index_Pic_Cur_2 = 0;

  if (document.all)
  {
    document.images.SlideShow_2.style.filter="blendTrans(duration=2)";
    document.images.SlideShow_2.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow_2.filters.blendTrans.Apply();
  }
  document.images.SlideShow_2.src = preLoad_2[Index_Pic_Cur_2].src;
  document.images.SlideShow_2.src = preLoad_2[Index_Pic_Cur_2].src;
  if (document.all)
  {
    document.images.SlideShow_2.filters.blendTrans.Play();
  }
  //t_2 = setTimeout('runSlideShow_2()', slideShowSpeed_2);
  t_2 = setTimeout('runSlideShow_2()', Timer_2[Index_Pic_Cur_2]*1000);
}

function show_cur_partenaire_2()
{
	if(Url_Link_Pic_2[Index_Pic_Cur_2]!='')
	{
		if(Url_Link_Pic_2[Index_Pic_Cur_2].substring(0,6)=='http://')
		{
			window.open(Url_Link_Pic_2[Index_Pic_Cur_2],"Partenaire_"+Index_Pic_Cur_2,'width=800,height=600,location,menubar,personalbar,resizable,scrollbars,titlebar');
		}
	  else
		{
		  document.location.href=Url_Link_Pic_2[Index_Pic_Cur_2];
		}
	}
}

