/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 20 - Projects
var menu20=new Array()
menu20[0]='<a href="/science/ocean/seaice/arctic_e.html">Fluxes through Lancaster Sound</a>'
menu20[1]='<a href="/science/ocean/seaice/iceberg_e.html">Icebergs and Ice Climatology</a>'
menu20[2]='<a href="/science/ocean/seaice/beacons_e.html">Satellite-tracked Ice Beacons</a>'
menu20[3]='<a href="/science/ocean/seaice/modelling_e.html">Numerical Modelling</a>'
menu20[4]='<a href="/science/ocean/seaice/properties_e.html">Measuring Ice Properties with Helicopters</a>'
menu20[5]='<a href="/science/ocean/seaice/bridge_e.html">Confederation Bridge</a>'
menu20[6]='<a href="/science/ocean/seaice/beaufort_e.html">Mackenzie River Delta</a>'
menu20[7]='<a href="/science/ocean/seaice/makkovik_e.html">Makkovik Bank</a>'

//Contents for menu 21 - Instruments
var menu21=new Array()
menu21[0]='<a href="/science/ocean/seaice/pr_sensor_e.html" alt="to measure in-ice pressure">In-ice pressure sensor</a>'
menu21[1]='<a href="/science/ocean/seaice/anemometer_e.html" alt="atmospheric ice beacon with anemometer">Atmospheric ice beacon</a>'
menu21[2]='<a href="/science/ocean/seaice/location_e.html" alt="GPS location beacons">GPS location beacon</a>'
menu21[3]='<a href="/science/ocean/seaice/ice_staff_e.html" alt="to measure in-ice temperature">Ice temperature staff beacon</a>'
menu21[4]='<a href="/science/ocean/seaice/ice_probe_e.html" alt="Ice Probe and Ice Pic">Ice Probe and Ice Pic</a>'
menu21[5]='<a href="/science/ocean/seaice/radar_e.html" alt="to measure ice and snow thickness with radar">Ice and Snow Thickness Radar System</a>'
menu21[6]='<a href="/science/ocean/seaice/video_e.html" alt="video, laser, and GPS to measure ice thickness">Video-Laser-GPS Sensor System</a>'
menu21[7]='<a href="/science/ocean/seaice/ice_sled_e.html" alt="EM Ice Sled">Ice Sled</a>'
menu21[8]='<a href="/science/ocean/seaice/icycler_e.html" alt="under-ice continuous moored profiler">Icycler</a>'
menu21[9]='<a href="/science/ocean/seaice/watson_e.html" alt="high precision heading reference system">Watson compass</a>'
menu21[10]='<a href="/science/ocean/seaice/subs_e.html" alt="SUBS A2 buoyancy module">SUBS A2 buoyancy module</a>'
menu21[11]='<a href="/science/ocean/seaice/uls_e.html" alt="ULS">Upward Looking Sonar (ULS)</a>'
menu21[12]='<a href="/science/ocean/seaice/microcat_e.html" alt="Microcat">Microcat moored CTD profiler</a>'

//Contents for menu 22 - Data
var menu22=new Array()
menu22[0]='<a href="/science/ocean/seaice/barrow_data_summary_e.html" alt="summary Barrow Strait available data">Barrow Strait available data (1970s-1980s)</a>'
menu22[1]='<a href="/science/ocean/seaice/barrow_file_summary_e.html" alt="summary Barrow Strait available data">Barrow Strait data files (1970s-1980s)</a>'
menu22[2]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/Gulf2003/" alt="Gulf of St. Lawrence 2003">Gulf of St. Lawrence 2003</a>'
menu22[3]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/Gulf2004/" alt="Gulf of St. Lawrence 2004">Gulf of St. Lawrence 2004</a>'
menu22[4]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/iceprobe/data/" alt="Ice Probe">Ice Probe</a>'
menu22[5]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/ingrid/Iceprobe/" alt="Ice Probe (I. Peterson)">Ice Probe (I. Peterson)</a>'
menu22[6]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/icepic/data/" alt="Ice Pic">Ice Pic</a>'
menu22[7]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/video/data/" alt="video system">Video System</a>'
menu22[8]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/ingrid/Videosystem/" alt="video system (I. Peterson)">Video System (I. Peterson)</a>'
menu22[9]='<a href="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/seaice/Iceberg/1983DriftData/" alt="iceberg drift 1983">Iceberg drift 1983</a>'
menu22[10]='<a href="ftp://www.mar.dfo-mpo.gc.ca/pub/ocean/ingrid/Iceberg_Forecast.htm" alt="available iceberg forecast">available iceberg forecast</a>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

document.write ('<span class="sectionseaice">SEA ICE STUDIES</span><br><span class="scisideboxseaice"><a href="/science/ocean/seaice/intro_e.html" class="sci2sidemenuseaice">Introduction</a><a href="#" onMouseover="return dropdownmenu(this, event, menu20, \'200px\')" onMouseout="delayhidemenu()" class="sci2sidemenuseaice">Projects</a><a href="#" onMouseover="return dropdownmenu(this, event, menu21, \'200px\')" onMouseout="delayhidemenu()" class="sci2sidemenuseaice">Instruments</a><a href="/science/ocean/seaice/data_e.html" class="sci2sidemenuseaice">Data</a><a href="/science/ocean/seaice/publications_e.html" class="sci2sidemenuseaice">Publications</a><a href="/science/ocean/seaice/contacts_e.html" class="sci2sidemenuseaice">Contacts</a><a href="/science/ocean/seaice/links_e.html" class="sci2sidemenuseaice">Links</a><a href="/science/ocean/seaice/photos_e.html" class="sci2sidemenuseaice">Photos/Posters</a></span><img alt="" src="/science/ocean/sci/navy.gif" height="21" width="1"><br> <tr><td><span class="section">OES SUBJECTS</span><br><img alt="" src="/science/ocean/sci/navy.gif" height="2" width="1"><br></td></tr>')

