/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//***********************************************
//*                   Engels
//***********************************************

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="sandeau_agility-uk.htm">Agility</a>'
menu1[1]='<a href="sandeau_obedience-uk.htm">Obedience</a>'
menu1[2]='<a href="sandeau_flyball-uk.htm">Flyball</a>'
menu1[3]='<a href="sandeau_herding-uk.htm">Herding</a>'
menu1[4]='<a href="sandeau_search_and_rescue-uk.htm">Search and Rescue</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="sandeau_showresults_2008-uk.htm">Showresults 2008</a>'
menu2[1]='<a href="sandeau_showresults_2007-uk.htm">Showresults 2007</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="sandeau_offspring-uk.htm">Offspring with Phyrne</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="sandeau_pictures_1-uk.htm">Snowfun February 2007</a>'
menu4[1]='<a href="sandeau_pictures_2-uk.htm">Pictures page 2</a>'

//Contents for menu 5 
var menu5=new Array()
menu5[0]='<a href="cooper_shows-uk.htm">Shows</a>'
menu5[1]='<a href="cooper_agility-uk.htm">Agility</a>'
menu5[2]='<a href="cooper_herding-uk.htm">Herding</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="cooper_showresults_2008-uk.htm">Showresults 2008</a>'
menu6[1]='<a href="cooper_showresults_2007-uk.htm">Showresults 2007</a>'
menu6[2]='<a href="cooper_showresults_2006-uk.htm">Showresults 2006</a>'
menu6[3]='<a href="cooper_showresults_2005-uk.htm">Showresults 2005</a>'
menu6[4]='<a href="cooper_showresults_2004-uk.htm">Showresults 2004</a>'
menu6[5]='<a href="cooper_showresults_2003-uk.htm">Showresults 2003</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="cooper_offspring_emma-uk.htm">Offspring with Emma</a>'
menu7[1]='<a href="cooper_offspring_luna-uk.htm">Offspring with Luna</a>'
menu7[2]='<a href="cooper_offspring_sunny-uk.htm">Offspring with Sunny</a>'
menu7[3]='<a href="cooper_offspring_sina-uk.htm">Offspring with Sina</a>'
menu7[4]='<a href="cooper_offspring_chessey-uk.htm">Offspring with Chessey</a>'

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="cooper_pictures_1-uk.htm">VASC Trier September 2006</a>'
menu8[1]='<a href="cooper_pictures_2-uk.htm">Snowfun February 2007</a>'

//Contents for menu 9
var menu9=new Array()
menu9[0]='<a href="cooper_offspring_luna0-uk.htm">1 Day old</a>'
menu9[1]='<a href="cooper_offspring_luna1-uk.htm">1 Week old</a>'
menu9[2]='<a href="cooper_offspring_luna2-uk.htm">2 Weeks old</a>'
menu9[3]='<a href="cooper_offspring_luna3-uk.htm">3 Weeks old</a>'
menu9[4]='<a href="cooper_offspring_luna4-uk.htm">4 Weeks old</a>'
menu9[5]='<a href="cooper_offspring_luna5-uk.htm">5 Weeks old</a>'
menu9[6]='<a href="cooper_offspring_luna6-uk.htm">6 Weeks old</a>'
menu9[7]='<a href="cooper_offspring_luna7-uk.htm">7 Weeks old</a>'
menu9[8]='<a href="cooper_offspring_luna8-uk.htm">8 Weeks old</a>'

//Contents for menu 10
var menu10=new Array()
menu10[0]='<a href="news-uk.htm">News 2010</a>'
menu10[1]='<a href="news_2009-uk.htm">News 2009</a>'
menu10[2]='<a href="news_2008-uk.htm">News 2008</a>'
menu10[3]='<a href="news_2007-uk.htm">News 2007</a>'
menu10[4]='<a href="news_2006-uk.htm">News 2006</a>'

//Contents for menu 11
var menu11=new Array()
menu11[0]='<a href="cooper_offspring_sunny0-uk.htm">1 Day old</a>'
menu11[1]='<a href="cooper_offspring_sunny1-uk.htm">1 Week old</a>'
menu11[2]='<a href="cooper_offspring_sunny2-uk.htm">2 Weeks old</a>'
menu11[3]='<a href="cooper_offspring_sunny3-uk.htm">3 Weeks old</a>'
menu11[4]='<a href="cooper_offspring_sunny4-uk.htm">4 Weeks old</a>'
menu11[5]='<a href="cooper_offspring_sunny5-uk.htm">5 Weeks old</a>'
menu11[6]='<a href="cooper_offspring_sunny6-uk.htm">6 Weeks old</a>'
menu11[7]='<a href="cooper_offspring_sunny7-uk.htm">7 Weeks old</a>'
menu11[8]='<a href="cooper_offspring_sunny8-uk.htm">In the forest!</a>'

//Contents for menu 12
var menu12=new Array()
menu12[0]='<a href="cooper_offspring_sina0-uk.htm">First day</a>'
menu12[1]='<a href="cooper_offspring_sina1-uk.htm">1 Week old</a>'
menu12[2]='<a href="cooper_offspring_sina2-uk.htm">2 Weeks old</a>'
menu12[3]='<a href="cooper_offspring_sina3-uk.htm">3 Weeks old</a>'

//Contents for menu 13
var menu13=new Array()
menu13[0]='<a href="cooper_offspring_chessey0-uk.htm">First day</a>'
menu13[1]='<a href="cooper_offspring_chessey1-uk.htm">1 Week old</a>'
menu13[2]='<a href="cooper_offspring_chessey2-uk.htm">2 Weeks old</a>'
menu13[3]='<a href="cooper_offspring_chessey3-uk.htm">3 Weeks old</a>'
menu13[4]='<a href="cooper_offspring_chessey4-uk.htm">4 Weeks old</a>'
menu13[5]='<a href="cooper_offspring_chessey5-uk.htm">5 Weeks old</a>'
menu13[6]='<a href="cooper_offspring_chessey6-uk.htm">6 Weeks old</a>'



var menuwidth='165px' //default menu width
var menubgcolor='#FFF2BF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////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:'+menuwidth+';background-color:'+menubgcolor+'" 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
if (menuwidth!=""){
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 < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
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)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
