$a = jQuery.noConflict();
$a(document).ready(	
	function() {
		var $acontainer = $a(".container");
		$acontainer.wtListRotator({
					screen_width:520,
					screen_height:300,
					item_width:25,
					item_height:25,
					item_display:6,
					list_align:"left",
					scroll_type:"mouse_move",
					auto_start:true,
					delay:7000,
					transition:"fade",
					transition_speed:800,
					display_playbutton:true,
					display_number:true,
					display_timer:true,
					display_arrow:true,
					display_thumb:true,
					display_scrollbar:true,
					pause_mouseover:false,
					cpanel_mouseover:false,					
					text_mouseover:false,
					text_effect:"fade",
					text_sync:true,
					cpanel_align:"TR",
					timer_align:"bottom",
					move_one:false,
					auto_adjust:true,
					shuffle:true,
					block_size:75,
					vert_size:50,
					horz_size:50,
					block_delay:35,
					vstripe_delay:0,
					hstripe_delay:0		
				});

		var $atransitions =	$a("#transitions");
		var $atextEffects =	$a("#texteffects");
		var $ascrollType =	$a("#scrolltype");
		
		var $athumbCB = 		$a("#thumb-cb");
		var $aplayBtnCB = 	$a("#playbutton-cb");
		var $anumCB 	= 		$a("#num-cb");
		var $atimerCB = 		$a("#timer-cb");
		var $ascrollbarCB = 	$a("#scrollbar-cb");
		
		var $apauseCB = 	$a("#pause-cb");
		var $acpanelCB = $a("#cpanel-cb");
		var $atextCB = 	$a("#text-cb");
		
		$atransitions.val("random").change(
			function() {
				$acontainer.setTransition($a(this).val());
			}
		);
		
		$atextEffects.val("fade").change(
			function() {
				$acontainer.setTextEffect($a(this).val());
			}
		);
		
		$ascrollType.val("mouse_move").change(
			function() {
				$acontainer.setNav($a(this).val());
			}
		);
		
		$a("input#align-left").attr("checked", true);
		$a("input[name='list-align']").change(
			function() {		
				var val = $a(this).filter(":checked").val();
				$acontainer.setListAlign(val);
			}
		);
		
		$athumbCB.attr("checked", "checked").change(
			function() {
				$acontainer.setThumbs($a(this).filter(":checked").val());
			}
		);		
		
		$ascrollbarCB.attr("checked", "checked").change(
			function() {
				var val = $a(this).filter(":checked").val();
				$acontainer.setScrollbar(val);
			}
		);
		
		$aplayBtnCB.attr("checked", "checked").change(
			function() {
				var val = $a(this).attr("checked");
				$acontainer.setPlayButton(val);
				$acpanelCB.attr("disabled", !val && !$anumCB.attr("checked"));
			}				
		);
		
		$anumCB.attr("checked", "checked").change(
			function() {
				var val = $a(this).attr("checked");
				$acontainer.setNumber(val);
				$acpanelCB.attr("disabled", !val && !$aplayBtnCB.attr("checked"));
			}				
		);		
		
		$atimerCB.attr("checked", "checked").change(
			function() {
				$acontainer.setTimerBar($a(this).attr("checked"));	
			}				
		);						
		
		$apauseCB.attr("checked", "").change(
			function() {
				$acontainer.setMouseoverPause($a(this).attr("checked"));
			}				
		);		
		
		$atextCB.attr("checked", "").change(
			function() {
				$acontainer.setMouseoverText($a(this).attr("checked"));
			}				
		);
		
		$acpanelCB.attr("checked", "").change(
			function() {
				$acontainer.setMouseoverCP($a(this).attr("checked"));
			}				
		);				
	}
);
