Team:XMU Software/js

From 2013.igem.org

(Difference between revisions)
 
(15 intermediate revisions not shown)
Line 1: Line 1:
-
/*member.js*****************************************************************************************/
+
function movetotop(){
-
member_jjj_iii_ooo1= 0;
+
h = window.innerHeight-180;
-
member_jjj_iii_ooo2= 0;
+
t = $("#xmu_body").scrollTop();
-
member_jjj_iii_ooo3= 0;
+
if(t > h){
-
member_jjj_iii_ooo4= 0;
+
$('#team_navi6').show();
-
member_jjj_iii_ooo5= 0;
+
$('#notebook_navi5').show();
-
member_jjj_iii_ooo6= 0;
+
$('#safety_navi3').show();
-
member_jjj_iii_ooo7= 0;
+
$('#project_navi6').show();
-
member_jjj_iii_ooo8= 0;
+
$('#outreach6').show();
-
member_jjj_iii_ooo9= 0;
+
}else{
-
member_jjj_iii_ooo10= 0;
+
$('#team_navi6').hide();
-
member_jjj_iii_ooo11= 0;
+
$('#notebook_navi5').hide();
-
function over1(){
+
$('#safety_navi3').hide();
-
member_jjj_iii_ooo1= 0;
+
$('#project_navi6').hide();
-
+
$('#outreach6').hide();
-
    $("#T1").fadeTo("slow",0.5);
+
}
-
    $("#TT1").animate({
+
-
      top:'475px',
+
-
  height:'295px',
+
-
  left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w1").show().animate({top:'430px',left:'920px',zIndex:'5',},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww1").show().animate({
+
-
  top:'546px',
+
-
        left:'814px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www1").show().animate({
+
-
  top:'635px',
+
-
        left:'828px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo1==1)
+
-
{
+
-
out1();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
});
+
-
 
+
}
}
-
function out1(){
+
$(document).ready(function(e) {
-
member_jjj_iii_ooo1=1;
+
movetotop();
-
$("#T1").fadeTo("slow",1);
+
$('#team_navi6').click(function(){
-
$("#TT1").animate({
+
$("#xmu_body").scrollTop(0);
-
top:'270px',
+
-
height:'150px',
+
-
left:'620px',
+
-
})
+
-
document.getElementById("w1").style.display="none";
+
-
document.getElementById("ww1").style.display="none";
+
-
document.getElementById("www1").style.display="none";
+
-
 
+
-
}
+
-
function over2(){
+
-
member_jjj_iii_ooo2= 0;
+
-
$("#T2").fadeTo("slow",0.5);
+
-
    $("#TT2").animate({
+
-
    top:'475px',
+
-
height:'295px',
+
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w2").show().animate({
+
-
top:'430px',
+
-
        left:'920px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww2").show().animate({
+
-
  top:'546px',
+
-
        left:'914px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www2").show().animate({
+
-
  top:'635px',
+
-
        left:'928px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo2==1)
+
-
{
+
-
out2();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
)
+
-
 
+
-
}
+
-
function out2(){
+
-
member_jjj_iii_ooo2=1;
+
-
$("#T2").fadeTo("slow",1);
+
-
    $("#TT2").animate({
+
-
    top:'320px',
+
-
    height:'150px',
+
-
    left:'480px',
+
})
})
-
document.getElementById("w2").style.display="none";
+
movetotop();
-
document.getElementById("ww2").style.display="none";
+
$('#notebook_navi5').click(function(){
-
document.getElementById("www2").style.display="none";
+
$("#xmu_body").scrollTop(0);
-
 
+
-
}
+
-
function over3(){
+
-
member_jjj_iii_ooo3= 0;
+
-
$("#T3").fadeTo("slow",0.5);
+
-
    $("#TT3").animate({
+
-
    top:'475px',
+
-
height:'295px',
+
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w3").show().animate({
+
-
top:'425px',
+
-
        left:'41px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'425px',
+
-
        left:'61px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww3").show().animate({
+
-
  top:'542px',
+
-
        left:'34px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'502px',
+
-
        left:'54px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www3").show().animate({
+
-
  top:'631px',
+
-
        left:'48px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'571px',
+
-
        left:'68px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo3==1)
+
-
{
+
-
out3();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
-
}
+
-
function out3(){
+
-
member_jjj_iii_ooo3=1;
+
-
$("#T3").fadeTo("slow",1);
+
-
$("#TT3").animate({
+
-
    top:'320px',
+
-
    height:'150px',
+
-
    left:'760px',
+
})
})
-
document.getElementById("w3").style.display="none";
+
movetotop();
-
document.getElementById("ww3").style.display="none";
+
$('#outreach6').click(function(){
-
document.getElementById("www3").style.display="none";
+
$("#xmu_body").scrollTop(0);
-
 
+
})
-
}
+
movetotop();
-
function over4(){member_jjj_iii_ooo4= 0;
+
$('#project_navi6').click(function(){
-
$("#T4").fadeTo("slow",0.5);
+
$("#xmu_body").scrollTop(0);
-
    $("#TT4").animate({
+
-
    top:'475px',
+
-
height:'295px',
+
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w4").show().animate({
+
-
top:'430px',
+
-
        left:'920px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww4").show().animate({
+
-
  top:'546px',
+
-
        left:'914px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www4").show().animate({
+
-
  top:'635px',
+
-
        left:'928px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo4==1)
+
-
{
+
-
out4();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
+
-
}
+
-
function out4(){
+
-
member_jjj_iii_ooo4=1;
+
-
$("#T4").fadeTo("slow",1);
+
-
    $("#TT4").animate({
+
-
    top:'430px',
+
-
    height:'150px',
+
-
    left:'380px',
+
-
})
+
-
document.getElementById("w4").style.display="none";
+
-
document.getElementById("ww4").style.display="none";
+
-
document.getElementById("www4").style.display="none";
+
-
+
-
}
+
-
function over5(){member_jjj_iii_ooo5= 0;
+
-
$("#T5").fadeTo("slow",0.5);
+
-
    $("#TT5").animate({
+
-
    top:'475px',
+
-
height:'295px',
+
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w5").show().animate({
+
-
top:'425px',
+
-
        left:'41px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'425px',
+
-
        left:'61px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww5").show().animate({
+
-
  top:'542px',
+
-
        left:'34px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'502px',
+
-
        left:'54px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www5").show().animate({
+
-
  top:'631px',
+
-
        left:'48px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'571px',
+
-
        left:'68px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo5==1)
+
-
{
+
-
out5();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
+
-
}
+
-
function out5(){
+
-
member_jjj_iii_ooo5=1;
+
-
$("#T5").fadeTo("slow",1);
+
-
    $("#TT5").animate({
+
-
    top:'430px',
+
-
    height:'150px',
+
-
    left:'860px',
+
})
})
-
document.getElementById("w5").style.display="none";
+
movetotop();
-
document.getElementById("ww5").style.display="none";
+
$('#safety_navi3').click(function(){
-
document.getElementById("www5").style.display="none";
+
$("#xmu_body").scrollTop(0);
-
 
+
})
 +
});
 +
function navi1(){
 +
document.getElementById("team_navi1").style.background="#ffd200";
 +
document.getElementById("notebook_navi1").style.background="#ffd200";
 +
document.getElementById("outreach1").style.background="#ffd200";
 +
document.getElementById("project_navi1").style.background="#ffd200";
 +
document.getElementById("safety_navi1").style.background="#ffd200";
}
}
-
function over6(){member_jjj_iii_ooo6= 0;
+
function navi11(){
-
$("#T6").fadeTo("slow",0.5);
+
document.getElementById("team_navi1").style.background="#b3d465";
-
    $("#TT6").animate({
+
document.getElementById("notebook_navi1").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("outreach1").style.background="#b3d465";
-
height:'295px',
+
document.getElementById("project_navi1").style.background="#b3d465";
-
left:'555px',
+
document.getElementById("safety_navi1").style.background="#b3d465";
-
},"fast",
+
-
function (){
+
-
    $("#w6").show().animate({
+
-
top:'430px',
+
-
        left:'920px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww6").show().animate({
+
-
  top:'546px',
+
-
        left:'914px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www6").show().animate({
+
-
  top:'635px',
+
-
        left:'928px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo6==1)
+
-
{
+
-
out6();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
}
}
-
function out6(){
+
function navi2(){
-
member_jjj_iii_ooo6=1;
+
document.getElementById("team_navi2").style.background="#ffd200";
-
$("#T6").fadeTo("slow",1);
+
document.getElementById("notebook_navi2").style.background="#ffd200";
-
    $("#TT6").animate({
+
document.getElementById("outreach2").style.background="#ffd200";
-
    top:'580px',
+
document.getElementById("project_navi2").style.background="#ffd200";
-
    height:'150px',
+
document.getElementById("safety_navi2").style.background="#ffd200";
-
    left:'365px',
+
-
})
+
-
document.getElementById("w6").style.display="none";
+
-
document.getElementById("ww6").style.display="none";
+
-
document.getElementById("www6").style.display="none";
+
-
+
}
}
-
function over7(){member_jjj_iii_ooo7= 0;
+
function navi21(){
-
$("#T7").fadeTo("slow",0.5);
+
document.getElementById("team_navi2").style.background="#b3d465";
-
    $("#TT7").animate({
+
document.getElementById("notebook_navi2").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("outreach2").style.background="#b3d465";
-
height:'295px',
+
document.getElementById("project_navi2").style.background="#b3d465";
-
left:'555px',
+
document.getElementById("safety_navi2").style.background="#b3d465";
-
},"fast",
+
-
function (){
+
-
    $("#w7").show().animate({
+
-
top:'425px',
+
-
        left:'41px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'425px',
+
-
        left:'61px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww7").show().animate({
+
-
  top:'542px',
+
-
        left:'34px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'502px',
+
-
        left:'54px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www7").show().animate({
+
-
  top:'631px',
+
-
        left:'48px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'571px',
+
-
        left:'68px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo7==1)
+
-
{
+
-
out7();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
}
}
-
function out7(){
+
function navi3(){
-
member_jjj_iii_ooo7=1;
+
document.getElementById("team_navi3").style.background="#ffd200";
-
$("#T7").fadeTo("slow",1);
+
document.getElementById("notebook_navi3").style.background="#ffd200";
-
    $("#TT7").animate({
+
document.getElementById("outreach3").style.background="#ffd200";
-
    top:'580px',
+
document.getElementById("project_navi3").style.background="#ffd200";
-
    height:'150px',
+
document.getElementById("safety_navi3").style.background="#ffd200";
-
    left:'875px',
+
-
})
+
-
document.getElementById("w7").style.display="none";
+
-
document.getElementById("ww7").style.display="none";
+
-
document.getElementById("www7").style.display="none";
+
-
 
+
-
+
}
}
-
function over8(){member_jjj_iii_ooo8= 0;
+
function navi31(){
-
$("#T8").fadeTo("slow",0.5);
+
document.getElementById("team_navi3").style.background="#b3d465";
-
    $("#TT8").animate({
+
document.getElementById("notebook_navi3").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("outreach3").style.background="#b3d465";
-
height:'295px',
+
document.getElementById("project_navi3").style.background="#b3d465";
-
left:'555px',
+
document.getElementById("safety_navi3").style.background="#b3d465";
-
},"fast",
+
-
function (){
+
-
    $("#w8").show().animate({
+
-
top:'430px',
+
-
        left:'920px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww8").show().animate({
+
-
  top:'546px',
+
-
        left:'914px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www8").show().animate({
+
-
  top:'635px',
+
-
        left:'928px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo8==1)
+
-
{
+
-
out8();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
}
}
-
function out8(){
+
function navi4(){
-
member_jjj_iii_ooo8=1;
+
document.getElementById("team_navi4").style.background="#ffd200";
-
$("#T8").fadeTo("slow",1);
+
document.getElementById("outreach4").style.background="#ffd200";
-
    $("#TT8").animate({
+
document.getElementById("project_navi4").style.background="#ffd200";
-
    top:'720px',
+
document.getElementById("notebook_navi4").style.background="#ffd200";
-
    height:'150px',
+
-
    left:'420px',
+
-
})
+
-
document.getElementById("w8").style.display="none";
+
-
document.getElementById("ww8").style.display="none";
+
-
document.getElementById("www8").style.display="none";
+
-
+
}
}
-
function over9(){member_jjj_iii_ooo9= 0;
+
function navi41(){
-
$("#T9").fadeTo("slow",0.5);
+
document.getElementById("team_navi4").style.background="#b3d465";
-
    $("#TT9").animate({
+
document.getElementById("outreach4").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("project_navi4").style.background="#b3d465";
-
height:'295px',
+
document.getElementById("notebook_navi4").style.background="#b3d465";
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w9").show().animate({
+
-
top:'425px',
+
-
        left:'41px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'425px',
+
-
        left:'61px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww9").show().animate({
+
-
  top:'542px',
+
-
        left:'34px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'502px',
+
-
        left:'54px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www9").show().animate({
+
-
  top:'631px',
+
-
        left:'48px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'571px',
+
-
        left:'68px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo9==1)
+
-
{
+
-
out9();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
}
}
-
function out9(){
+
function navi5(){
-
member_jjj_iii_ooo9=1;
+
document.getElementById("team_navi5").style.background="#ffd200";
-
$("#T9").fadeTo("slow",1);
+
document.getElementById("outreach5").style.background="#ffd200";
-
    $("#TT9").animate({
+
document.getElementById("project_navi5").style.background="#ffd200";
-
    top:'720px',
+
document.getElementById("notebook_navi5").style.background="#ffd200";
-
    height:'150px',
+
-
    left:'820px',
+
-
})
+
-
document.getElementById("w9").style.display="none";
+
-
document.getElementById("ww9").style.display="none";
+
-
document.getElementById("www9").style.display="none";
+
-
 
+
}
}
-
function over10(){member_jjj_iii_ooo10= 0;
+
function navi51(){
-
$("#T10").fadeTo("slow",0.5);
+
document.getElementById("team_navi5").style.background="#b3d465";
-
    $("#TT10").animate({
+
document.getElementById("outreach5").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("project_navi5").style.background="#b3d465";
-
height:'295px',
+
document.getElementById("notebook_navi5").style.background="#b3d465";
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w10").show().animate({
+
-
top:'430px',
+
-
        left:'920px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'430px',
+
-
        left:'820px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww10").show().animate({
+
-
  top:'546px',
+
-
        left:'914px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'506px',
+
-
        left:'814px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www10").show().animate({
+
-
  top:'635px',
+
-
        left:'928px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'575px',
+
-
        left:'828px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo10==1)
+
-
{
+
-
out10();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
 
+
}
}
-
function out10(){
+
function navi6(){
-
member_jjj_iii_ooo10=1;
+
document.getElementById("project_navi6").style.background="#ffd200";
-
$("#T10").fadeTo("slow",1);
+
document.getElementById("outreach6").style.background="#ffd200";
-
    $("#TT10").animate({
+
document.getElementById("team_navi6").style.background="#ffd200";
-
    top:'810px',
+
-
    height:'150px',
+
-
    left:'545px',
+
-
})
+
-
document.getElementById("w10").style.display="none";
+
-
document.getElementById("ww10").style.display="none";
+
-
document.getElementById("www10").style.display="none";
+
-
 
+
}
}
-
function over11(){member_jjj_iii_ooo11= 0;
+
function navi61(){
-
$("#T11").fadeTo("slow",0.5);
+
document.getElementById("project_navi6").style.background="#b3d465";
-
    $("#TT11").animate({
+
document.getElementById("outreach6").style.background="#b3d465";
-
    top:'475px',
+
document.getElementById("team_navi6").style.background="#b3d465";
-
height:'295px',
+
-
left:'555px',
+
-
},"fast",
+
-
function (){
+
-
    $("#w11").show().animate({
+
-
top:'425px',
+
-
        left:'41px',
+
-
        zIndex:'5',
+
-
},30).animate({
+
-
            top:'425px',
+
-
        left:'61px',
+
-
        zIndex:'6',
+
-
        },200,function(){
+
-
$("#ww11").show().animate({
+
-
  top:'542px',
+
-
        left:'34px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'502px',
+
-
        left:'54px',
+
-
        zIndex:'6',
+
-
},200,function(){
+
-
$("#www11").show().animate({
+
-
  top:'631px',
+
-
        left:'48px',
+
-
zIndex:'5',
+
-
},30).animate({
+
-
top:'571px',
+
-
        left:'68px',
+
-
        zIndex:'6',
+
-
},500,function(){
+
-
if(member_jjj_iii_ooo11==1)
+
-
{
+
-
out11();
+
-
}
+
-
})
+
-
}
+
-
)})
+
-
}
+
-
);
+
-
}
+
-
function out11(){
+
-
member_jjj_iii_ooo11=1;
+
-
$("#T11").fadeTo("slow",1);
+
-
    $("#TT11").animate({
+
-
    top:'810px',
+
-
    height:'150px',
+
-
    left:'695px',
+
-
})
+
-
document.getElementById("w11").style.display="none";
+
-
document.getElementById("ww11").style.display="none";
+
-
document.getElementById("www11").style.display="none";
+
-
+
}
}

Latest revision as of 01:37, 27 October 2013

function movetotop(){ h = window.innerHeight-180; t = $("#xmu_body").scrollTop(); if(t > h){ $('#team_navi6').show(); $('#notebook_navi5').show(); $('#safety_navi3').show(); $('#project_navi6').show(); $('#outreach6').show(); }else{ $('#team_navi6').hide(); $('#notebook_navi5').hide(); $('#safety_navi3').hide(); $('#project_navi6').hide(); $('#outreach6').hide(); } } $(document).ready(function(e) { movetotop(); $('#team_navi6').click(function(){ $("#xmu_body").scrollTop(0); }) movetotop(); $('#notebook_navi5').click(function(){ $("#xmu_body").scrollTop(0); }) movetotop(); $('#outreach6').click(function(){ $("#xmu_body").scrollTop(0); }) movetotop(); $('#project_navi6').click(function(){ $("#xmu_body").scrollTop(0); }) movetotop(); $('#safety_navi3').click(function(){ $("#xmu_body").scrollTop(0); }) }); function navi1(){ document.getElementById("team_navi1").style.background="#ffd200"; document.getElementById("notebook_navi1").style.background="#ffd200"; document.getElementById("outreach1").style.background="#ffd200"; document.getElementById("project_navi1").style.background="#ffd200"; document.getElementById("safety_navi1").style.background="#ffd200"; } function navi11(){ document.getElementById("team_navi1").style.background="#b3d465"; document.getElementById("notebook_navi1").style.background="#b3d465"; document.getElementById("outreach1").style.background="#b3d465"; document.getElementById("project_navi1").style.background="#b3d465"; document.getElementById("safety_navi1").style.background="#b3d465"; } function navi2(){ document.getElementById("team_navi2").style.background="#ffd200"; document.getElementById("notebook_navi2").style.background="#ffd200"; document.getElementById("outreach2").style.background="#ffd200"; document.getElementById("project_navi2").style.background="#ffd200"; document.getElementById("safety_navi2").style.background="#ffd200"; } function navi21(){ document.getElementById("team_navi2").style.background="#b3d465"; document.getElementById("notebook_navi2").style.background="#b3d465"; document.getElementById("outreach2").style.background="#b3d465"; document.getElementById("project_navi2").style.background="#b3d465"; document.getElementById("safety_navi2").style.background="#b3d465"; } function navi3(){ document.getElementById("team_navi3").style.background="#ffd200"; document.getElementById("notebook_navi3").style.background="#ffd200"; document.getElementById("outreach3").style.background="#ffd200"; document.getElementById("project_navi3").style.background="#ffd200"; document.getElementById("safety_navi3").style.background="#ffd200"; } function navi31(){ document.getElementById("team_navi3").style.background="#b3d465"; document.getElementById("notebook_navi3").style.background="#b3d465"; document.getElementById("outreach3").style.background="#b3d465"; document.getElementById("project_navi3").style.background="#b3d465"; document.getElementById("safety_navi3").style.background="#b3d465"; } function navi4(){ document.getElementById("team_navi4").style.background="#ffd200"; document.getElementById("outreach4").style.background="#ffd200"; document.getElementById("project_navi4").style.background="#ffd200"; document.getElementById("notebook_navi4").style.background="#ffd200"; } function navi41(){ document.getElementById("team_navi4").style.background="#b3d465"; document.getElementById("outreach4").style.background="#b3d465"; document.getElementById("project_navi4").style.background="#b3d465"; document.getElementById("notebook_navi4").style.background="#b3d465"; } function navi5(){ document.getElementById("team_navi5").style.background="#ffd200"; document.getElementById("outreach5").style.background="#ffd200"; document.getElementById("project_navi5").style.background="#ffd200"; document.getElementById("notebook_navi5").style.background="#ffd200"; } function navi51(){ document.getElementById("team_navi5").style.background="#b3d465"; document.getElementById("outreach5").style.background="#b3d465"; document.getElementById("project_navi5").style.background="#b3d465"; document.getElementById("notebook_navi5").style.background="#b3d465"; } function navi6(){ document.getElementById("project_navi6").style.background="#ffd200"; document.getElementById("outreach6").style.background="#ffd200"; document.getElementById("team_navi6").style.background="#ffd200"; } function navi61(){ document.getElementById("project_navi6").style.background="#b3d465"; document.getElementById("outreach6").style.background="#b3d465"; document.getElementById("team_navi6").style.background="#b3d465"; }