

/***********************************************
* Drop down menu w/ description- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
var thetext1=new Array()
thetext1[0]="$100 Free bet with Sportsbet"
thetext1[1]="$100 Free bet with IASbet"
thetext1[2]="$50 Free bet with Centrebet"
thetext1[3]="%20 Better odds than TAB"
thetext1[4]="£200 Free Bet"
thetext1[5]="Happy Hour Specials"
thetext1[6]="Luxury and Special Benefits!"

/// You may define additional text arrays if you have multiple drop downs:
var thetext3=new Array()
thetext3[0]="The Hyundai A-leagues most successful team."
thetext3[1]="Formerly known as Queensland Roar FC."
thetext3[2]="The Coast's first football team."
thetext3[3]="The Hyundai A-leagues newest team."
thetext3[4]="The largest average crowd in the league."
thetext3[5]="2007 - 2008 A-League Premiers."
thetext3[6]="Proudly and loudly supported by the F-Troopers."
thetext3[7]="One of the Western Australia's soccer team."
thetext3[8]="The premiers of the Innagural Hyundai A-League season."
thetext3[9]="The only New Zealand team in the Hyundai A-League"

/// You may define additional text arrays if you have multiple drop downs:
var thetext2=new Array()
thetext2[0]="CNN- US and World News."
thetext2[1]="MSNBC- NBC News online."
thetext2[2]="BBC News- Updated every minute of every day."
thetext2[3]="TheRegister- Daily IT news."

// Now, see 2) below for final customization step

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}

function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById!="null" && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value)
else
window.location=selectedopt.value
}

//2) Call function displaydesc() for each drop down menu you have on the page
//   This function displays the initial description for the selected menu item
//   displaydesc(name of select menu, name of corresponding text array, ID of SPAN container tag):
//   Important: Remove the calls not in use (ie: 2nd line below if there's only 1 menu on your page)

displaydesc(document.form1.select1, thetext1, 'textcontainer1')



