var menu1=new Array()

menu1[0]='<a href="profile_walter_whittleston.html">5C WALTER WHITTLESTON<\/a>'
menu1[1]='<a href="profile_mark_pengelly.html">5E MARK PENGELLY<\/a>'
menu1[2]='<a href="profile_graham_brockelsby.html">5R GRAHAM BROCKELSBY<\/a>'
menu1[3]='<a href="profile_daryl_ainsley.html">5T DARYL AINSLEY<\/a>'
menu1[4]='<a href="profile_patrine_wilson.html">7E PATRINE WILSON<\/a>'
menu1[5]='<a href="profile_rhonda_katene_hill.html">9C RHONDA KATENE-HILL<\/a>'
menu1[6]='<a href="profile_pete_walsh.html">13D PETE WALSH<\/a>'
menu1[7]='<a href="profile_paul_renton.html">13I PAUL RENTON<\/a>'
menu1[8]='<a href="profile_phil_burgess.html">15T PHIL BURGESS<\/a>'
menu1[9]='<a href="profile_steve_williams.html">21H STEVE WILLIAMS<\/a>'
menu1[10]='<a href="profile_stephen_corry.html">27A STEPHEN CORRY<\/a>'
menu1[11]='<a href="profile_paul_cambie.html">27E PAUL CAMBIE<\/a>'
menu1[12]='<a href="profile_craig_shaw.html">34D CRAIG SHAW<\/a>'
menu1[13]='<a href="profile_aaron_tonks.html">43H AARON TONKS<\/a>'
menu1[14]='<a href="profile_gary_shaw.html">44D GARY SHAW<\/a>'
menu1[15]='<a href="profile_paul_cressy.html">45M PAUL CRESSY<\/a>'
menu1[16]='<a href="profile_nigel_ross.html">46A NIGEL ROSS<\/a>'
menu1[17]='<a href="profile_phil_towgood.html">48A PHIL TOWGOOD<\/a>'
menu1[18]='<a href="profile_katrina_meikle.html">58D KATRINA MEIKLE<\/a>'
menu1[19]='<a href="profile_mike_wilson.html">69K MIKE WILSON<\/a>'
menu1[20]='<a href="profile_scott_lansdowne.html">74A SCOTT LANSDOWNE<\/a>'
menu1[21]='<a href="profile_rossco_cresswell.html">77K ROSSCO CRESSWELL<\/a>'
menu1[22]='<a href="profile_mark_newall.html">96D MARK NEWALL<\/a>'
menu1[23]='<a href="profile_robin_thomas.html">97A ROBIN THOMAS<\/a>'
menu1[24]='<a href="profile_greg_powell.html">98H GREG POWELL<\/a>'
menu1[25]='<a href="profile_rob_flood.html">791E ROB FLOOD<\/a>'
menu1[26]='<a href="profile_ben_powell.html">999D BEN POWELL<\/a>'

var menu2=new Array()

menu2[0]='<a href="track_01.html">2009 Rnd 1 CROMWELL<\/a>'
menu2[1]='<a href="track_02.html">2009 Rnd 2 INVERCARGILL<\/a>'
menu2[2]='<a href="track_03.html">2009 Rnd 3 DUNEDIN<\/a>'
menu2[3]='<a href="track_04.html">2009 Rnd 4 RUAPUNA<\/a>'
menu2[4]='<a href="track_05.html">2009 Rnd 5 GREYMOUTH<\/a>'
menu2[5]='<a href="track_06.html">2009 Rnd 6 BLENHEIM<\/a>'

var menu3=new Array()

menu3[0]='<a href="points_2009.html">2009 SERIES POINTS<\/a>'

var menu4=new Array()

menu4[0]='<a href="gallery_2009_blenheim_1.html" target="_blank">2009 BLENHEIM<\/a>'
menu4[1]='<a href="gallery_2009_ruapuna_1.html" target="_blank">2009 RUAPUNA<\/a>'
menu4[2]='<a href="gallery_2009_dunedin_1.html" target="_blank">2009 DUNEDIN<\/a>'
menu4[3]='<a href="gallery_2009_invercargill_1.html" target="_blank">2009 INVERCARGILL<\/a>'
menu4[4]='<a href="gallery_2009_cromwell_1.html" target="_blank">2009 CROMWELL<\/a>'

var menu5=new Array()

menu5[0]='<a href="history_nz_saloon_champs.html">NZ SALOON CHAMPS HISTORY<\/a>'
menu5[1]='<a href="nz_saloon_champs.html">2009-10 NZ SALOON CHAMPS<\/a>'
menu5[2]='<a href="history_nz_saloon_gp.html">NZ SALOON GP HISTORY<\/a>'
menu5[3]='<a href="nz_saloon_gp.html">2009-10 NZ SALOON GP<\/a>'
menu5[4]='<a href="history_ni_saloon_champs.html">NI SALOON CHAMPS HISTORY<\/a>'
menu5[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
