
 thePics=new Array();
 theLinks=new Array();
 thePicT=0;
 thePic = -1;
 swapDelay = 3000;
 
 function SwapImage(thePics,theLinks,swapNow) {
   if (swapNow == true)
     thePic = thePic + 1;
   if (thePic == thePics.length)
     thePic = 0;
   if (swapNow == true)
   {
   if (document.all){
     document.thePicImg.style.filter="blendTrans(duration=2)";
     document.thePicImg.style.filter="blendTrans(duration=CrossFadeDuration)";
     document.thePicImg.filters.blendTrans.Apply();
     }
     document.thePicImg.src = thePics[thePic];
     if (document.all) document.thePicImg.filters.blendTrans.Play();
   }
   thePicT = setTimeout("SwapImage(thePics, theLinks, true)", swapDelay);
}

function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
      {
    return true;}
	else return false;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function ChangeLocation()
{
	location.href = theLinks[thePic];
}

function ShowHide(strObjId)
{
	if (document.getElementById(strObjId).style.display == 'none')
	{
		document.getElementById(strObjId).style.display = ''
	}
	else
	{
		document.getElementById(strObjId).style.display = 'none'
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

