// JavaScript Document//-->
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function show_details (id)
{
if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display = "inline";
    }
}

function cache (id)
{
if (document.getElementById(id).style.display == 'inline')
	{
	document.getElementById(id).style.display = "none";
    }
}

//////// defilement des images acev fade in fade out//////////


// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() 

// don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'lg.gif'
Pic[1] = 'lg-nortel.gif'
Pic[2] = 'cisco.gif'
Pic[3] = 'thomson.gif'
Pic[4] = 'urmet-domus.gif'
Pic[5] = 'urmet.gif'
Pic[6] = 'linksys.gif'
Pic[7] = 'redline.gif'
Pic[8] = 'selta.gif'
Pic[9] = 'sofrel.gif'
Pic[10] = 'spie_logo.gif'
Pic[11] = 'motorola_logo.gif'
Pic[12] = 'air-radio_logo.gif'

var PicG = new Array()

PicG[0] = 'onetech.gif'
PicG[1] = 'tunisiecables.gif'
PicG[2] = 'onetech.gif'
PicG[3] = 'ttei.gif'
PicG[4] = 'onetech.gif'
PicG[5] = 'autocables.gif'
PicG[6] = 'onetech.gif'
PicG[7] = 'betronic.gif'
PicG[8] = 'onetech.gif'
PicG[9] = 'fuba.gif'
PicG[10] = 'onetech.gif'
PicG[11] = 'techniplast.gif'
PicG[12] = 'onetech.gif'
PicG[13] = 'teleco.gif'
PicG[14] = 'onetech.gif'
PicG[15] = 'tte.gif'
PicG[16] = 'onetech.gif'
PicG[17] = 'onetechdev.gif'




// =======================================
// do not edit anything below this line
// =======================================

var t
var tG

var j = 0
var jG = 0

var p = Pic.length
var pG = PicG.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = 'images/tte/partenaires/'+Pic[i]
}

var preLoadG = new Array()
for (iG = 0; iG < pG; iG++){
   preLoadG[iG] = new Image()
   preLoadG[iG].src = 'images/tte/groupe/'+PicG[iG]
}

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 = setTimeout('runSlideShow()', slideShowSpeed)
   
}

function runSlideShowG(){
   if (document.all){
      document.images.SlideShowG.style.filter="blendTrans(duration=2)"
      document.images.SlideShowG.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShowG.filters.blendTrans.Apply()    
   }
   document.images.SlideShowG.src = preLoadG[jG].src
   if (document.all){
	  document.images.SlideShowG.filters.blendTrans.Play()
   }
   
   jG = jG + 1
   if (jG > (pG-1)) jG=0
   tG = setTimeout('runSlideShowG()', slideShowSpeed)
   
}