/***********************************************
* 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
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="contact.html"><span class="style22">Contact Us</span></a>'
menu1[1]='<a href="arriva_contacts.html"><span class="style22">Arriva Trains</span></a>'
menu1[2]='<a href="c2c_contacts.html"><span class="style22">c2c Rail</span></a>'
menu1[3]='<a href="centraltrains_contacts.html"><span class="style22">Central Trains</span></a>'
menu1[4]='<a href="chilternrailway_contacts.html"><span class="style22">Chiltern Railway</span></a>'
menu1[5]='<a href="crosscountry_contacts.html"><span class="style22">Cross Country Trains</span></a>'
menu1[6]='<a href="eurostar_contacts.html"><span class="style22">Eurostar</span></a>'
menu1[7]='<a href="eastmidlands_contacts.html"><span class="style22">East Midlands Trains</span></a>'
menu1[8]='<a href="firstcapitalconnect_contacts.html"><span class="style22">First Capital Connect</span></a>'
menu1[9]='<a href="firstgreatwestern_contacts.html"><span class="style22">First Great Western</span></a>'
menu1[10]='<a href="firstscotrail_contacts.html"><span class="style22">First Scottish Rail</span></a>'
menu1[11]='<a href="gatwickexpress_contacts.html"><span class="style22">Gatwick Express</span></a>'
menu1[12]='<a href="gner_contacts.html"><span class="style22">GNER Railways</span></a>'
menu1[13]='<a href="northeastern_contacts.html"><span class="style22">Great North Eastern Railway </span></a>'
menu1[14]='<a href="heathrowconnect_contacts.html"><span class="style22">Heathrow Connect</span></a>'
menu1[15]='<a href="heathrowexpress_contacts.html"><span class="style22">Heathrow Express</span></a>'
menu1[16]='<a href="hulltrains_contacts.html"><span class="style22">Hull Trains</span></a>'
menu1[17]='<a href="londonmidland_contacts.html"><span class="style22">London Midland Express</span></a>'
menu1[18]='<a href="merseyrail_contacts.html"><span class="style22">Merseyrail Electrics</span></a>'
menu1[19]='<a href="midlandmainline_contacts.html"><span class="style22">Midland Main Line</span></a>'
menu1[20]='<a href="northernrail_contacts.html"><span class="style22">Northern Rail</span></a>'
menu1[21]='<a href="southernrail_contacts.html"><span class="style22">Southern Railway </span></a>'
menu1[22]='<a href="eastcoast_contacts.html"><span class="style22">National Express</span></a>'
menu1[23]='<a href="onerail_contacts.html"><span class="style22">ONE Rail Network</span></a>'
menu1[24]='<a href="southwest_contacts.html"><span class="style22">South West Trains</span></a>'
menu1[25]='<a href="southeastern_contacts.html"><span class="style22">South Eastern Railway </span></a>'
menu1[26]='<a href="transpennine_contacts.html"><span class="style22">Trans Pennine Railways</span></a>'
menu1[27]='<a href="virgintrains_contacts.html"><span class="style22">Virgin Trains</span></a>'
menu1[28]='<a href="westcoast_contacts.html"><span class="style22">West Coast Trains</span></a>'
menu1[29]='<a href="contact.html"><span class="style22">Contact Rail Easy / Saver</span></a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="#"></a>'
menu2[1]='<a href="tickets.html"><span class="style22">Book Tickets Online</span></a>'
menu2[2]='<a href="tickettypes.html"><span class="style22">Types Of Train Tickets</span></a>'
menu2[3]='<a href="ticketfares.html"><span class="style22">Find The Cheapest Fare</span></a>'
menu2[4]='<a href="international.html"><span class="style22">International Rail Travel</span></a>'
menu2[5]='<a href="railcard-vs-railpass.html"><span class="style22">Rail Cards vs. Rail Passes</span></a>'
menu2[6]='<a href="pricecheck.html"><span class="style22">Check UK Train Ticket Prices</span></a>'
menu2[7]='<a href="season_tickets.html"><span class="style22">Season Ticket Price Calculator</span></a>'
menu2[8]='<a href="#"></a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="#"></a>'
menu3[1]='<a href="contact.html"><span class="style22">Contact Us</span></a>'
menu3[2]='<a href="stations.html"><span class="style22">Rail Station Information</span></a>'
menu3[3]='<a href="advisory.html"><span class="style22">Current Service Disruptions</span></a>'
menu3[4]='<a href="taxis.html"><span class="style22">Book A Taxi Service Online</span></a>'
menu3[5]='<a href="park-and-ride.html"><span class="style22">Park and Ride Bus Services</span></a>'
menu3[6]='<a href="carhire.html"><span class="style22">Car Hire Price Checker</span></a>'
menu3[7]='<a href="tickets.html"><span class="style22">Book Train Tickets Online</span></a>'
menu3[8]='<a href="#"></a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="#"></a>'
menu4[1]='<a href="arriva.html"><span class="style22">Arriva Trains</span></a>'
menu4[2]='<a href="c2c.html"><span class="style22">c2c Rail</span></a>'
menu4[3]='<a href="centraltrains.html"><span class="style22">Central Trains</span></a>'
menu4[4]='<a href="chilternrailway.html"><span class="style22">Chiltern Railway</span></a>'
menu4[5]='<a href="crosscountry.html"><span class="style22">Cross Country Trains</span></a>'
menu4[6]='<a href="eurostar.html"><span class="style22">Eurostar</span></a>'
menu4[7]='<a href="eastmidlands.html"><span class="style22">East Midlands Trains</span></a>'
menu4[8]='<a href="firstcapitalconnect.html"><span class="style22">First Capital Connect</span></a>'
menu4[9]='<a href="firstgreatwestern.html"><span class="style22">First Great Western</span></a>'
menu4[10]='<a href="firstscotrail.html"><span class="style22">First Scottish Rail</span></a>'
menu4[11]='<a href="gatwickexpress.html"><span class="style22">Gatwick Express</span></a>'
menu4[12]='<a href="gner.html"><span class="style22">GNER Railways</span></a>'
menu4[13]='<a href="northeastern.html"><span class="style22">Great North Eastern Railway </span></a>'
menu4[14]='<a href="heathrowconnect.html"><span class="style22">Heathrow Connect</span></a>'
menu4[15]='<a href="heathrowexpress.html"><span class="style22">Heathrow Express</span></a>'
menu4[16]='<a href="hulltrains.html"><span class="style22">Hull Trains</span></a>'
menu4[17]='<a href="londonmidland.html"><span class="style22">London Midland Express</span></a>'
menu4[18]='<a href="londonmidland.html"><span class="style22">London Midland City</span></a>'
menu4[19]='<a href="merseyrail.html"><span class="style22">Merseyrail Electrics</span></a>'
menu4[20]='<a href="midlandmainline.html"><span class="style22">Midland Main Line</span></a>'
menu4[21]='<a href="northernrail.html"><span class="style22">Northern Rail</span></a>'
menu4[22]='<a href="southernrail.html"><span class="style22">Southern Railway </span></a>'
menu4[23]='<a href="eastcoast.html"><span class="style22">National Express</span></a>'
menu4[24]='<a href="onerail.html"><span class="style22">ONE Rail Network</span></a>'
menu4[25]='<a href="silverlink.html"><span class="style22">Silverlink Train Services</span></a>'
menu4[26]='<a href="southwest.html"><span class="style22">South West Trains</span></a>'
menu4[27]='<a href="southeastern.html"><span class="style22">South Eastern Railway </span></a>'
menu4[28]='<a href="stagecoach.html"><span class="style22">Stagecoach Trains</span></a>'
menu4[29]='<a href="transpennine.html"><span class="style22">Trans Pennine Railways</span></a>'
menu4[30]='<a href="virgintrains.html"><span class="style22">Virgin Trains</span></a>'
menu4[31]='<a href="westcoast.html"><span class="style22">West Coast Trains</span></a>'
menu4[32]='<a href="tickets.html"><span class="style22">Book Train Tickets Online</span></a>'
menu4[33]='<a href="#"></a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="#"></a>'
menu5[1]='<a href="timetables.html"><span class="style22">National Rail Timetables</span></a>'
menu5[2]='<a href="advisory.html"><span class="style22">Current Service Disruptions</span></a>'
menu5[3]='<a href="season_tickets.html"><span class="style22">Season Ticket Price Calculator</span></a>'
menu5[4]='<a href="tickets.html"><span class="style22">Book Train Tickets Online</span></a>'
menu5[5]='<a href="#"></a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="#"></a>'
menu6[1]='<a href="http://www.ferryto.co.uk/"><span class="style22">Ferry Tickets</span></a>'
menu6[2]='<a href="http://holidaydestinations.at/fleetnet" target="_blank"><span class="style22">Airplane Tickets</span></a>'
menu6[3]='<a href="http://clkuk.tradedoubler.com/click?p=8854&a=1562491&g=17319496" target="_blank"><span class="style22">Disneyland Resort Paris</span></a>'
menu6[4]='<a href="http://www.justreservations.co.uk/" target="_blank"><span class="style22">Hotel Accommodation</span></a>'
menu6[5]='<a href="carhire.html"><span class="style22">Compare & Book Hire Cars</span></a>'
menu6[6]='<a href="http://clkuk.tradedoubler.com/click?p=49589&a=1562491&g=16377978" target="_blank"><span class="style22">International Rail Passes</span></a>'
menu6[7]='<a href="http://track.omguk.com/?AID=253&MID=4883&PID=5224&CID=431222&WID=14699" target="_blank"><span class="style22">Eurostar Holidays</span></a>'
menu6[8]='<a href="http://clkuk.tradedoubler.com/click?p=65733&a=1562491&g=17218240" target="_blank"><span class="style22">Coach & Cruise Holidays</span></a>'
menu6[9]='<a href="http://www.airport-parking-shop.co.uk?affiliate=2035" target="_blank"><span class="style22">Airport Parking Reservations</span></a>'
menu6[10]='<a href="http://clkuk.tradedoubler.com/click?p=40244&a=1562491&g=17700268" target="_blank"><span class="style22">DFDS Mini Cruises</span></a>'
menu6[11]='<a href="http://clkuk.tradedoubler.com/click?p=10166&a=1562491&g=16164682" target="_blank"><span class="style22">P&O Ferries & Cruises</span></a>'
menu6[12]='<a href="http://clkuk.tradedoubler.com/click?p=40263&a=1562491&g=16174510" target="_blank"><span class="style22">Rail Europe - Official Site</span></a>'
menu6[13]='<a href="http://www.computicket.co.uk/" target="_blank"><span class="style22">Sports, Events & Concert Tickets</span></a>'
menu6[14]='<a href="http://track.omguk.com/?PID=5223&AID=253&CID=431221&MID=4883&WID=14699" target="_blank"><span class="style22">Eurostar Short Breaks</span></a>'
menu6[15]='<a href="http://www.awin1.com/awclick.php?mid=1238&id=25083" target="_blank"><span class="style22">Lonely Planet Travel Guides</span></a>'
menu6[16]='<a href="tickets.html"><span class="style22">Book Train Tickets Online</span></a>'
menu6[17]='<a href="#"></a>'
		
var menuwidth='125px' //default menu width
var menubgcolor='#FFFFFF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

