// 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

if (document.images) {
teston = new Image(); // Active images
teston.src = "logo5.jpg";

testoff = new Image(); // Inactive images
testoff.src = "logo4.gif";
}

function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}


var fix = 1; var delay = 2000; var modd = 0;
var bar = new menuBar();
bar.addMenu('General Information');
bar.addItem('meetus.htm','Meet The Staff');
bar.addItem('mailto:drgeller@westchestersmiles.com','Contact Us');
bar.addItem('financia.htm','Office Policies');
bar.addItem('news.htm','Tour Our Office');
bar.addItem('feedback.htm','Insurance Data Form');
bar.addItem('http://maps.yahoo.com/map?q1=280%20Mamaroneck%20Avenue%20White%20Plains,%20NY%2010605%20us&mag=5&ard=1#mvt=m&lat=41.025957&lon=-73.763988&mag=3&q1=280%20Mamaroneck%20Avenue%20White%20Plains%2C%20NY%2010605%20us','Location & Directions');
bar.addItem('health_history.htm','Medical History Form');
bar.addItem('payment.htm','Credit Card Payment');
bar.addItem('readfile.htm','Look-up Next Appointment ');
bar.addMenu('Latest Technologies');
bar.addItem('Invisali.htm','Invisable Orthodontics');
bar.addItem('implant.htm','Dental Implants');
bar.addItem('Denoptix.htm','Digital X-rays');
bar.addItem('airabrasion.htm','Air Abrasion');
bar.addMenu('Cosmetic Services');
bar.addItem('bleaching.htm','Whitening');
bar.addItem('photo.htm','Photo Gallery');
bar.addItem('laminates.htm','Porcelain Laminates');
bar.addItem('bonding.htm','Bonding');
bar.addItem('resins.htm','Tooth-colored fillings');
bar.addMenu('Clinical Topics');
bar.addItem('tmj.htm','TMJ');
bar.addItem('rootcana.htm','Root Canals');
bar.addItem('bridges.htm','Bridges');
bar.addItem('crowns.htm','Crowns');
bar.addItem('dentures.htm','Dentures');
bar.addItem('gum.htm','Gum Disease');
bar.addItem('sealants.htm','Sealants');
bar.addItem('options.htm','Dental Material Options');
bar.addItem('postop.htm','Post-op Instructions');
bar.addItem('fluoride.htm','Fluoride');
bar.addMenu('Fact Sheets');
bar.addItem('FlossingFS.pdf','Flossing');
bar.addItem('FS_DryMouth2.pdf','Dry Mouth');
bar.addItem('FS_DentalSealants.pdf','Sealants');
bar.addItem('FS_CosmeticDentistry.pdf','Cosmetic Dentistry');
bar.addItem('FS_Halitosis.pdf','Halitosis');
bar.addItem('FS_MinimallyInvasiveDentistry.pdf','Minimally Invasive Dentistry');
bar.addItem('FS_OralHygiene.pdf','Oral Hygiene');
bar.addItem('FS_Nutrition.pdf','Nutrition');
bar.addItem('FS_Pregnancy.pdf','Pregnancy');
bar.addItem('FS_SensitiveTeeth.pdf','Sensitive Teeth');
bar.addItem('FS_MouthRinses.pdf','Mouth Rinses');
bar.addItem('FS_MouthSores.pdf','Mouth Sores');
bar.addItem('FS_SleepApnea.pdf','Sleep Apnea');
bar.addItem('FS_ToothDecay.pdf','Tooth Decay');
bar.addItem('FS_ToothErosion.pdf','Tooth Erosion');
bar.addItem('Pediatric_FS.pdf','Pediatric Dentistry');
bar.addItem('TeensFS.pdf','Teen Dentistry');
bar.addItem('FS_CancerCare.pdf','Cancer Care');
bar.addItem('FS_DentalEmergency.pdf','Dental Emergencies');
// do not change anything below this line
var blc = '#663300';var blh = '#ffffff';var bla = '#996633';var lc = '#cccccc';var lh = '#996633';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);}
