var crossFadeDuration = 3
var Pic = new Array()

Pic[0] = '/img/pictures/home_page/1.jpg' 
Pic[1] = '/img/pictures/home_page/12.jpg' 
Pic[2] = '/img/pictures/home_page/11.jpg' 
Pic[3] = '/img/pictures/home_page/10.jpg' 
Pic[4] = '/img/pictures/home_page/9.jpg'
Pic[5] = '/img/pictures/home_page/8.jpg' 
Pic[6] = '/img/pictures/home_page/7.jpg' 
Pic[7] = '/img/pictures/home_page/6.jpg' 
Pic[8] = '/img/pictures/home_page/5.jpg' 
Pic[9] = '/img/pictures/home_page/4.jpg'
Pic[10] = '/img/pictures/home_page/3.jpg' 
Pic[11] = '/img/pictures/home_page/2.jpg'

var p = Pic.length

var j1 = 0
var j2 = 1
var j3 = 3
var j4 = 2
var j5 = 4
var j6 = 5
var j7 = 6

var preLoad = new Array()

for (i = 0; i < p; i++){
                       preLoad[i] = new Image()
                       preLoad[i].src = Pic[i]
                       }

function SlideShow(t){
                    var x = t;
                    var y = 0;
                    setTimeout("runSlideShow1()", y);
                    y = y + x;
                    setTimeout("runSlideShow2()", y);
                    y = y + x;      
                    setTimeout("runSlideShow4()", y);
                    y = y + x;
                    setTimeout("runSlideShow3()", y);
                    y = y + x;
                    setTimeout("runSlideShow5()", y);
                    y = y + x;
                    setTimeout("runSlideShow6()", y);
                    y = y + x;
                    setTimeout("runSlideShow7()", y);
                    runSlideShow1()
                    runSlideShow2()
                    runSlideShow3()
                    runSlideShow4()
                    runSlideShow5()
                    runSlideShow6()
                    runSlideShow7()
                    j1 = j1 - 1
                    if (j1 < 0) j1=(p-1)
                    j2 = j2 - 1
                    if (j2 < 0) j2=(p-1)
                    j3 = j3 - 1
                    if (j3 < 0) j3=(p-1)
                    j4 = j4 - 1
                    if (j4 < 0) j4=(p-1)
                    j5 = j5 - 1
                    if (j5 < 0) j5=(p-1)
                    j6 = j6 - 1
                    if (j6 < 0) j6=(p-1)
                    j7 = j7 - 1
                    if (j7 < 0) j7=(p-1)
                    }

function runSlideShow1(){
                        if (document.all){
                        document.images.SlideShow1.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow1.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow1.src = preLoad[j1].src
                        if (document.all){
                        document.images.SlideShow1.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow2(){
                        if (document.all){
                        document.images.SlideShow2.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow2.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow2.src = preLoad[j2].src
                        if (document.all){
                        document.images.SlideShow2.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow3(){
                        if (document.all){
                        document.images.SlideShow3.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow3.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow3.src = preLoad[j3].src
                        if (document.all){
                        document.images.SlideShow3.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow4(){
                        if (document.all){
                        document.images.SlideShow4.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow4.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow4.src = preLoad[j4].src
                        if (document.all){
                        document.images.SlideShow4.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow5(){
                        if (document.all){
                        document.images.SlideShow5.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow5.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow5.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow5.src = preLoad[j5].src
                        if (document.all){
                        document.images.SlideShow5.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow6(){
                        if (document.all){
                        document.images.SlideShow6.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow6.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow6.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow6.src = preLoad[j6].src
                        if (document.all){
                        document.images.SlideShow6.filters.blendTrans.Play()
                                         }
                        }

function runSlideShow7(){
                        if (document.all){
                        document.images.SlideShow7.style.filter="blendTrans(duration=2)"
                        document.images.SlideShow7.style.filter="blendTrans(duration=crossFadeDuration)"
                        document.images.SlideShow7.filters.blendTrans.Apply() 
                                         }
                        document.images.SlideShow7.src = preLoad[j7].src
                        if (document.all){
                        document.images.SlideShow7.filters.blendTrans.Play()
                                         }
                        }