/***********************************************
* 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]="Select a country from the list and click Go"
thetext1[1]="Albania Yellow Pages Business Directory - in English"
thetext1[2]="Argentina's telephone directory<br>PaginasAmarillas.com.ar"
thetext1[3]="Armenian Directory and Internet Yellow Pages - English"
thetext1[4]="Australian White Pages - including business listings"
thetext1[5]="Austrian White & Yellow Pages - German and English"
thetext1[6]="Bahrain's telephone directory"
thetext1[7]="Infobel.be - multi language directory for Belgium"
thetext1[8]="Brazilian telephone directory - in Portuguese only"
thetext1[9]="Bulgarian telephone directory - also in English"
thetext1[10]="Canada's telephone directory<br>MyTelus - for people and businesses"
thetext1[11]="The Caribbean Online Yellow Pages"
thetext1[12]="Páginas Blancas Interactivas - Spanish only<BR>White and Yellow Pages"
thetext1[13]="TicosLand.com Costa Rican business directory<BR>Spanish only"
thetext1[14]="T-Mobile Croatia - Yellow & White Pages<br>Click tab for English"
thetext1[15]="Cuban white pages and yellow pages<BR>No English"
thetext1[16]="Curacao's telephone directory"
thetext1[17]="The Czech Republic's telephone directory"
thetext1[18]="Denmark's telephone directory"
thetext1[19]="Finland's telephone directory"
thetext1[20]="France's White and Yellow Pages<br>They have removed the English version!"
thetext1[21]="Germany's telephone directory"
thetext1[22]="Greece's telephone directory"
thetext1[23]="Guam's telephone directory"
thetext1[24]="Hong Kong's telephone directory"
thetext1[25]="Hungary's telephone directory"
thetext1[26]="Iceland's telephone directory"
thetext1[27]="India's telephone directory"
thetext1[28]="Indonesia's telephone directory"
thetext1[29]="Ireland's telephone directory"
thetext1[30]="Israel's telephone directory"
thetext1[31]="Italy's telephone directory"
thetext1[32]="Jamaica's telephone directory"
thetext1[33]="Japan's telephone directory"
thetext1[34]="Korea's telephone directory"
thetext1[35]="Lebanon's telephone directory"
thetext1[36]="Lithuania's telephone directory"
thetext1[37]="Luxembourg's telephone directory"
thetext1[38]="Macedonia's telephone directory"
thetext1[39]="Mexico's telephone directory"
thetext1[40]="The Netherlands's telephone directory"
thetext1[41]="New Zealand's telephone directory"
thetext1[42]="Norway's telephone directory"
thetext1[43]="Pakistan's telephone directory"
thetext1[44]="Did you know that the Pitcairn Islands have no telephone lines?"
thetext1[45]="Poland's telephone directory"
thetext1[46]="Portugal's telephone directory"
thetext1[47]="Romania's telephone directory"
thetext1[48]="Russia's telephone directory"
thetext1[49]="Singapore's telephone directory<BR>The Lion City"
thetext1[50]="Slovakia's telephone directory"
thetext1[52]="Slovenia's telephone directory"
thetext1[52]="South Africa's telephone directory"
thetext1[53]="Spain's telephone directory"
thetext1[54]="Sweden's telephone directory"
thetext1[55]="Switzerland's telephone directory"
thetext1[56]="Turkey's telephone directory"
thetext1[57]="The UK's telephone directory"
thetext1[58]="American telephone directory<br>by 411.com"
thetext1[59]="USA telephone directory<br>Whitepages.com"
thetext1[60]="Zimbabwe telephone directory"


/// You may define additional text arrays if you have multiple drop downs:



// 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 && 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')


