// Drop Bown Menu - Head Script
// copyright Stephen Chapman, 4th March 2005, 5th February 2006
// you may copy this menu provided that you retain the copyright notice

var fix = 0; var delay = 2000; var modd = 0;
var bar = new menuBar();
bar.addMenu('Finance');
bar.addItem('Finance-Bank Log In.htm','Bank Log-In Pages');
bar.addMenu('Utilities');
bar.addItem('Utility-Gas Log In.htm','Gas & Electric Log-In');
bar.addItem('Utility-Water Log In.htm','Water Co Log-In');
bar.addMenu('Sports');
bar.addItem('Sport-General Sports Pages.htm','All Sports/Olympics');
bar.addItem('Sport-Cricket.htm','Cricket');
bar.addItem('Sport-Equestrian.htm','Equestrian');
bar.addItem('Sport-Football.htm','Football');
bar.addItem('Sport-Formula 1.htm','Formula 1');
bar.addItem('Sport-Golf.htm','Golf');
bar.addItem('Sport-Horse Racing.htm','Horse Racing');
bar.addItem('Sport-Rugby.htm','Rugby Union');
bar.addItem('Sport-Rugby League.htm','Rugby League');
bar.addItem('Sport-Tennis.htm','Tennis');
bar.addMenu('Shops & Discounts');
bar.addItem('Retailers A-Z.htm','Retailers A-Z');
bar.addItem('Retailers by Type.htm','Retailers by Product');
bar.addMenu('Radio-TV ');
bar.addItem('R-TV-Listen To Radio.htm','Listen to Radio');
bar.addItem('R-TV Stations.htm','TV Stations');
bar.addItem('R-TV Listings.htm','TV Listings');
bar.addItem('R-TV-Watch TV.htm','Watch TV');
bar.addMenu('Reference');
bar.addItem('Ref_Address_Postcode.htm','Address/Postcodes/PhoneBooks');
bar.addItem('Ref_Consumer Advice.htm','Consumer Advice');
bar.addItem('Ref_Crime Prevention.htm','Crime Prevention');
bar.addItem('Ref_Dictionaries.htm','Dictionaries/Quotes/Biographies');
bar.addItem('Ref_Encyclopaedias.htm','Encylopaedias/Almanacs/Trivia');
bar.addItem('Ref_General Useful Information.htm','General Useful Info.');
bar.addItem('Ref_Government.htm','Government');
bar.addItem('Ref_Health.htm','Health');
bar.addItem('Ref_Property.htm','Property');
bar.addMenu('Travel');
bar.addItem('Travel_Accomodation_Hotels_B&B_Family Holidays.htm','Accommodation/Hotels/B&B/Family');
bar.addItem('Travel_Airlines.htm','Airlines');
bar.addItem('Travel_Airport_Flight_Info.htm','UK Airports Arr/Dep Info');
bar.addItem('Travel_Car_Hire_Parking.htm','Car Hire/Airport Parking');
bar.addItem('Travel_Ferries.htm','Ferries/Cruise Lines');
bar.addItem('Travel_Trains_Buses.htm','Trains/Bus');
bar.addItem('Travel_Useful_Travel_Sites.htm','Useful Travel Sites');
bar.addMenu('Fun');
bar.addItem('Fun_Addictive Games.htm','Addictive Games');
bar.addItem('Fun_Backgammon.htm','Backgammon');
bar.addItem('Fun_Bridge.htm','Bridge');
bar.addItem('Fun_Bingo.htm','Bingo');
bar.addItem('Fun_Bookmakers.htm','Bookmakers');
bar.addItem('Fun_Casinos.htm','Casinos');
bar.addItem('Fun_Crosswords.htm','Crosswords');
bar.addItem('Fun_Mah-jong.htm','Mah-jong');
bar.addItem('Fun_Sudoku.htm','Sudoku');
bar.addItem('Fun_Tetris.htm','Tetris');
bar.addItem('Fun_Variety of Puzzles.htm','Variety of Puzzles');
bar.addItem('Fun_Word Games.htm','Word Games');
bar.addMenu('Hobbies');
bar.addItem('Hobby-Bird Watching.htm','Bird Watching');
bar.addItem('Hobby-Dogs.htm','Dogs');
bar.addItem('Hobby-Fishkeeping.htm','Fishkeeping');
bar.addItem('Hobby-Gardening.htm','Gardening');
bar.addItem('Hobby-Genealogy.htm','Genealogy');
bar.addItem('Hobby-Horses.htm','Horses');
bar.addItem('Hobby-Painting.htm','Painting');
bar.addItem('Hobby-Paper Crafts.htm','Paper Crafts');
bar.addItem('Hobby-Sewing.htm','Sewing - Needlecraft');
bar.addItem('Hobby-Walking.htm','Walking');
bar.addMenu('Email-Search');
bar.addItem('ES-Email.htm','Email Log In');
bar.addItem('ES-Search.htm','Search Engines');
bar.addMenu('Social Net');
bar.addItem('SN-Social.htm','Social Networking');
bar.addItem('SN-Dating.htm','Dating');
bar.addMenu('News');
bar.addItem('News-Newspaper.htm','Newspapers');
bar.addItem('News-Magazines.htm','Magazines');
bar.addItem('News Latest World News.htm','World News Feed');
bar.addItem('News Latest UK News.htm','Latest UK News Feed');
bar.addMenu('Entertainment');
bar.addItem('Ent-Cinema.htm','Cinema Listings');
bar.addItem('Ent-Theatres.htm','Theatres');
bar.addItem('Ent-Music.htm','Music');

// do not change anything below this line
var blc = '#e5e5e5';var blh = '#cf152d';var bla = '#e5e5e5';var lc = '#00247d';var lh = '#cf152d';var la = '#00247d';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}