function MM_reloadPage(init)
{
    if (init==true) with (navigator)
    {
        if ((appName=="Netscape")&&(parseInt(appVersion)==4))
        {
            document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
        }
    }
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

var slideShowSpeed = 10000
var crossFadeDuration = 15

var t
var j = 0
var p = Pic.length

var thumb_dir = '/img/header/'

var preLoad = new Array()
for (i = 0; i < p; i++)
{
    preLoad[i] = new Image()
    preLoad[i].src = thumb_dir + Pic[i]
}

function runSlideShow()
{
    // Image 1
    if (document.all)
    {
        document.images.img.style.filter="blendTrans(duration=2)"
        document.images.img.style.filter="blendTrans(duration=crossFadeDuration)"
        document.images.img.filters.blendTrans.Apply()
    }

    document.images.img.src = preLoad[j].src

    if (document.all)
    {
        document.images.img.filters.blendTrans.Play()
    }

    j = j + 1
    if (j > (p-1)) j=0

    t = setTimeout('runSlideShow()', slideShowSpeed)
}
