﻿var j1 = 0;
var ART1 = 0;
var index=0;
var PICT_ART1 = new Array()
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.001-001.png";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.002-001.png";
ART1++;                               
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.003-001.png";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.004-001.png";
ART1++;                               
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.005-001.png";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.006-001.png";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.007-001.png";
ART1++;                               
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.008-001.png";
ART1++;

PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.001.jpg";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.002.jpg";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.003.jpg";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.004.jpg";
ART1++;
PICT_ART1[ART1]=new Image()
PICT_ART1[ART1].src="WWADN.html_files/WWADN.005.jpg";
ART1++;

var slideShowSpeed = 7000
var crossFadeDuration = 40
var t
function runSlideShow1()
{  
   if (document.all)
   {
      document.images.SlideShow_ART1.style.filter="blendTrans(duration=5)"
      document.images.SlideShow_ART1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow_ART1.filters.blendTrans.Apply()
   }
   document.images.SlideShow_ART1.src = PICT_ART1[0].src 
   index=0;
   if (document.all)
   {
     document.images.SlideShow_ART1.filters.blendTrans.Play()    
   }
   j1 = 1
t = setTimeout('runSlideShow()', '2000')    
}

function runSlideShow()
{
   if (document.all)
   {
      document.images.SlideShow_ART1.style.filter="blendTrans(duration=5)"
      document.images.SlideShow_ART1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow_ART1.filters.blendTrans.Apply()
   }
   document.images.SlideShow_ART1.src = PICT_ART1[j1].src 
   index=j1;
   if (document.all)
   {
     document.images.SlideShow_ART1.filters.blendTrans.Play()    
   }
     
   if (j1 >=ART1-1) 
   {      
	  j1=0	  
	  t = setTimeout('runSlideShow1()',slideShowSpeed) 
	  if(j1>0)
      {
		//alert(j1)
		showNavigation();		
	  }
   }
   else
   {	   	
	  j1 = j1 + 1
	  if(j1>8 && j1<=12)
	  {
		hideNavigation();
	  }
	  if(j1>0 && j1<=8)
	  {
		showNavigation();
	  }
	  t = setTimeout('runSlideShow()', slideShowSpeed)    
   }
}
function Step(i)
{
	GoTo(index + i)
}
function GoTo(newIndex)
{
	if(newIndex >= 0 && newIndex < PICT_ART1.length)
    {
		index = newIndex;
        document.SlideShow_ART1.src = PICT_ART1[index].src;
		j1=index;			
    }
	if(newIndex>=0 && newIndex<=7)
	{
		showNavigation();
	}
	if(newIndex>=8 && newIndex<=12)
	{
		hideNavigation();
	}
}

function hideNavigation()
{	
var row = document.getElementById("navigationRow");	
row.style.display = 'none';	
}
function showNavigation()
{	
var row = document.getElementById("navigationRow");	
row.style.display = '';
}