// JavaScript Document

// functions to hide/show and position the red pin overlay for Australian cities.
function showCity(pCity)
{
	var pin=document.getElementById("pin_red");
	var pinLink=document.getElementById("pin_red_link");
	pin.style.display = "block";
	if (pCity == "mel")
	{
		pin.style.top = "138px";
		pin.style.left = "145px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-MEL");
		pinLink.firstChild.setAttribute("alt", "Melbourne");
	}
	else if (pCity == "hob")
	{
		pin.style.top = "163px";
		pin.style.left = "149px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-HBA");
		pinLink.firstChild.setAttribute("alt", "Tasmania");
	}
	else if (pCity == "adl")
	{
		pin.style.top = "116px";
		pin.style.left = "113px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-ADL");
		pinLink.firstChild.setAttribute("alt", "Adelaide");
	}
	else if (pCity == "syd")
	{
		pin.style.top = "114px";
		pin.style.left = "176px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-SYD");
		pinLink.firstChild.setAttribute("alt", "Sydney");
	}
	else if (pCity == "brs")
	{
		pin.style.top = "79px";
		pin.style.left = "186px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-BNE");
		pinLink.firstChild.setAttribute("alt", "Brisbane");
	}
	else if (pCity == "gc")
	{
		pin.style.top = "88px";
		pin.style.left = "186px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-GC");
		pinLink.firstChild.setAttribute("alt", "Gold Coast");
	}
	else if (pCity == "drw")
	{
		pin.style.top = "3px";
		pin.style.left = "72px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-DRW");
		pinLink.firstChild.setAttribute("alt", "Darwin");
	}
	else if (pCity == "crn")
	{
		pin.style.top = "20px";
		pin.style.left = "151px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-CNS");
		pinLink.firstChild.setAttribute("alt", "Cairns");
	}
	else if (pCity == "as")
	{
		pin.style.top = "63px";
		pin.style.left = "85px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-ASP");
		pinLink.firstChild.setAttribute("alt", "Alice Springs");
	}
	else if (pCity == "per")
	{
		pin.style.top = "102px";
		pin.style.left = "3px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-PER");
		pinLink.firstChild.setAttribute("alt", "Perth");
	}
	else if (pCity == "bm")
	{
		pin.style.top = "105px";
		pin.style.left = "162px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-BM");
		pinLink.firstChild.setAttribute("alt", "Katoomba");
	}
	else if (pCity == "sc")
	{
		pin.style.top = "69px";
		pin.style.left = "185px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GLSC");
		pinLink.firstChild.setAttribute("alt", "Sunshine Coast");
	}
	else if (pCity == "nzau")
	{
		pin.style.top = "144px";
		pin.style.left = "216px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-NZ");
		pinLink.firstChild.setAttribute("alt", "Auckland");
	}
	else if (pCity == "nzch")
	{
		pin.style.top = "196px";
		pin.style.left = "202px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-NZ");
		pinLink.firstChild.setAttribute("alt", "Christchurch");
	}
	else if (pCity == "nzqu")
	{
		pin.style.top = "212px";
		pin.style.left = "178px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-NZ");
		pinLink.firstChild.setAttribute("alt", "Christchurch");
	}
	else if (pCity == "bme")
	{
		pin.style.top = "26px";
		pin.style.left = "34px";
		pinLink.setAttribute("href", "TourCategory.aspx?OCB=GL-BME");
		pinLink.firstChild.setAttribute("alt", "Broome");
	}
}

function hideCity()
{
	var mel=document.getElementById("pin_red")
	mel.style.display = "none";
}