

/***********************************************
* 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
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/event.php">Upcoming Events</a>'
menu1[1]='<a href="/buytickets.php">Tickets</a>'
menu1[2]='<a href="http://www.tropicana.net/Atlantic-City-entertainment/showroom.htm">Venue Info</a>'
menu1[3]='<a href="/directions-trop.php">Directions</a>'

//Contents for menu 2, and so on
//var menu2=new Array()
//menu2[0]='<a href="/fighter-information.php">Details</a>'
//menu2[1]='<a href="/fighter-information.php#rules">Rules</a>'
//menu2[1]='<a href="/application.php">Application</a>'


//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="/xxx-results.php">XXX Results & Photos</a>'
menu3[1]='<a href="/amateur-results.php">Amateur MMA Results & Photos</a>'
menu3[2]='<a href="/xxix-results.php">XXIX Results</a>'
menu3[3]='<a href="/xxviii-results.php">XXVIII Results</a>'
menu3[4]='<a href="/results/xxvii/romero_rodrigo/photos.php">XXVII Results & Photos</a>'
menu3[5]='<a href="/results/xxvi/jackson_galka-andy_main/photos.php">XXVI Results & Photos</a>'
menu3[6]='<a href="/results/xxv/DavidShapiro-CarlosBrooks/photos.php">XXV Results & Photos</a>'
menu3[7]='<a href="/results/xxiv/gaudinot-aquino/photos.php">XXIV Results & Photos</a>'
menu3[8]='<a href="/results/xxiii/tomczuk-longus/photos.php">XXIII Results & Photos</a>'
menu3[9]='<a href="/results/xxii/collins-boudourakis/photos.php">XXII Results & Photos</a>'
menu3[10]='<a href="/results/xxi/fyvie-sanchez/photos.php">XXI Results & Photos</a>'
menu3[11]='<a href="/results/xx/silva-dapolita/photos.php">XX Results & Photos</a>'
menu3[12]='<a href="/results/xix/fyvie-morrison/photos.php">XIX Results & Photos</a>'
menu3[13]='<a href="/results/xviii/montanaro-nabih/photos.php">XVIII Results & Photos</a>'
menu3[14]='<a href="/results/xvii/xvii-prelim-main.php">XVII Results & Photos</a>'
menu3[15]='<a href="/results/xvi/xvi-prelims-results.php">XVI Results & Photos</a>'
menu3[16]='<a href="/results/xv/xv-lightweight-results.php">XV Results & Photos</a>'
menu3[17]='<a href="/old/roc14-results.php">XIV Results & Photos</a>'
menu3[18]='<a href="/old/roc13-results.php">XIII Results & Photos</a>'
menu3[19]='<a href="/old/roc12-results.php">XII Results & Photos</a>'
menu3[20]='<a href="/old/roc11-results.php">XI Results & Photos</a>'
menu3[21]='<a href="/old/roc10-results.php">X Results & Photos</a>'
menu3[22]='<a href="/old/roc9-results.php">IX Results & Photos</a>'
//menu3[11]='<a href="/old/roc8-results.php">VIII Results & Photos</a>'


		
var disappeardelay=100  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=0 //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)
}


