﻿
/* slide */
var currslid = 0;
var slidint;
function setfoc(id) {
    var productphoto = document.getElementById("productphoto");
    document.getElementById("productphoto").src = picarry[id];
    document.getElementById("foclnk").href = lnkarry[id];
    //document.getElementById("fttltxt").innerHTML = "<a href=\""+lnkarry[id]+"\" target=_blank>"+ttlarry[id]+"</a>";
    currslid = id;
    for (i = 0; i < piclen + 1; i++) {
        document.getElementById("tmb" + i).className = "thubpic";
    };
    document.getElementById("tmb" + id).className = "thubpiccur";
    productphoto.style.visibility = "hidden";
    //productphoto.filters[0].Apply();
    if (productphoto.style.visibility == "visible") {
        productphoto.style.visibility = "hidden";
        if (productphoto.filters)
            productphoto.filters.revealTrans.transition = 12;
    }
    else {
        productphoto.style.visibility = "visible";
        if (productphoto.filters)
            productphoto.filters[0].transition = Math.round(Math.random() * 50);
    }
    if (productphoto.filters)
        productphoto.filters[0].Play();
}
function playnext() {
    if (currslid == 3) {
        currslid = 0;
    } else {
        currslid++;
    };
    setfoc(currslid);
};
function playit() {
    //slidint = setInterval(playnext,3500);
};
function stopit() {
    clearInterval(slidint);
};

