/* shwv.P103090726 */
/* (c)2009 SugarHill Works LLC - http://www.sugarhillworks.com */


var slideshow = [];
// SET THE NAME OF THE FOLDER THAT CONTAINS THE IMAGES FOR THIS SLIDESHOW
var imageFolder, sPicsFolder, ssn;

// ---------- main containers ---------- 
var ss_image_cntr_id = 'ss_cntr';
var ss_thumb_cntr_id = '';//leave blank for no thumbs
var glass_olay = 'glass_cntr';
// ---------------------------------------

// ---------- optional containers ----------
var ss_title_cntr_id = ''; //leave blank for no titles
var titles_linkFading = true; // Set to true to have (visible) titles fade along with the image
var ss_captn_cntr_id = ''; //leave blank for no captions
var captions_linkFading = true; // Set to true to have (visible) titles fade along with the image
// ---------------------------------------

// ---------- behavior settings ----------
var ss_autorun = true; // Set to true if this is an auto-run slideshow.
var ss_interval = 2500; // milliseconds between image transitions (on auto-run slideshows);

var ss_resume_interval = false; //false OR milliseconds until the slideshow will start itself if no viewer activity (Always false for autorun).
var glass_nav = false; // Set to true if you want to click the image overlay to advance the slideshow.
var randomizeOrder = true; // Set to true to randomize the order of the images in this slideshow.
var img_h_position = 'center'; //options are 'left' OR 'center' OR 'right' for horizontal position.
var img_v_position = 'middle'; //options are 'top' OR 'middle' OR 'bottom' for vertical position.
var showThmsTitleAtt = true; // set to true to show navnums as the thumbnail's title attribute
var showImgsTitleAtt = true; // set to true to show navnums as the glass_cntr's attribute
var thms_behavior = 'scrolly'; // 'over_fade' for a thumbs cntr that disappears OR 'scrolly' for scrollable thumbs in a v or h line
var thms_linkFading = true; // Set to true to have (visible) thumbs fade along with the image OR false for hidden thumbs
// ---------------------------------------










// SET THE NAME OF THIS PORTFOLIO ON THE LINE BELOW.
var portfolioTitle = "HOMEPAGE SLIDESHOW";  

// --------------------------------  INSTRUCTIONS  -----------------------------------
//	 NOTE: THE PREFERRED WAY OF EDITING A GALLERY IS NOW ~gallery/editGallery.php
// For each of the slideshow items,              
// follow the pattern of the following lines: 
// 
//			//
//			//slideshow[slideshow.length] = {				<--this line is the same for each item
//				order: "1", // only used by editGallery.php - the images will appear in the order listed below regardless of this value...
//				image: "img01.jpg", //filename
//				thumb: "",          //filename, or leave blank if the thumb file has the same name as the image file (default) 
//				title: "title 1",   // title text for this image
//				caption: "caption 1"// caption text for this image
//			//};											<--this line is the same for each item
//			//
//
// The images will appear in the slideshows in the order listed (regardless of filename, and order:value).
//
//
// 
// ------------------------------------------------------------------------------------

// ---------------- BEGINNING OF SLIDESHOW PANEL ------------------------------
// SET THE IMAGE FOLDER ON THE LINE BELOW - should be a subfolder of .../shw_slideshow/images/
// NOTE: Image folder should be named with letters and underscores(_) ONLY!
// Set each item to appear in this panel's slideshow below (minimum 2 images).
// To add a new item, copy and paste the following lines. Then remove the '//' from the beginning of each line
// and fill in the values as above in the instructions.







function load_slideshow(n) {
	if (n == 1) {
		slideshow = [];
		imageFolder = 'images';
		thumbFolder = 'thumbs';
		
		
	//--BEG_PHP_INSERT---------------------------- BEGIN  PORTRAITS I -------------------------------------
	slideshow[slideshow.length] = {
		order: "",
		image: "babies4.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "brooklyn7.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "babies5.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "babies7.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "brooklyn5.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "bumps11.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "faces18.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "bumps16.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "babies3.jpg",
		thumb: "",
		title: "",
		caption: ""
	};
	
	slideshow[slideshow.length] = {
		order: "",
		image: "babies14.jpg",
		thumb: "",
		title: "",
		caption: ""
    };
	
	slideshow[slideshow.length] = {
		order: "",
		image: "bumps5.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "faces15.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "faces4.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "brooklyn3.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "faces5.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "furryfriends7.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york2.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york1.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york11.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york15.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "newyork25.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york34.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york28.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "furryfriends1.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york3.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "newyork33.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york4.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "new-york13.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "seattle23.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "seattle5.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	slideshow[slideshow.length] = {
		order: "",
		image: "seattle2.jpg",
		thumb: "",
		title: "",
		caption: ""
	};

	//--END_PHP_INSERT-------------------------------------  END  PORTRAITS I -------------------------------------
	
	
		sPicsFolder = window.location.toString();
		slideshow.sPicsFolder = sPicsFolder.replace(/([a-z]*\.[a-z]*#)|(index\.html)|(index\.php)|#$/i, '') + 'splashpage/' + imageFolder + '/';
		ssn = slideshow.length;
	}


}




//
//
//
// -----------------  DO NOT EDIT BELOW THIS LINE  --------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// **************************************************************************
// **************************************************************************
// ******************** SET YOUR IMAGE FILENAMES ABOVE **********************
// **************************************************************************
// **************************************************************************
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// -----------------  DO NOT EDIT BELOW THIS LINE  --------------------------
//
//
//
load_slideshow(1);
//
//
//
// DO NOT EDIT THESE varS. CHANGE/ADD IMAGE AND THUMBNAIL FILENAMES IN THE PREVIOUS SECTION

// GLOBAL GALLERY VARS
var thmsFolder = slideshow.thumbFolder;  // path relative to specific portfolio dir
for (var i = 0; i < slideshow.length; i++) {

	if (slideshow[i].thumb === "") { 
		slideshow[i].thumb = slideshow[i].image;
	}
}

