



$(function() {

		$('#container-1').tabs();
		//$('#container-2').tabs(3);
		
		$('#container-2').tabs({fxFade: true});

                // set up constant rotation
                (function() {
                    // rotation interval
                    var t = 0;
                    var tabs = $('li', '#container-2').size();
                    var rotation = setInterval(function() {
                        t = ++t <= tabs ? t : 1;
                        $('#container-2').triggerTab(t);
                    }, 3000);
                    // stop rotation on tab click
                    $('#container-2>ul:eq(0)>li>a').click(function(e) {
                        if (e.clientX && rotation) { // true mouse click ocurred
                            clearInterval(rotation);
                            rotation = null;
                        }
                    });
                })();

		
		$('#container-3').tabs({ fxSlide: true });
		$('#container-4').tabs({ fxFade: true, fxSpeed: 'fast' });
		$('#container-5').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
		$('#container-6').tabs({
				fxFade: true,
				fxSpeed: 'fast',
				onClick: function() {
						alert('onClick');
				},
				onHide: function() {
						alert('onHide');
				},
				onShow: function() {
						alert('onShow');
				}
		});
		
$('#next').click(function() {
$('#container-1>ul>li:eq(2)').find('a').trigger('click');
return false;
});

		$('#container-7').tabs({ fxAutoHeight: true });
		$('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
		$('#container-9').tabs({ remote: true });
		$('#container-10').tabs();
		$('#container-11').tabs({ disabled: [3] });

		$('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
				$(this).parents('div').eq(1).disableTab(3);
				return false;
		});
		$('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
				$(this).parents('div').eq(1).triggerTab(3);
				return false;
		});
		$('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
				$(this).parents('div').eq(1).enableTab(3);
				return false;
		});

});