window.addEvent('domready', function() {
	
	// The data for the slideshow
	var wpdata_page45 = new Hash({'index_files/block_18/ACBFC394-brands1.jpg':{caption: 'We make captivating videos', href: '../work.html', thumbnail: 'index_files/block_18/ACBFC394-brands1-t.jpg'},'index_files/block_18/71C417C6-brands2.jpg':{caption: 'For companies of all shapes and sizes', href: '../work.html', thumbnail: 'index_files/block_18/71C417C6-brands2-t.jpg'},'index_files/block_18/7CD9698F-C838EB1A_home_banner1.png':{caption: 'Welcome to the Revolution', href: '#weaverpix-page45-slideshow', thumbnail: 'index_files/block_18/7CD9698F-C838EB1A_home_banner1-t.jpg'},'index_files/block_18/A9657659-home_banner2.png':{caption: 'Why Online Video', href: '#weaverpix-page45-slideshow', thumbnail: 'index_files/block_18/A9657659-home_banner2-t.jpg'},'index_files/block_18/C5703B31-home_banner3.jpg':{caption: 'How we helped St.Chris tell their story...', href: '../(null)/(null)', thumbnail: 'index_files/block_18/C5703B31-home_banner3-t.jpg'}});
	
	// The options for the slideshow
	var wpoptions_page45 = new Hash({width: 960,height: 140,resize: false,captions: false,controller: false,random: false,paused: false,preload: false,overlap: true,loop: true,delay: 10000,duration: 1000,pan: 100,zoom: 50,color: '#FFFFFF',thumbnails: false,thumbnailsOnTopOrBottom: true,thumbnail_width: 52,thumbnail_height: 52,linked: false,loader: {'animate': ['index_files/block_18/loader-#.png', 12]},classes: [	 'slideshow-page45', '', '', '',	 '', '', '', '',	 '', '', '', '',	 '', '', '', '']});
	
	// If thumbnails are enabled
	var thumbnails_enabled = wpoptions_page45.thumbnails;
	
	// If thumbnails are on top
	var thumbnailsOnTopOrBottom = wpoptions_page45.thumbnailsOnTopOrBottom;
	
	// The thumbnail
	var thumbnail = $$('.slideshow-page45-thumbnails ul li')[0];
	var thumbnail_height = wpoptions_page45.thumbnail_width;
	var thumbnail_width = wpoptions_page45.thumbnail_height;
	
	// The thumbnail div
	/*var thumbnail_wrapper = $$('.slideshow-page45-thumbnails ul')[0];
	var thumbnail_wrapper_height = thumbnail_wrapper.getStyle('height').toInt();
	var thumbnail_wrapper_width = thumbnail_wrapper.getStyle('width').toInt();*/
	
	if (typeof(wpember_page45) != 'undefined') {
		wpdata_page45.combine(wpember_page45);
	}
	
	if (typeof(wpflickr_page45) != 'undefined') {
		wpdata_page45.combine(wpflickr_page45);
	}
	
	if (typeof(wplocal_page45) != 'undefined') {
		wpdata_page45.combine(wplocal_page45);
	}

	// The slideshow
	wpshow_page45 = new Slideshow.Push('weaverpix-page45-slideshow', wpdata_page45.getClean(), wpoptions_page45.getClean());
	
	// The total number of images
	var count = wpdata_page45.getLength();
	$$('.slideshow-page45-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});
	});
});
