$(document).ready(function(){
function HideOtherOptions (){
	$('#twentyEightXPPullSpin').css('display', 'none');
	$('#twentyEightXP').css('display', 'none');
	$('#twentyOneXP').css('display', 'none');
	$('#twentyOneXpv2').css('display', 'none');
	$('#twentyFourXpv').css('display', 'none');
	$('#twentyOneXE').css('display', 'none');
	$('#eighteenRePS').css('display', 'none');
	$('#eighteenRe').css('display', 'none');
	$('#twelveRe').css('display', 'none');
	$('#allPassportChargers').css('display', 'none');	
	$('#allVisionChargers').css('display', 'none');	
	$('#allProphetChargers').css('display', 'none');
	$('#item1').css('display', 'none');
	$('#item2').css('display', 'none');
	$('#item3').css('display', 'none');
	$('#item4').css('display', 'none');	
	$('#item5').css('display', 'none');
	$('#item6').css('display', 'none');
	$('#item7').css('display', 'none');
	$('#sensorless').css('display', 'none');
	$('#sensored').css('display', 'none');
}

HideOtherOptions();
	// toggle slide
	$('#blMotorsA').click(function(){
	$('#secondaryStage').css('height', 'auto');
HideOtherOptions ();	
	$('#sensorless').fadeIn(400);

	return false;
	})

	$('#blEscsA').click(function(){
	$('#secondaryStage').css('height', 'auto');
HideOtherOptions ();	
	$('#sensored').fadeIn(400);

	return false;
	})

	$('#blCombosA').click(function(){
	$('#secondaryStage').css('height', 'auto');
HideOtherOptions ();	
	$('#allFuzeCombos').fadeIn(400);

	return false;
	})


	$('#twentyEightXPPullSpinA').click(function(){
	$('#secondaryStage').css('height', '280px');
HideOtherOptions ();	
	$('#twentyEightXPPullSpin').fadeIn(400);

	return false;
	})
	$('#twentyEightXPA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	HideOtherOptions ();
	$('#twentyEightXP').fadeIn(400);

	return false;
	});
	$('#twentyOneXPA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#twentyOneXP').fadeIn(400);

	return false;
	});

	$('#twentyOneXEA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#twentyOneXE').fadeIn(400);

	return false;
	});

	$('#twentyOneXPV2A').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#twentyOneXpv2').fadeIn(400);

	return false;
	});
	
	$('#twentyOneXPA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#twentyFourXpv').fadeIn(400);

	return false;
	});

	$('#eighteenRePSA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#eighteenRePS').fadeIn(400);

	return false;
	});
	$('#eighteenReA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#eighteenRe').fadeIn(400);

	return false;
	});
	$('#twelveReA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#twelveRe').fadeIn(400);

	return false;
	});
/* **************************** */
	$('#twentyOneBuggyA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
	$('#item1').show();
	return false;
	});

	$('#twentyonePullSpinStartBuggyA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();

	$('#item2').show();

	return false;
	});

	$('#twentysixPullSpinStartTruggyA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();

	$('#item3').show();

	return false;
	});

	$('#bigRedPullSpinStartA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
;
	$('#item4').show();

	return false;
	});
	
	$('#trxRpA').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
;
	$('#item5').show();

	return false;
	});
	
	$('#twlv_OnOffrd').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
;
	$('#item6').show();

	return false;
	});
	
	$('#twlv_OnOffrdPS').click(function(){
	$('#secondaryStage').css('height', '280px');
	HideOtherOptions ();
;
	$('#item7').show();

	return false;
	});
/* *************************** */	
	$('#passPortChargersA').click(function(){
	$('#secondaryStage').css('height', 'auto');
	HideOtherOptions ();
	$('#allPassportChargers').show();
	$('#allPassportChargers').slideDown();
	return false;
	});
	
	$('#visionChargersA').click(function(){
	$('#secondaryStage').css('height', 'auto');
	HideOtherOptions ();
	$('#allVisionChargers').show();
	$('#allVisionChargers').slideDown();
	return false;
	});
	
	$('#prophetChargersA').click(function(){
	$('#secondaryStage').css('height', 'auto');
	HideOtherOptions ();
	$('#allProphetChargers').show();
	$('#allProphetChargers').slideDown();
	return false;
	});
	
/* jQuery for the batteries and chargers charts*/	
	$('#option_a1').click(function(){
	HideOtherOptions ();
	$('#option_1').slideDown("slow");
	return false;
	});
	$('#option_a2').click(function(){
	HideOtherOptions ();
	$('#option_2').slideDown("slow");
	return false;
	});
	$('#option_a3').click(function(){
	HideOtherOptions ();
	$('#option_3').slideDown("slow");
	return false;
	});
	$('#option_a4').click(function(){
	HideOtherOptions ();
	$('#option_4').slideDown("slow");
	return false;
	});
	$('#option_a5').click(function(){
	HideOtherOptions ();
	$('#option_5').slideDown("slow");
	return false;
	});
});




