window.addEvent('domready', function() {
	
	// The data for the slideshow
	var wpdata_page6 = null;
	
	// The options for the slideshow
	var wpoptions_page6 = new Hash({width: 823,height: 248,resize: false,captions: false,controller: false,random: true,paused: false,preload: true,overlap: true,loop: true,delay: 3000,duration: 1500,pan: 100,zoom: 50,color: '#FFFFFF',thumbnails: false,thumbnailsOnTopOrBottom: true,thumbnail_width: 60,thumbnail_height: 60,linked: false,loader: {'animate': ['files/loader-#.png', 12]},classes: [	 'slideshow-page6', '', '', '',	 '', '', '', '',	 '', '', '', '',	 '', '', '', '']});
	
	// If thumbnails are enabled
	var thumbnails_enabled = wpoptions_page6.thumbnails;
	
	// If thumbnails are on top
	var thumbnailsOnTopOrBottom = wpoptions_page6.thumbnailsOnTopOrBottom;
	
	// The thumbnail
	var thumbnail = $$('.slideshow-page6-thumbnails ul li')[0];
	var thumbnail_height = wpoptions_page6.thumbnail_width;
	var thumbnail_width = wpoptions_page6.thumbnail_height;
	
	// The slideshow
	wpshow_page6 = new Slideshow('weaverpix-page6-slideshow', wpdata_page6, wpoptions_page6.getClean());
	
	// The total number of images
	if (thumbnails_enabled) {
		var count = wpshow_page6.data.images.length;
		$$('.slideshow-page6-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});
		});
	}
});
