var $j = jQuery.noConflict();


   $j(document).ready(function(){


		/* hide the breadcrumbs ul and show the tab ul */
		//$('div.breadcrumb').hide();
		$j('ul.navTabs').show();

		/*turn the newly visible ul into tabs*/
		var tabSet = $j('ul.navTabs').eq(0).tabs(
			{

    select: function(ui) {

//var currentTab = parseInt(ui.tab.id.substring(3));
//console.log(currentTab);
//addHistoryEvent(''+currentTab+'',''+currentTab+'');
        var isValid = true; // form validation returning true or false
        return isValid;
    },


				fx: { height: 'toggle', opacity: 'toggle' },
				disabled: [1,2,3,4]
			}
		).bind('select.ui-tabs', function(event, ui) {



				var currentTab = parseInt(ui.tab.id.substring(3));



				var tabSetLength = 5;//a necessary hack
				for (var i = 0; i < tabSetLength; i++) {
					if (i > currentTab) {
						tabSet.tabs("disable", i);
					}
				}
		});


		$j("#checkoutAsGuest,#login").click(function() {

       // addHistoryEvent('pagina1','intro');

			$j('#personalInfo').load("getCheckout.php?action="+$j(this).attr("id")+"");
			return false;
		});
















 });







