﻿/***********************************************
* AnyLink Drop Down Menu- ? Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
*
* Modifications by Ian McLean
* http://www.digitalink.com.au/
***********************************************/

// find out path of document
fullpath = window.location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1)
danumber = fullpath.split("/").length - 2

// on the dev server?
if ((window.location.hostname.indexOf("dev2.digitalink.com.au")) > -1) {
	danumber = danumber - 1
}

daPath = ""
for (var i=0; i<danumber;i++) {
	daPath += "../"
}


//-------------------------------------------------------------------------------------------
// 1st level menus

// written directly into html pages through GoLive templates



//-------------------------------------------------------------------------------------------
// 2nd level menus


var menu1=new Array()
menu1[1]='<a href="' + daPath + 'about_tasair/our_location.html">Our Location</a>'
menu1[2]='<a href="' + daPath + 'about_tasair/our_staff.html">Our Staff</a>'
menu1[3]='<a href="' + daPath + 'about_tasair/our_fleet.html">Our Fleet</a>'
menu1[4]='<a href="' + daPath + 'about_tasair/links.html">Links</a>'
menu1[5]='<a href="' + daPath + 'about_tasair/application.html">Employment with Tasair</a>'

var menu2=new Array()
menu2[1]='<a href="' + daPath + 'airline_service/flight_schedules.html">Flight Schedules</a>'
//onmouseover="submenu(this, event, menu10, \'600px\', \'#2f2f3b\');return true" onmouseout="subdynamichide(event);return true">Flight Schedules</a>'
//third level menu (above line) removed for now
menu2[2]='<a href="' + daPath + 'airline_service/fare_prices.html">Fare Prices</a>'
menu2[3]='<a href="' + daPath + 'airline_service/fare_conditions.html">Fare Conditions</a>'
menu2[4]='<a href="' + daPath + 'airline_service/passenger_information.html">Passenger Information</a>'
menu2[5]='<a href="' + daPath + 'airline_service/northtas.html">Northern Tasmania Getaways!</a>'

var menu3=new Array()
menu3[1]='<a href="' + daPath + 'scenic_flights/hobart_city.html">Hobart City</a>'
menu3[2]='<a href="' + daPath + 'scenic_flights/south_west.html">South West</a>'
menu3[3]='<a href="' + daPath + 'scenic_flights/three_parks.html">Three Parks</a>'
menu3[4]='<a href="' + daPath + 'scenic_flights/tasman_peninsula.html">Tasman Peninsula</a>'
menu3[5]='<a href="' + daPath + 'scenic_flights/wilderness_wine_wildlife.html">Wilderness, Wine & Wildlife</a>'
menu3[6]='<a href="' + daPath + 'scenic_flights/federation.html">Federation Wilderness</a>'
menu3[7]='<a href="' + daPath + 'scenic_flights/bruny.html">Bruny Island by Air & Sea</a>'
menu3[8]='<a href="' + daPath + 'scenic_flights/maria.html">Maria Island Experience</a>'
//menu3[9]='<a href="' + daPath + 'scenic_flights/cradle.html">Cradle Mountain</a>'



var menu4=new Array()
menu4[1]='<a href="' + daPath + 'charter_and_other/charter_flights.html">Charter Flights</a>'
menu4[2]='<a href="' + daPath + 'charter_and_other/bushwalking.html">Bushwalking</a>'
menu4[3]='<a href="' + daPath + 'charter_and_other/search_and_rescue.html">Search & Rescue</a>'
menu4[4]='<a href="' + daPath + 'charter_and_other/freight.html">Freight</a>'
menu4[5]='<a href="' + daPath + 'charter_and_other/photographic_scenic.html">Photographic & Scenic Flights</a>'
menu4[6]='<a href="' + daPath + 'charter_and_other/engineering.html">Engineering Services</a>'

var menu5=new Array()
//menu5[1]='<a href="' + daPath + 'flight_bookings/page_1.html">Conferences &amp; Meeting Rooms</a>'
//menu5[2]='<a href="' + daPath + 'flight_bookings/page_2.html">Weddings & Special Days</a>'

var menu6=new Array()
menu6[1]='<a href="' + daPath + 'pilot_training/how_to_start.html">How to Start</a>'
menu6[2]='<a href="' + daPath + 'pilot_training/pilot_licences.html">Pilot Licences</a>'
menu6[3]='<a href="' + daPath + 'pilot_training/licence_costs.html">Licence Costs</a>'
menu6[4]='<a href="' + daPath + 'pilot_training/ratings_and_endorsements.html">Ratings and Endorsements</a>'
menu6[5]='<a href="' + daPath + 'pilot_training/specials.html">SPECIALS!</a>'
menu6[6]='<a href="' + daPath + 'pilot_training/FAQ.html">Pilot Training FAQ</a>'
menu6[7]='<a href="' + daPath + 'pilot_training/gallery.html">Student Gallery</a>'

var menu7=new Array()
//menu7[2]='<a href="' + daPath + 'story/ourpeople.html">Our People</a>'


//-------------------------------------------------------------------------------------------
// 3rd level menus

var menu10=new Array()
menu10[1]='<a href="' + daPath + 'about_tasair/flight_schedules/hobart_burnie.html">Hobart &ndash; Burnie</a>'
menu10[2]='<a href="' + daPath + 'about_tasair/flight_schedules/hobart_kingisland.html">Hobart &ndash; King Island</a>'
menu10[3]='<a href="' + daPath + 'about_tasair/flight_schedules/devonport_kingisland.html">Devonport &ndash; King Island</a>'
menu10[4]='<a href="' + daPath + 'about_tasair/flight_schedules/burnie_kingisland.html">Burnie &ndash; King Island</a>'




var menuwidth='600' //default menu width
var menubgcolor='#000000'  //menu bgcolor
var menubgcolor2='#000000' // bottom menu
var disappeardelay=400  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editing needed

