Template:CalgaryMenu

From 2011.igem.org

(Difference between revisions)
Line 3: Line 3:
<script type="text/javascript">
<script type="text/javascript">
-
// Copyright 2006-2007 javascript-array.com
+
var timeout = 500;
 +
var closetimer = 0;
 +
var ddmenuitem = 0;
-
var timeout = 500;
+
// open hidden layer
-
var closetimer = 0;
+
function mopen(id)
-
var ddmenuitem = 0;
+
{
-
 
+
mcancelclosetime();
-
// open hidden layer
+
-
function mopen(id)
+
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
-
{
+
-
// cancel close timer
+
// get new layer and show it
-
mcancelclosetime();
+
ddmenuitem = document.getElementById(id);
-
+
ddmenuitem.style.visibility = 'visible';
-
// close old layer
+
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+
}
-
+
// close showed layer
-
// get new layer and show it
+
function mclose()
-
ddmenuitem = document.getElementById(id);
+
{
-
ddmenuitem.style.visibility = 'visible';
+
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
-
+
}
-
}
+
-
// close showed layer
+
// go close timer
-
function mclose()
+
function mclosetime()
-
{
+
{
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+
closetimer = window.setTimeout(mclose, timeout);
-
}
+
}
-
+
-
// go close timer
+
// cancel close timer
-
function mclosetime()
+
function mcancelclosetime()
-
{
+
{
-
closetimer = window.setTimeout(mclose, timeout);
+
if(closetimer)
-
}
+
{
-
+
window.clearTimeout(closetimer);
-
// cancel close timer
+
closetimer = null;
-
function mcancelclosetime()
+
}
-
{
+
}
-
if(closetimer)
+
-
{
+
-
window.clearTimeout(closetimer);
+
-
closetimer = null;
+
-
}
+
-
}
+
-
// close layer when click-out
+
// close layer when click-out
-
document.onclick = mclose;  
+
document.onclick = mclose;  
</script>
</script>
Line 179: Line 175:
<li>
<li>
-
<a href="https://2010.igem.org/Team:Calgary"
+
<a href="https://2011.igem.org/Team:Calgary"
onmouseover="mopen('m1')"
onmouseover="mopen('m1')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 186: Line 182:
<li>
<li>
-
<a href="https://2010.igem.org/Team:Calgary/Team"
+
<a href="https://2011.igem.org/Team:Calgary/Team"
onmouseover="mopen('m2')"
onmouseover="mopen('m2')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 193: Line 189:
onmouseover="mcancelclosetime()"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
-
<a href="https://igem.org/Team.cgi?year=2010&team_name=Calgary">Official Team Profile</a>
+
<a href="https://2011.igem.org/Team:Calgary/Team">Official Team Profile</a>
-
<a href="https://2010.igem.org/Team:Calgary/Team/Biographies">Biographies</a>
+
<a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a>
-
<a href="https://2010.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a>
+
<a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a>
-
<a href="https://2010.igem.org/Team:Calgary/Team/About_The_University">About the University</a>
+
<a href="https://2011.igem.org/Team:Calgary/Team/About_The_University">About the University</a>
-
<a href="https://2010.igem.org/Team:Calgary/Team/Acknowledgements">Acknowledgements</a>
+
<a href="https://2011.igem.org/Team:Calgary/Team/Acknowledgements">Acknowledgements</a>
</div>
</div>
</li>
</li>
<li>
<li>
-
<a href="https://2010.igem.org/Team:Calgary/Project"
+
<a href="https://2011.igem.org/Team:Calgary/Project"
onmouseover="mopen('m3')"
onmouseover="mopen('m3')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 209: Line 205:
onmouseover="mcancelclosetime()"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
-
<a href="https://2010.igem.org/Team:Calgary/Project">Overview</a>
+
<a href="https://2011.igem.org/Team:Calgary/Project">Overview</a>
-
<a href="https://2010.igem.org/Team:Calgary/Project/Transcription">Transcription/Translation</a>
+
<a href="https://2011.igem.org/Team:Calgary/Project/Transcription">Transcription/Translation</a>
-
<a href="https://2010.igem.org/Team:Calgary/Project/misfolding_overview">Protein Misfolding</a>
+
<a href="https://2011.igem.org/Team:Calgary/Project/misfolding_overview">Protein Misfolding</a>
-
<a href="https://2010.igem.org/Team:Calgary/Project/Controls">Testing Our System</a>
+
<a href="https://2011.igem.org/Team:Calgary/Project/Controls">Testing Our System</a>
-
<a href="https://2010.igem.org/Team:Calgary/Project/Achievements">Achievements</a>
+
<a href="https://2011.igem.org/Team:Calgary/Project/Achievements">Achievements</a>
</div>
</div>
Line 219: Line 215:
-
<li><a href="https://2010.igem.org/Team:Calgary/Parts/Parts_Submitted"
+
<li><a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted"
onmouseover="mopen('m4')"
onmouseover="mopen('m4')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 226: Line 222:
onmouseover="mcancelclosetime()"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
-
<a href="https://2010.igem.org/Team:Calgary/Parts/Parts_Submitted">Parts Submitted</a>
+
<a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted">Parts Submitted</a>
-
<a href="https://2010.igem.org/Team:Calgary/Parts/Characterization">Characterization</a>
+
<a href="https://2011.igem.org/Team:Calgary/Parts/Characterization">Characterization</a>
</div>
</div>
</li>
</li>
-
<li><a href="https://2010.igem.org/Team:Calgary/Notebook"
+
<li><a href="https://2011.igem.org/Team:Calgary/Notebook"
onmouseover="mopen('m5')"
onmouseover="mopen('m5')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 240: Line 236:
onmouseout="mclosetime()">
onmouseout="mclosetime()">
<a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar">Calendar</a>
<a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar">Calendar</a>
-
<a href="https://2010.igem.org/Team:Calgary/Notebook/Future_Directions">Future Directions</a>
+
<a href="https://2011.igem.org/Team:Calgary/Notebook/Future_Directions">Future Directions</a>
-
<a href="https://2010.igem.org/Team:Calgary/Notebook/Safety_And_Protocols">Protocols</a>
+
<a href="https://2011.igem.org/Team:Calgary/Notebook/Safety_And_Protocols">Protocols</a>
-
<a href="https://2010.igem.org/Team:Calgary/Notebook/Safety">Safety</a>
+
<a href="https://2011.igem.org/Team:Calgary/Notebook/Safety">Safety</a>
</div>
</div>
</li>
</li>
-
<li><a href="https://2010.igem.org/Team:Calgary/Modelling"
+
<li><a href="https://2011.igem.org/Team:Calgary/Modelling"
onmouseover="mopen('m6')"
onmouseover="mopen('m6')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 254: Line 250:
onmouseover="mcancelclosetime()"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
-
<a href="https://2010.igem.org/Team:Calgary/Modelling/MATLAB">MATLAB</a>
+
<a href="https://2011.igem.org/Team:Calgary/Modelling/MATLAB">MATLAB</a>
-
<a href="https://2010.igem.org/Team:Calgary/Modelling/Maya">Animation</a>
+
<a href="https://2011.igem.org/Team:Calgary/Modelling/Maya">Animation</a>
</div>
</div>
</li>
</li>
-
<li><a href="https://2010.igem.org/Team:Calgary/Community"
+
<li><a href="https://2011.igem.org/Team:Calgary/Community"
onmouseover="mopen('m7')"
onmouseover="mopen('m7')"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
Line 267: Line 263:
onmouseover="mcancelclosetime()"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
onmouseout="mclosetime()">
-
<a href="https://2010.igem.org/Team:Calgary/Community/Ethics">Ethics/Human Practices</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Ethics">Ethics/Human Practices</a>
-
<a href="https://2010.igem.org/Team:Calgary/Community/Gallery">Gallery</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Gallery">Gallery</a>
-
<a href="https://2010.igem.org/Team:Calgary/Community/Conferences">Conferences</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Conferences">Conferences</a>
-
<a href="https://2010.igem.org/Team:Calgary/Community/Suffield">DRDC Suffield</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Suffield">DRDC Suffield</a>
-
<a href="https://2010.igem.org/Team:Calgary/Community/Podcasts">Podcasts</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Podcasts">Podcasts</a>
-
<a href="https://2010.igem.org/Team:Calgary/Community/Blog">Visit Our Blog!</a>
+
<a href="https://2011.igem.org/Team:Calgary/Community/Blog">Visit Our Blog!</a>
</div>
</div>
</li>
</li>
-
<li><a href="https://2010.igem.org/Team:Calgary/Sponsors">Sponsors</a></li>
+
<li><a href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a></li>
-
<li><a class="menuend" href="https://2010.igem.org/Team:Calgary/Extras">Extras</a></li>
+
<li><a class="menuend" href="https://2011.igem.org/Team:Calgary/Extras">Extras</a></li>
</ul>
</ul>

Revision as of 17:05, 17 May 2011