﻿var g;

function initialize() {

    if (!isSL || !useSL) {
        //initialize the gallery
        var gConfig = new Object();
        gConfig.chooser = 'galleryChooserNav'; //html chooser nav element
        gConfig.content = 'galleryContent'; //html content element
        gConfig.contentImage = 'galleryImage'; //html content image element
        //gConfig.labels = 'galleryLabels'; //html labels element
        gConfig.next = 'galleryNext'; //html next button element
        gConfig.previous = 'galleryPrevious'; //html previous button element	
        gConfig.state = 'galleryState'; //html rollover state indicator element
        gConfig.category = 'galleryCategory'; //html image category indicator element
        gConfig.displayLimit = 6; //number of thumbs to display
        gConfig.showArrows = false; // show the nav arrows or not
        gConfig.thumbWidth = 92; //width of each thumb
        gConfig.catImagePath = "SiteThemes/Silverlight/images/"; //note trailing slash
        gConfig.imagePath = "SiteThemes/Silverlight/images/"; //note trailing slash
        gConfig.gItems = myjsItems;

        g = new gallery(gConfig);
        g.init();
    }
}

