var menu1=new Array()
menu1[0]='<a href="profile_N01.html" title="10H Steve Louden">10H Steve Louden</a>'
menu1[1]='<a href="profile_N02.html" title="13R Murray Guy">13R Murray Guy</a>'
menu1[2]='<a href="profile_N03.html" title="21H Steve Williams">21H Steve Williams</a>'
menu1[3]='<a href="profile_N04.html" title="45M Paul Cressy">45M Paul Cressy</a>'
menu1[4]='<a href="profile_N05.html" title="48A Phil Towgood">48A Phil Towgood</a>'
menu1[5]='<a href="profile_N06.html" title="59A Bryan Skelton">59A Bryan Skelton</a>'
menu1[6]='<a href="profile_N07.html" title="63H Nige Mouat">63H Nige Mouat</a>'
menu1[7]='<a href="profile_N08.html" title="112R Mel Hills">112R Mel Hills</a>'

var menu2=new Array()
menu2[0]='<a href="profile_S01.html" title="8T Mark Vincent">8T Mark Vincent</a>'
menu2[1]='<a href="profile_S02.html" title="26E Dave McCallion">26E Dave McCallion</a>'
menu2[2]='<a href="profile_S03.html" title="71C Willie Woodhouse">71C Willie Woodhouse</a>'
menu2[3]='<a href="profile_S04.html" title="73C Mark Grocott">73C Mark Grocott</a>'
menu2[4]='<a href="profile_S05.html" title="83T Russell Erskine">83T Russell Erskine</a>'
menu2[5]='<a href="profile_S06.html" title="92E Andre Murfitt">92E Andre Murfitt</a>'
menu2[6]='<a href="profile_S07.html" title="94D Tony Williamson">94D Tony Williamson</a>'
menu2[7]='<a href="profile_S08.html" title="96D Mark Newell">96D Mark Newell</a>'

var menu3=new Array()
menu3[0]='<a href="profile_X06.html" title="5C Walter Whittleston">5C Walter Whittleston</a>'
menu3[1]='<a href="profile_X02.html" title="7E Patrine Wilson">7E Patrine Wilson</a>'
menu3[2]='<a href="profile_X01.html" title="27E Paul Cambie">27E Paul Cambie</a>'
menu3[3]='<a href="profile_X03.html" title="44D Gary Shaw">44D Gary Shaw</a>'
menu3[4]='<a href="profile_X08.html" title="46A Nigel Ross">46A Nigel Ross</a>'
menu3[5]='<a href="profile_X07.html" title="47E Shane Scott">47E Shane Scott</a>'
menu3[6]='<a href="profile_X05.html" title="72C Peter Schouten">72C Peter Schouten</a>'
menu3[7]='<a href="profile_X04.html" title="95T Phil Burgess">95T Phil Burgess</a>'

var menu4=new Array()
menu4[0]='<a href="cromwell.html" title="2008 Rnd 1 Cromwell">2008 Round 1 Cromwell</a>'
menu4[1]='<a href="islandpark.html" title="2008 Rnd 2 Dunedin">2008 Round 2 Dunedin</a>'
menu4[2]='<a href="woodfordglen.html" title="2008 Rnd 3 Christchurch">2008 Round 3 Christchurch</a>'
menu4[3]='<a href="easternstates.html" title="2008 Rnd 4 Blenheim">2008 Round 4 Blenheim</a>'
menu4[4]='<a href="2007_easternstates.html" title="2007 Rnd 1 Blenheim">2007 Round 1 Blenheim</a>'
menu4[5]='<a href="2007_woodfordglen.html" title="2007 Rnd 2 Christchurch">2007 Round 2 Christchurch</a>'
menu4[6]='<a href="2007_islandpark.html" title="2007 Rnd 3 Dunedin">2007 Round 3 Dunedin</a>'

var menu5=new Array()

menu5[0]='<a href="gallery_08_blenheim_1.html" target="_blank">2008 Blenheim<\/a>'
menu5[1]='<a href="gallery_08_woodfordglen_1.html" target="_blank">2008 Woodford Glen<\/a>'
menu5[2]='<a href="gallery_07_blenheim_1.html" target="_blank">2007 Blenheim<\/a>'

var menu6=new Array()

menu6[0]='<a href="history_nz_saloon_champs.html">NZ Saloon Champs History<\/a>'
menu6[1]='<a href="nz_saloon_champs.html">2009-10 NZ Saloon Champs<\/a>'
menu6[2]='<a href="history_nz_saloon_gp.html">NZ Saloon GP History<\/a>'
menu6[3]='<a href="nz_saloon_gp.html">2009-10 NZ Saloon GP<\/a>'
menu6[4]='<a href="history_ni_saloon_champs.html">NI Saloon Champs History<\/a>'
menu6[5]='<a href="ni_saloon_champs.html">2009-10 NI Saloon Champs<\/a>'

var menuwidth='165px' //default menu width
var menubgcolor='black'  //menu bgcolor
var disappeardelay=500  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

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 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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
