		var $container;
		
		$(document).ready(	
			function() {
				$container = $("#slideshow");
				$container.wtRotator({
					width:834,
					height:136,
					button_width:5,
					button_height:5,
					button_margin:4,
					auto_start:true,
					delay:3000,
					transition:"block.left.zz",
					transition_speed:800,
					block_size:70,
					vert_size:70,
					horz_size:70,
					cpanel_align:"BR",
					display_thumbs:true,
					display_dbuttons:false,
					display_playbutton:false,
					display_tooltip:false,
					display_numbers:false,
					cpanel_mouseover:false,
					text_mouseover:false
				});
		
				$("#transitions").val("random").change(
					function() {
						$container.updateTransition($(this).val());
					}
				);
				
				$("#cpalignments").val("BR").change(
					function() {
						$container.updateCpAlign($(this).val());
					}
				);
				
				$("#thumbs-cb").attr("checked", "checked").change(
					function() {
						$container.displayThumbs($(this).attr("checked"));	
					}
				);
				
				$("#dbuttons-cb").attr("checked", "checked").change(
					function() {
						$container.displayDButtons($(this).attr("checked"));	
					}				
				);

				$("#playbutton-cb").attr("checked", "checked").change(
					function() {
						$container.displayPlayButton($(this).attr("checked"));	
					}				
				);
				
				$("#tooltip-cb").attr("checked", "checked").change(
					function() {
						$container.displayTooltip($(this).attr("checked"));	
					}				
				);								
				
				$("#text-cb").attr("checked", "").change(
					function() {
						$container.updateMouseoverDesc($(this).attr("checked"));
					}				
				);
				
				$("#cpanel-cb").attr("checked", "").change(
					function() {
						$container.updateMouseoverCP($(this).attr("checked"));
					}				
				);				
			}
		);
