window.addEvent('domready', function() {
	
	// The data for the slideshow
	var wpdata_page11 = new Hash({'index_files/block_18/668678A8-Charlie_Zepped 002.jpg':{caption: 'Zepped Title', href: 'index_files/block_18/668678A8-Charlie_Zepped 002.jpg', thumbnail: 'index_files/block_18/668678A8-Charlie_Zepped 002-t.jpg'},'index_files/block_18/C1A07122-Charlie_Zepped 021.jpg':{caption: 'Charlie Chaplin in Zepped', href: 'index_files/block_18/C1A07122-Charlie_Zepped 021.jpg', thumbnail: 'index_files/block_18/C1A07122-Charlie_Zepped 021-t.jpg'},'index_files/block_18/E7297C2C-pogo.jpg':{caption: 'Mike Pogorzelski, AMPAS', href: 'index_files/block_18/E7297C2C-pogo.jpg', thumbnail: 'index_files/block_18/E7297C2C-pogo-t.jpg'},'index_files/block_18/29BCB9AA-can_in_case.jpg':{caption: 'Zepped, the film reel', href: 'index_files/block_18/29BCB9AA-can_in_case.jpg', thumbnail: 'index_files/block_18/29BCB9AA-can_in_case-t.jpg'},'index_files/block_18/B06A0095-robinson.jpg':{caption: 'David Robinson, Chaplin biographer', href: 'index_files/block_18/B06A0095-robinson.jpg', thumbnail: 'index_files/block_18/B06A0095-robinson-t.jpg'},'index_files/block_18/3CFF10E2-nose.jpg':{caption: 'Chaplin country, Kennington, London', href: 'index_files/block_18/3CFF10E2-nose.jpg', thumbnail: 'index_files/block_18/3CFF10E2-nose-t.jpg'},'index_files/block_18/6EFDDBD1-plaque.jpg':{caption: 'Charlie lived here, Kennington, London', href: 'index_files/block_18/6EFDDBD1-plaque.jpg', thumbnail: 'index_files/block_18/6EFDDBD1-plaque-t.jpg'},'index_files/block_18/B8C5C002-hammond.jpg':{caption: 'Michael Hammond, Film Historian', href: 'index_files/block_18/B8C5C002-hammond.jpg', thumbnail: 'index_files/block_18/B8C5C002-hammond-t.jpg'},'index_files/block_18/4C7BC196-zeppSF.jpg':{caption: 'Zeppelin ride over San Francisco', href: 'index_files/block_18/4C7BC196-zeppSF.jpg', thumbnail: 'index_files/block_18/4C7BC196-zeppSF-t.jpg'},'index_files/block_18/90D9736A-Zepp_view.jpg':{caption: 'View from a Zeppelin', href: 'index_files/block_18/90D9736A-Zepp_view.jpg', thumbnail: 'index_files/block_18/90D9736A-Zepp_view-t.jpg'},'index_files/block_18/D622CF4D-mckernan.jpg':{caption: 'Luke McKernan, Film Historian', href: 'index_files/block_18/D622CF4D-mckernan.jpg', thumbnail: 'index_files/block_18/D622CF4D-mckernan-t.jpg'},'index_files/block_18/EC9EC37F-beach.jpg':{caption: 'Time to reflect', href: 'index_files/block_18/EC9EC37F-beach.jpg', thumbnail: 'index_files/block_18/EC9EC37F-beach-t.jpg'},'index_files/block_18/A676F35E-venice_brad.jpg':{caption: 'Attempting Charlie, Venice Beach CA', href: 'index_files/block_18/A676F35E-venice_brad.jpg', thumbnail: 'index_files/block_18/A676F35E-venice_brad-t.jpg'}});
	
	// The options for the slideshow
	var wpoptions_page11 = new Hash({width: 537,height: 302,resize: false,captions: false,controller: false,random: false,paused: false,preload: false,overlap: true,loop: true,delay: 4000,duration: 1000,pan: 100,zoom: 50,color: '#FFFFFF',thumbnails: false,thumbnailsOnTopOrBottom: true,thumbnail_width: 60,thumbnail_height: 60,linked: true,loader: {'animate': ['index_files/block_18/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);
	}

	// The slideshow
	wpshow_page11 = new Slideshow.Push('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});
	});
});
window.addEvent('domready', function() {
	var sb_state_page11;
	var sb_page11 = SqueezeBox.assign($$('#weaverpix-page11-slideshow .slideshow-page11-images a'), {
		onOpen: function() {
			sb_state_page11 = wpshow_page11.paused;
			wpshow_page11.pause(1);
		},
		onClose: function() {
			wpshow_page11.pause(sb_state_page11);
		}
	});
});


