// JavaScript Document

jQuery(document).ready(function(){
$(".tabs > ul > li").click(
function(){
if($(this).hasClass("current")) {}
else {
$(".tabs > ul > li").removeClass("current");
$(this).addClass("current");
$(".tabs > ul > li").find("img.rollover").animate({opacity: "hide"}, "fast");
$(this).find("img.rollover").animate({opacity: "show"}, "fast");
$(".container2 > div").animate({opacity: "hide"}, "fast");
if($(this).is("#tab-history")) {
$("#text-history").animate({opacity: "show"}, "fast");
}
if($(this).is("#tab-ethic")) {
$(this).find("img.rollover").animate({opacity: "show"}, "fast");
$("#text-ethic").animate({opacity: "show"}, "fast");
}
if($(this).is("#tab-principles")) {
$(this).find("img.rollover").animate({opacity: "show"}, "fast");
$("#text-principles").animate({opacity: "show"}, "fast");
}
if($(this).is("#tab-stand")) {
$(this).find("img.rollover").animate({opacity: "show"}, "fast");
$("#text-stand").animate({opacity: "show"}, "fast");
}
}
});
});
