<!--
/***********************************************
* Explore City functions - Ajmal Saifudeen
***********************************************/
function showSearchType(type){
document.getElementById("quickListSection").style.display = 'none';
document.getElementById("keywordSearchSection").style.display = 'none';
document.forms["areaButtonsForm"].btn_quickList.disabled = false;
document.forms["areaButtonsForm"].btn_keywordSearch.disabled = false;
document.getElementById(type + "Section").style.display = '';
eval("document.forms['areaButtonsForm'].btn_" + type + ".disabled = true;");
}
function populateQuickLinks(searchTerm){
var linksLayer = document.getElementById("areaLinksSelect");
linksLayer.innerHTML = "";
linksLayer.innerHTML = linksLayer.innerHTML + "Showing Attractions for: " + searchTerm + "<br /><br />";
var matchesFound = false;
for (i=0; i<areaLinks.length; i++){
var attractionTitle = areaText[i];
var attractionURL = areaLinks[i];
if (searchTerm == "All" || attractionTitle.substring(0,1).toUpperCase() == searchTerm){
linksLayer.innerHTML = linksLayer.innerHTML + "<a href='" + attractionURL + "' title='" + attractionTitle + "' class='bulletGray'>" + attractionTitle + "</a><br />";
matchesFound = true;
}
}
if (!matchesFound)
linksLayer.innerHTML = linksLayer.innerHTML + "No Matches Found";
}
function populateQuickLinksSubPages(){
document.forms["areaForm"].areaLinksSelect.options[0] = new Option("-- More Melbourne Attractions (click here) --", "-1");
document.forms["areaForm"].areaLinksSelect.options[1] = new Option("", "-1");
for (i=0; i<areaLinks.length; i++)
document.forms["areaForm"].areaLinksSelect.options[i+2] = new Option(areaText[i], areaLinks[i]);
}
function loadLargeMap( mapName ){
var el = document.getElementById("contentMapArea");
var mapData = "";
mapData = "<img src='" + baseFolder + "/images/maps/" + mapName + "' />\n";
el.innerHTML = mapData;
}
function showMe( dropdownName ){
eval("var selectedAttractionIndex = document.forms['areaForm']." + dropdownName + ".selectedIndex;");
eval("var selectedURL = document.forms['areaForm']." + dropdownName + "[selectedAttractionIndex].value;");
if (selectedURL != "-1")
goTo(selectedURL, 'internal');
else
alert("Please select a valid option.");
}
-->
