//---------------------------------------------------------------------------------

// This slideshow has relative paths and will not work below the root area.

// SLIDESHOW BEHVIOUR CONFIGURATION

var slideShowSpeed = 2000
var crossFadeDuration = 5

//---------------------------------------------------------------------------------

// DO NOT CHANGE

var Pic = new Array(2); Pic [0] = new Array ;Pic [1] = new Array ;Pic [2] = new Array ;Pic [3] = new Array ;Pic [4] = new Array ;Pic [5] = new Array ;Pic [6] = new Array ;Pic [7] = new Array ;Pic [8] = new Array ;Pic [9] = new Array ;
var Lnk = new Array(2); Lnk [0] = new Array ;Lnk [1] = new Array ;Lnk [2] = new Array ;Lnk [3] = new Array ;Lnk [4] = new Array ;Lnk [5] = new Array ;Lnk [6] = new Array ;Lnk [7] = new Array ;Lnk [8] = new Array ;Lnk [9] = new Array ;

//---------------------------------------------------------------------------------

// SLIDESHOW IMAGE & LINK CONFIGURATION - NOTE: MAX 10 IMAGES PER CONFIG

// CONFIG 0 - Template

Pic[0][0] = 'images/slideshow/template/template1.jpg' ; 		Lnk[0][0] = '#top'
Pic[0][1] = 'images/slideshow/template/template2.jpg';             	Lnk[0][1] = '#top'
Pic[0][2] = 'images/slideshow/template/template3.jpg';             	Lnk[0][2] = '/units_rack_portables.htm'
Pic[0][3] = 'images/slideshow/template/notebook_packages.jpg';      Lnk[0][3] = '/solinet_notebook_packages.htm'

// CONFIG 1 - Home

Pic[1][0] = 'images/slideshow/home/voip/1.jpg';    		Lnk[1][0] = 'http://www.solinet.com/voip.htm'
Pic[1][1] = 'images/slideshow/home/voip/2.jpg';    		Lnk[1][1] = 'http://www.solinet.com/voip.htm'
Pic[1][2] = 'images/slideshow/home/voip/3.jpg';    		Lnk[1][2] = 'http://www.solinet.com/voip.htm'
Pic[1][3] = 'images/slideshow/home/voip/4.jpg';  	Lnk[1][3] = 'http://www.solinet.com/voip.htm'
Pic[1][4] = 'images/slideshow/home/voip/5.jpg';  	Lnk[1][4] = 'http://www.solinet.com/voip.htm'

// CONFIG 2 - Test Tools

Pic[2][0] = 'images/slideshow/template/template1.jpg';             	Lnk[2][0] = '#top'
Pic[2][1] = 'images/slideshow/template/template2.jpg';    		Lnk[2][1] = '#top'
Pic[2][2] = 'images/slideshow/template/template3.jpg';    		Lnk[2][2] = 'units_rack_portables.htm'
Pic[3][3] = 'images/slideshow/template/notebook_packages.jpg';      Lnk[0][3] = '/solinet_notebook_packages.htm'

// CONFIG 3 - Notebook Packages

Pic[2][0] = 'images/slideshow/notebook_packages/template1.jpg';         Lnk[2][0] = '#top'
Pic[2][1] = 'images/slideshow/notebook_packages/template2.jpg';    		Lnk[2][1] = '#top'
Pic[2][2] = 'images/slideshow/notebook_packages/template3.jpg';    		Lnk[2][2] = 'units_rack_portables.htm'
Pic[2][3] = 'images/slideshow/notebook_packages/notebook_packages.jpg'; Lnk[2][3] = 'solinet_notebook_packages.htm'



//---------------------------------------------------------------------------------

// DO NOT CHANGE

var p
var t
var Config
var i = 0
var j = 0
var init=1

var preLoad = new Array(2); preLoad[0] = new Array; preLoad[1] = new Array;preLoad[2] = new Array;preLoad[3] = new Array;preLoad[4] = new Array;preLoad[5] = new Array;preLoad[6] = new Array;preLoad[7] = new Array;preLoad[8] = new Array;preLoad[9] = new Array;

function runSlideShow(Cfg){

   Config=Cfg
 
   if( init > 0)
   {
       p = Pic[Config].length 
              
        for (j = 0; j < p; j++)
        {
            preLoad[Config][j] = new Image()
            preLoad[Config][j].src = Pic[Config][j]
        }

   		init=0
   }         

   j = j + 1
        
   if (j > (p-1)) j=0

   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[Config][j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }

   t = setTimeout('runSlideShow(Config)', slideShowSpeed)
}

function runSlideLink(){
        this.location.href = Lnk[Config][j];
}

function runSlideMouseIn() { 
if (document.all) 
        for (var i=0;i < document.all.length; i++) 
        document.all(i).style.cursor = 'hand'; 
} 

function runSlideMouseOut() { 
if (document.all) 
        for (var i=0;i < document.all.length; i++) 
        document.all(i).style.cursor = 'auto'; 
} 
