window.addEvent('domready', function() {
	
	// The data for the slideshow
	var wpdata_page11 = new Hash({'projects_files/071150B3-BBRC.jpg':{caption: 'Bellevue Breakfast Rotary Club Website | click image to visit site', href: 'http://www.bbrc.net', thumbnail: 'projects_files/071150B3-BBRC-t.png'},'projects_files/01AC53CC-SMUB.jpg':{caption: 'So Many Used Books Website [uses WebYep CMS for book list updates] | click image to visit site', href: 'http://www.somanyusedbooks.com/', thumbnail: 'projects_files/01AC53CC-SMUB-t.png'},'projects_files/D515DEEB-AtWork.jpg':{caption: 'AtWork! Website [uses WebYep CMS for client-side updates] | click image to visit site', href: 'http://www.atworkwa.org', thumbnail: 'projects_files/D515DEEB-AtWork-t.png'},'projects_files/023E49C6-BBRCGolfClassic_2010.jpg':{caption: 'BBRC Annual Charity Golf Classic Online Registration | click image to visit site', href: 'http://www.bbrc.net/golf', thumbnail: 'projects_files/023E49C6-BBRCGolfClassic_2010-t.png'},'projects_files/83D9744B-BBRC_RTW_2010.jpg':{caption: '2010 BBRC Rotating the Wheels Dinner Online Registration | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/83D9744B-BBRC_RTW_2010-t.png'},'projects_files/8C5952D3-stonedartisan.jpg':{caption: 'Stoned Artisan Jewelry Designer Website | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/8C5952D3-stonedartisan-t.png'},'projects_files/80D61D20-BBRC_RTW_09.jpg':{caption: '2009 BBRC Rotating the Wheels Dinner Online Registration | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/80D61D20-BBRC_RTW_09-t.png'},'projects_files/C864F394-BRC_Bellringing.jpg':{caption: 'Bellevue Rotary Holiday Bell Ringing Online Sign-Up | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/C864F394-BRC_Bellringing-t.png'},'projects_files/958D9B95-GermantownSalon.jpg':{caption: 'Germantown Salon Website | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/958D9B95-GermantownSalon-t.png'},'projects_files/A0857759-BBRC_Retreat_2009.jpg':{caption: '2009 BBRC Annual Retreat Online Registration | not currently active', href: '#weaverpix-page11-slideshow', thumbnail: 'projects_files/A0857759-BBRC_Retreat_2009-t.png'}});
	
	// The options for the slideshow
	var wpoptions_page11 = new Hash({width: 700,height: 536,resize: false,captions: true,controller: true,random: false,paused: false,preload: false,overlap: true,loop: true,delay: 5000,duration: 2000,pan: 100,zoom: 50,color: '#FFFFFF',thumbnails: true,thumbnailsOnTopOrBottom: false,thumbnail_width: 140,thumbnail_height: 140,linked: false,loader: {'animate': ['projects_files/loader-#.png', 12]},classes: [	 'slideshow-page11', '', '', '',	 '', '', '', '',	 '', '', '', '',	 '', '', '', '']});
	
	// If thumbnails are enabled
	var thumbnails_enabled = wpoptions_page11.thumbnails;
	
	// If thumbnails are on top
	var thumbnailsOnTopOrBottom = wpoptions_page11.thumbnailsOnTopOrBottom;
	
	// The thumbnail
	var thumbnail = $$('.slideshow-page11-thumbnails ul li')[0];
	var thumbnail_height = wpoptions_page11.thumbnail_width;
	var thumbnail_width = wpoptions_page11.thumbnail_height;
	
	// The thumbnail div
	/*var thumbnail_wrapper = $$('.slideshow-page11-thumbnails ul')[0];
	var thumbnail_wrapper_height = thumbnail_wrapper.getStyle('height').toInt();
	var thumbnail_wrapper_width = thumbnail_wrapper.getStyle('width').toInt();*/
	
	if (typeof(wpember_page11) != 'undefined') {
		wpdata_page11.combine(wpember_page11);
	}
	
	if (typeof(wpflickr_page11) != 'undefined') {
		wpdata_page11.combine(wpflickr_page11);
	}
	
	if (typeof(wplocal_page11) != 'undefined') {
		wpdata_page11.combine(wplocal_page11);
	}
	
	if (typeof(wppicasa_page11) != 'undefined') {
		wpdata_page11.combine(wppicasa_page11);
	}
	// The slideshow
	wpshow_page11 = new Slideshow('weaverpix-page11-slideshow', wpdata_page11.getClean(), wpoptions_page11.getClean());
	
	// The total number of images
	var count = wpdata_page11.getLength();
	$$('.slideshow-page11-thumbnails ul').each(function(el) {
	  var width = thumbnail_width;
	  var height = thumbnail_height;
	  
	  if (thumbnailsOnTopOrBottom) {
		width = width * count;
	  } else {
		height = height * count;
	  }
	  
	  el.setStyles({'width': width, 'height': height});
	});
});
