/***********************************************
* 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 1
var menu1=new Array()
menu1[0]='<a href="gunston.htm">gunston</a>'
menu1[1]='<a href="denver.htm">denver</a>'
menu1[2]='<a href="shepston.htm">shepston</a>'
menu1[3]='<a href="nordic.htm">nordic</a>'
menu1[4]='<a href="dex.htm">dex</a>'
menu1[5]='<a href="edge.htm">edge</a>'
menu1[6]='<a href="novac.htm">novac</a>'
menu1[7]='<a href="austin.htm">austin</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="kingston.htm">kingston</a>'
menu2[1]='<a href="lazer.htm">lazer</a>'
menu2[2]='<a href="tribow.htm">tribow</a>'
menu2[3]='<a href="fame.htm">fame</a>'
menu2[4]='<a href="tuscany.htm">tuscany</a>'

var menu3=new Array()
menu3[0]='<a href="robin.htm">robin</a>'
menu3[1]='<a href="raven.htm">raven</a>'
menu3[2]='<a href="gossip.htm">gossip</a>'
menu3[3]='<a href="arabela.htm">arabela</a>'
menu3[4]='<a href="troy.htm">troy</a>'
menu3[5]='<a href="shea.htm">shea</a>'
menu3[6]='<a href="bella.htm">bella</a>'
menu3[7]='<a href="piper.htm">piper</a>'
menu3[8]='<a href="dante.htm">dant&eacute;</a>'


var menu4=new Array()
menu4[0]='<a href="proc/gunston.htm">gunston</a>'
menu4[1]='<a href="proc/denver.htm">denver</a>'
menu4[2]='<a href="proc/shepston.htm">shepston</a>'
menu4[3]='<a href="proc/nordic.htm">nordic</a>'
menu4[4]='<a href="proc/dex.htm">dex</a>'
menu4[5]='<a href="proc/edge.htm">edge</a>'
menu4[6]='<a href="proc/novac.htm">novac</a>'
menu4[7]='<a href="proc/austin.htm">austin</a>'

var menu5=new Array()
menu5[0]='<a href="proc/kingston.htm">kingston</a>'
menu5[1]='<a href="proc/lazer.htm">lazer</a>'
menu5[2]='<a href="proc/tribow.htm">tribow</a>'
menu5[3]='<a href="proc/fame.htm">fame</a>'
menu5[4]='<a href="proc/tuscany.htm">tuscany</a>'

var menu6=new Array()
menu6[0]='<a href="proc/robin.htm">robin</a>'
menu6[1]='<a href="proc/raven.htm">raven</a>'
menu6[2]='<a href="proc/gossip.htm">gossip</a>'
menu6[3]='<a href="proc/arabela.htm">arabela</a>'
menu6[4]='<a href="proc/troy.htm">troy</a>'
menu6[5]='<a href="proc/shea.htm">shea</a>'
menu6[6]='<a href="proc/bella.htm">bella</a>'
menu6[7]='<a href="proc/piper.htm">piper</a>'
menu6[8]='<a href="proc/dante.htm">dant&eacute;</a>'

var menu7=new Array()
menu7[1]='<a href="proc/publish.htm">giftnells in publications</a>'
menu7[2]='<a href="proc/info.htm">useful links & contacts</a>'
menu7[3]='<a href="proc/grooming.htm">GIFTNELL mobile grooming</a>'

var menu8=new Array()
menu8[1]='<a href="publish.htm">giftnells in publications</a>'
menu8[2]='<a href="info.htm">useful links & contacts</a>'
menu8[3]='<a href="grooming.htm">GIFTNELL mobile grooming</a>'

var menu9=new Array()
menu9[0]='<a href="proc/review_2009.htm">2009 in review</a>'
menu9[1]='<a href="proc/review_2008.htm">2008 in review</a>'
menu9[2]='<a href="proc/review_2007.htm">2007 in review</a>'

var menu10=new Array()
menu10[2]='<a href="review_2007.htm">2007 in review</a>'
menu10[1]='<a href="review_2008.htm">2008 in review</a>'
menu10[0]='<a href="review_2009.htm">2009 in review</a>'

var menu11=new Array()
menu11[1]='<a href="proc/planned_2011.htm">2011</a>'
menu11[2]='<a href="proc/planned_2010.htm">2010</a>'
menu11[3]='<a href="proc/planned_2009.htm">2009</a>'
menu11[4]='<a href="proc/planned_2008.htm">2008</a>'
menu11[5]='<a href="proc/planned_2007.htm">2007</a>'

var menu12=new Array()
menu12[1]='<a href="planned_2011.htm">2011</a>'
menu12[2]='<a href="planned_2010.htm">2010</a>'
menu12[3]='<a href="planned_2009.htm">2009</a>'
menu12[4]='<a href="planned_2008.htm">2008</a>'
menu12[5]='<a href="planned_2007.htm">2007</a>'
		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=5 //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)
}

