/***********************************************
* Drop down menu w/ description- &#194;&#169; 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]="Category description here."
thetext1[1]="Used for farming, forestry and any related to agriculture. Including vehicles and machineries."
thetext1[2]="Antiques and anything related to Arts."
thetext1[3]="Household, electrical entertainment appliances."
thetext1[4]="Audio and Video gadgets, accessories and devices."
thetext1[5]="Terrain vehicles and transportation like cars, buses and motorcycles. Plus accessories and parts."
thetext1[6]="New or old books and magazines."
thetext1[7]="Advertise your business and offered services."
thetext1[8]="All kinds of cameras and video cams."
thetext1[9]="Brand new and used cellphones."
thetext1[10]="Any kinds of garments and accessories."
thetext1[11]="PC Hardwares and Softwares, Laptops, Components and Accessories, Internet and Services."
thetext1[12]="Collector's item for sale and trade."
thetext1[13]="Any electronic devices and components."
thetext1[14]="Anything from DVDs, CDs, Music, Movies, Recreation etc."
thetext1[15]="Catering services, recipes, restaurants, foods for sale or order, wines, drinks, chefs corner, culinary arts, general discussions and more."
thetext1[16]="Health, beauty and wellness products."
thetext1[17]="Anything for your home and garden."
thetext1[18]="Internet services and Computer networking"
thetext1[19]="For sale and trade jewelries and accessories."
thetext1[20]="Home pets and animals."
thetext1[21]="Find apartments and condominiums, houses, lots, farms, for rent, rooms and bed spaces and others."
thetext1[22]="Sports Gear, Sporting Goods and Team Equipment."
thetext1[23]="Game consoles, Action figures, PC games, Stuff toys etc."
thetext1[24]="Not found on the list of categories but can also be buy, sell or trade are found here."


/// You may define additional text arrays if you have multiple drop downs:
var thetext2=new Array()
thetext2[0]="Category description here."
thetext2[1]="Franchising, Networking, Business Associates or Partners"
thetext2[2]="Feedback on buyers, sellers and traders. "
thetext2[3]="People of Tagum City from anywhere in the Philippines and around the World. Promote Tagum City."
thetext2[4]="Gatherings, Events, Meetings, Programs, Reunions etc."
thetext2[5]="Online & Offline Heavy Weight Gamers Discussion"
thetext2[6]="Free online job search and postings."
thetext2[7]="All about the world of Music. "
thetext2[8]="Broadcast anything about yourself or the world around you. ^_^ "

// 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')
displaydesc(document.form2.select2, thetext2, 'textcontainer2')