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

var fix = 1; var delay = 2000; var modd = 0;
var bar = new menuBar();

bar.addMenu('Home Page');
bar.addItem('http://www.theangelfishsociety.org/index.html','Home');
bar.addMenu('About Angelfish');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
bar.addItem('http://www.theangelfishsociety.org/articles/norton/index.html','Dr. Nortons Articles');
bar.addItem('http://www.theangelfishsociety.org/standards(new).html','Standards');
bar.addItem('http://www.theangelfishsociety.org/photocontest/mainphotocontest.html','Photo Contest');
bar.addItem('http://www.theangelfishsociety.org/winnersgallerynew.html','Photo Winners Gallery');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
bar.addItem('http://www.theangelfishsociety.org/PresentationsTASNew.html','Meeting Presentations');
bar.addItem('http://www.theangelfishsociety.org/phenotype_library_2007/NewIndex.html','2007 Phenotypes Library');
bar.addItem('http://www.theangelfishsociety.org/phenotypes/index.htm','Original Phenotypes Library');
bar.addMenu('Who We Are');
bar.addItem('http://www.theangelfishsociety.org/disclaimer.html','Legal Disclaimer');
bar.addItem('http://theangelfishsociety.org/nyinc.html','Incorporation');
bar.addItem('http://www.theangelfishsociety.org/bylawsNew.html','By-Laws');
bar.addItem('http://www.theangelfishsociety.org/currentbod.html','Governance');
bar.addItem('http://www.theangelfishsociety.org/join_tas.html','Become A TAS Member');
bar.addItem('http://www.theangelfishsociety.org/meetings(New).html','2010 Meeting Schedules');
bar.addItem('http://www.theangelfishsociety.org/members_websites.html','Members Sites');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
bar.addMenu('Member Services');
bar.addItem('http://www.theangelfishsociety.org/membershipagreement(New).html','Membership Agreement');
bar.addItem('http://www.theangelfishsociety.org/members/privacyweb.html','Privacy');
bar.addItem('http://www.theangelfishsociety.org/chat','TAS Chat Room');
bar.addItem('http://www.theangelfishsociety.org/members/photocontest/2010/Marchphotocontestentries2010.html','Current Photo Contest Entries - Vote Here');
bar.addItem('http://www.theangelfishsociety.org/tas/index.php','TAS Official Forum');
bar.addItem('http://www.theangelfishsociety.org/newsletters/newsletterNew.html','FinTAStic News Letter');
bar.addItem('http://www.theangelfishsociety.org/flyer(New).html','Advertizing Flyer');
bar.addItem('http://www.theangelfishsociety.org/newslettercommitteeawards.html','Awards');
bar.addItem('http://www.angelfish.net/VBulletin/index.php','TAFII Forum');
bar.addItem('http://www.theangelfishsociety.org/ArchivedHomePage/index.html','Old Website');
bar.addItem('http://www.theangelfishsociety.org/members/as_calculator(New).html','Genetics Calculator');
bar.addItem('http://www.theangelfishsociety.org/members/gcguide.html','Calculator Guide');
bar.addItem('http://www.theangelfishsociety.org/members/Underconstruction/Newgc.html','Member Tools');
bar.addItem('http://www.theangelfishsociety.org/members/memberslistNew.html','Members List');
bar.addItem('http://www.theangelfishsociety.org/specials(New).html','Member Specials');
bar.addItem('http://www.theangelfishsociety.org/members/memberlinkinfo/index.html','Link Your Website to TAS');
// bar.addItem('Add_link_here.htm','Add Dispay Name Here');
bar.addMenu('Contact Us');
bar.addItem('mailto:tas_president@theangelfishsociety.org','President');
bar.addItem('mailto:treasurer@theangelfishsociety.org','Treasurer');
bar.addItem('mailto:tas_secretary@theangelfishsociety.org','Secretary');
bar.addItem('mailto:tas_bod@theangelfishsociety.org','Board Of Directors');
bar.addItem('mailto:standardscommittee@theangelfishsociety.org','Standards Committee');
bar.addItem('mailto:photocommittee@theangelfishsociety.org','Photo Contest Committee');
bar.addItem('mailto:newslettercommittee@theangelfishsociety.org','News Letter Committee');
bar.addItem('mailto:webmasters@theangelfishsociety.org','Web Team');
bar.addMenu('Members Log In');
bar.addItem('http://www.theangelfishsociety.org/members/index(New).html','Log In');
bar.addItem('http://www.theangelfishsociety.org/cgi-bin/user_center.cgi?user_center=1&group_id=1','Forgotten Password');
bar.addItem('http://www.theangelfishsociety.org/WelcomePage.html','Login Problems?');

// do not change anything below this line
var blc = '#010066';var blh = '#ffffff';var bla = '#010066';var lc = '#ffffff';var lh = '#010066';var la = '#ffffff';
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);}