		var $container;
		
		$(document).ready(	
			function() {
				$container = $("#container");
				$container.wtRotator({
					width:910,
					height:450,
					button_width:24,
					button_height:24,
					button_margin:4,
					auto_start:true,
					delay:5000,
					transition:"random",
					transition_speed:600,
					block_size:100,
					vert_size:50,
					horz_size:50,
					cpanel_align:"BR",
					display_thumbs:true,
					display_dbuttons:true,
					display_playbutton:true,
					display_tooltip:false,
					display_numbers:true,
					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"));
					}				
				);				
			}
		);

