/*
Version 1.0 - dfo|design Website Redesign 2002
date: 09/07/2002
author: Justin Hewitt - justin@dfodesign.co.nz
Code based on: Drop down menu link- Dynamic Drive (www.dynamicdrive.com)

Used By: ALL PAGES

Notes:

1. To add menu items add entry to appropriate array below.
2. Max entries to avoid display problems in 800 x 600 is 6.
3. Script only works in is_nav4 and above and is_ie4 and above. 
*/

//Contents for About
var menuAbt=new Array()
menuAbt[0]="<a href=../cnt/abt-bkg.php target=_self onMouseOut=out('abtbkg') onMouseOver=ova('abtbkg')><img src='../pic/men/men-abt-bkg.gif' width='125' height='16' alt='Background' border='0' name='abtbkg'></a><br>"
menuAbt[1]="<a href=../cnt/abt-tel.php target=_self onMouseOut=out('abttel') onMouseOver=ova('abttel')><img src='../pic/men/men-abt-tel.gif' width='125' height='16' alt='Television Production' border='0' name='abttel'></a><br>"
menuAbt[2]="<a href=../cnt/abt-pht.php target=_self onMouseOut=out('abtpht') onMouseOver=ova('abtpht')><img src='../pic/men/men-abt-pht.gif' width='125' height='16' alt='Stills Photography' border='0' name='abtpht'></a><br>"
menuAbt[3]="<a href=../cnt/abt-fac.php target=_self onMouseOut=out('abtfac') onMouseOver=ova('abtfac')><img src='../pic/men/men-abt-fac.gif' width='125' height='16' alt='Facilities' border='0' name='abtfac'></a><br>"
//Contents for Portfolio
var menuGal=new Array()
menuGal[0]="<a href=../cnt/gal-fod.php target=_self onMouseOut=out('galfod') onMouseOver=ova('galfod')><img src='../pic/men/men-gal-fod.gif' width='85' height='16' alt='Food' border='0' name='galfod'></a><br>"
menuGal[1]="<a href=../cnt/gal-ppl.php target=_self onMouseOut=out('galppl') onMouseOver=ova('galppl')><img src='../pic/men/men-gal-ppl.gif' width='85' height='16' alt='People' border='0' name='galppl'></a><br>"
menuGal[2]="<a href=../cnt/gal-ovs.php target=_self onMouseOut=out('galovs') onMouseOver=ova('galovs')><img src='../pic/men/men-gal-ovs.gif' width='85' height='16' alt='Overseas' border='0' name='galovs'></a><br>"
menuGal[3]="<a href=../cnt/gal-nzs.php target=_self onMouseOut=out('galnzs') onMouseOver=ova('galnzs')><img src='../pic/men/men-gal-nzs.gif' width='85' height='16' alt='New Zealand Scenic' border='0' name='galnzs'></a><br>"
menuGal[4]="<a href=../cnt/gal-fac.php target=_self onMouseOut=out('galfac') onMouseOver=ova('galfac')><img src='../pic/men/men-gal-fac.gif' width='85' height='16' alt='Facilities' border='0' name='galfac'></a><br>"


//reusable/////////////////////////////

var zindex=100
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all
var opr=navigator.userAgent.indexOf("Opera")

function dropit(e,whichone){
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.themenu&&themenu.id!=curmenuID)
themenuStyle.visibility=ns4?"hide" : "hidden"

themenu=ns6? document.getElementById(whichone): eval(whichone)
themenuStyle=(ns6||ie4)? themenu.style : themenu

themenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
themenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0

themenuStyle.left=ns6||ns4? e.pageX-e.layerX : themenuoffsetX+event.clientX-event.offsetX
themenuStyle.top=ns6||ns4? e.pageY-e.layerY+19 : themenuoffsetY+event.clientY-event.offsetY+18

hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (themenuStyle.visibility==hiddenconst){
themenuStyle.visibility=(ns6||ie4)? "visible" : "show"
themenuStyle.zIndex=zindex++
}
else
hidemenu()
return false
}

function hidemenu(){
if ((ie4||ns6)&&window.themenu)
themenuStyle.visibility="hidden"
else if (ns4)
themenu.visibility="hide"
}

if (ie4||ns6)
document.onclick=hidemenu

//reusable/////////////////////////////