$(document).ready(function(){
	function borderActiveTab (){
		if($("#section-1").find("a").hasClass("active")){
			$("#primary-nav").css("border-color","#00AAEA");
		}
		if($("#section-2").find("a").hasClass("active")){
			$("#primary-nav").css("border-color","#6A7C88");
		}
		if($("#section-3").find("a").hasClass("active")){
			$("#primary-nav").css("border-color","#83AD49");
		}
	}
	
	borderActiveTab();
	/* CAMBIAR EL COLOR DE EL BORDE INFERIOR DEL MEN CON ROLLOVER
	$("#menu li").mouseover(function(){
		var thisId = $(this).attr("id");
		
		switch (thisId) {
			case "section-1":
				$("#primary-nav").css("border-color","#00AAEA");
				break;
			case "section-2":
				$("#primary-nav").css("border-color","#6A7C88");
				break;
			case "section-3":
				$("#primary-nav").css("border-color","#83AD49");
				break;
			
		}
	}).mouseout(function(){
		borderActiveTab();
	});
	*/
});

$(document).ready(function()
{
	$(".tab_content").hide();
	$(".tabs li:first").find("a").addClass("active");
	$(".tabs li:first").show();
	$(".tab_content:first").show();

	$(".tabs li a").click(function()
       {
		$(".tabs li a").removeClass("active");
		$(this).addClass("active");
		$(".tab_content").hide();

		var activeTab = $(this).attr("href");
		$(activeTab).fadeIn();
		return false;
	});
});

$(document).ready(function()
{
	$('select#speedC').selectmenu({style:'dropdown'});
	$('select#speedB').selectmenu({style:'dropdown'});
});


