Team:SSTi-SZGD/js/Experiments

/*custom Project Effect*/ $(function(){

$(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".header .nav .Project span").css("color","#FAEE0D"); });

});

/*Telescopic*/ $(function(){

$(".Title").click(function(){

if($(this).next().css("display")=="none"){ $(this).children(".plus").css("display","none"); $(this).children(".reduce").css("display","block"); $(this).next().slideDown(); $(this).children(".igem").css("display","block") }else{ $(this).next().slideUp(); $(this).children(".reduce").css("display","none"); $(this).children(".plus").css("display","block"); if($(this).parent().attr("class")=="MPD"){ setTimeout(function(){ $(".MPD .igem").css("display","none") },400); }else if($(this).parent().attr("class")=="MHEI"){ setTimeout(function(){ $(".MHEI .igem").css("display","none") },400); }

}


});

});