

var arrImagesAutombeel = new Array();
var arrImagesMindBodySoul = new Array();
var arrImagesTonysTahoe = new Array();
var arrImagesOnlineSweeps = new Array();
var arrImagesPetServices = new Array();
var arrImages85Niche = new Array();
var arrImagesWebWork = new Array
var arrPortfolioIndex = [0, 0, 0, 0, 0, 0, 0];
var strPathGallery;

initPortfolio();

function initPortfolio() {
    strPathGallery = "_images/collection/autombeel/_full/";
    arrImagesAutombeel[0] = strPathGallery + "portfolio_f01.jpg";

    strPathGallery = "_images/collection/mindbodysoul/_full/";
    arrImagesMindBodySoul[0] = strPathGallery + "portfolio_f01.jpg";

    strPathGallery = "_images/collection/tonystahoe/_full/";
    arrImagesTonysTahoe[0] = strPathGallery + "portfolio_f01.jpg";
    arrImagesTonysTahoe[1] = strPathGallery + "portfolio_f02.jpg";

    strPathGallery = "_images/collection/onlinesweeps/_full/";
    arrImagesOnlineSweeps[0] = strPathGallery + "portfolio_f01.jpg";
    arrImagesOnlineSweeps[1] = strPathGallery + "portfolio_f02.jpg";
    arrImagesOnlineSweeps[2] = strPathGallery + "portfolio_f03.jpg";
    arrImagesOnlineSweeps[3] = strPathGallery + "portfolio_f04.jpg";
    arrImagesOnlineSweeps[4] = strPathGallery + "portfolio_f05.jpg";
    arrImagesOnlineSweeps[5] = strPathGallery + "portfolio_f06.jpg";
    arrImagesOnlineSweeps[6] = strPathGallery + "portfolio_f07.jpg";
    arrImagesOnlineSweeps[7] = strPathGallery + "portfolio_f08.jpg";
    arrImagesOnlineSweeps[8] = strPathGallery + "portfolio_f09.jpg";
    arrImagesOnlineSweeps[9] = strPathGallery + "portfolio_f10.jpg";
    arrImagesOnlineSweeps[10] = strPathGallery + "portfolio_f11.jpg";
    arrImagesOnlineSweeps[11] = strPathGallery + "portfolio_f12.jpg";

    strPathGallery = "_images/collection/petservices/_full/";
    arrImagesPetServices[0] = strPathGallery + "portfolio_f01.jpg";

    strPathGallery = "_images/collection/85niche/_full/";
    arrImages85Niche[0] = strPathGallery + "portfolio_f01.jpg";

    strPathGallery = "_images/collection/webwork/_full/";
    arrImagesWebWork[0] = strPathGallery + "portfolio_f01.jpg";
    arrImagesWebWork[1] = strPathGallery + "portfolio_f02.jpg";
    arrImagesWebWork[2] = strPathGallery + "portfolio_f03.jpg";
    arrImagesWebWork[3] = strPathGallery + "portfolio_f04.jpg";
    arrImagesWebWork[4] = strPathGallery + "portfolio_f05.jpg";
    arrImagesWebWork[5] = strPathGallery + "portfolio_f06.jpg";
    arrImagesWebWork[6] = strPathGallery + "portfolio_f07.jpg";
    arrImagesWebWork[7] = strPathGallery + "portfolio_f08.jpg";
    arrImagesWebWork[8] = strPathGallery + "portfolio_f09.jpg";
    arrImagesWebWork[9] = strPathGallery + "portfolio_f10.jpg";
    arrImagesWebWork[10] = strPathGallery + "portfolio_f11.jpg";
    arrImagesWebWork[11] = strPathGallery + "portfolio_f12.jpg";
}

    function changeImage(varDirection, arrImages, intImageIndex, intIndexIndex) {
        if (varDirection == "N") {
            arrPortfolioIndex[intIndexIndex] = arrPortfolioIndex[intIndexIndex] + 1;
        }
        else if (varDirection == "P") {
            arrPortfolioIndex[intIndexIndex] = arrPortfolioIndex[intIndexIndex] - 1;
        }

        if  (arrPortfolioIndex[intIndexIndex] < 0)  {
            arrPortfolioIndex[intIndexIndex] = arrImages.length - 1;
        }
        else if (arrPortfolioIndex[intIndexIndex] >= arrImages.length) {
            arrPortfolioIndex[intIndexIndex] = 0;
       }

           return arrPortfolioIndex[intIndexIndex];
    }

    function showGalleryImage(varImageObject, varSource, varDuration) {
        var imgObj;
        imgObj = document.getElementById(varImageObject);
    //    if (document.all) {
    //        imgObj.style.filter = "blendTrans(duration=" + varDUration + ")";
    //        imgObj.style.filter = "blendTrans(duration=CrossFadeDuration)";
    //        imgObj.filters.blendTrans.apply();
    //    }
        imgObj.src = varSource;
        fadeIn(varImageObject);
    //    if (document.all) imgObj.filters.blendTrans.play();
    }
    

