function faq(id) {
    $('#question'+id).toggle();
    $('#answer'+id).toggle();
}
function date(year) {
    $('.years').hide();
    $('#year'+year).show();
}
$(document).ready( function() {
	// ;
    $(".services").mouseover( function() {
        $(this).css('background','#f0ebdd');
    });
    $(".services").mouseout( function() {
        $(this).css('background','none');
    });
    // ;
    $(".photo-min").mouseover( function() {
        $(this).css("background","url('/templates/images/photo-min-select.gif') repeat-x");
        $(".title-min a", $(this).parent()).css("color","#ef7300");
    });
    $(".photo-min").mouseout( function() {
        $(this).css("background","#2a97ae url('/templates/images/photo-min.gif') repeat-x");
        $(".title-min a", $(this).parent()).css("color","#336699");
    });
    $(".title-min").mouseover( function() {
        $("a",this).css("color","#ef7300");
        $(".photo-min", $($(this).parent()).parent()).css("background","#f17500 url('/templates/images/photo-min-select.gif') repeat-x");
    });
    $(".title-min").mouseout( function() {
        $("a",this).css("color","#336699");
        $(".photo-min", $($(this).parent()).parent()).css("background","#2a97ae url('/templates/images/photo-min.gif') repeat-x");
    });
    // ;
    $(".photo-mid").mouseover( function() {
        $(this).css("background","#f17500 url('/templates/images/photo-min-select.gif') repeat-x");
        $(".title-min a", $(this).parent()).css("color","#ef7300");
    });
    $(".photo-mid").mouseout( function() {
        $(this).css("background","#2a97ae url('/templates/images/photo-min.gif') repeat-x");
        $(".title-min a", $(this).parent()).css("color","#336699");
    });
    $(".title-min").mouseover( function() {
        $("a",this).css("color","#ef7300");
        $(".photo-mid", $($(this).parent()).parent()).css("background","#f17500 url('/templates/images/photo-min-select.gif') repeat-x");
    });
    $(".title-min").mouseout( function() {
        $("a",this).css("color","#336699");
        $(".photo-mid", $($(this).parent()).parent()).css("background","#2a97ae url('/templates/images/photo-min.gif') repeat-x");
    });
});

function area(i) {
   	$(".times").css("opacity","1");	if (i!=1) $(".area1").css("opacity","0.3");
   	$(".area3").hide();
   	$(".area2").hide();
   	$(".area1").show();
   	$(".xx"+i).hide();
   	$(".area"+i).show();

   	$(".area-button-active").removeClass("area-button-active");
   	if (i==1) {
   		$("#area-button1 div").addClass("area-button-active");
   	}
   	if (i==2) {
   		$("#area-button2 div").addClass("area-button-active");
   		$("#area-button3 div").addClass("area-button-active");
   	}
   	if (i==3) {
   		$("#area-button4 div").addClass("area-button-active");   		$("#area-button5 div").addClass("area-button-active");
   	}

   	$(".trainer-list").removeClass("trainer-select");

   	$(".trainer-list").removeClass("trainer-select");
   	$(".trainer-arae"+i).addClass("trainer-select");
}

function trainer(i) {
   	$(".area3").hide();
   	$(".area2").hide();
   	$(".area1").show();
   	$(".times").css("opacity","0.3");	$(".trainer"+i).css("opacity","1");
   	$(".xt"+i).hide();
	$(".trainer"+i).show();

    $(".trainer-list").removeClass("trainer-select");
   	$("#trainer-id"+i).addClass("trainer-select");

   	$(".area-button-active").removeClass("area-button-active");
   	$(".tran"+i+" div").addClass("area-button-active");
}
