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


// menu 1 TOP NAV / HOME
var menux1=new Array()


// menu 2 BOTTOM NAV / FACIAL SURGERY
// var menux2=new Array()
// menux2[0]='<div style="width:190px; padding-top:2px;><a href="fcs_foreheadmain.htm">Brow Lift (forehead lift)</a></div>'
// menux2[1]='<div style="width:190px"><a href="fcs_cheekmain.htm">Cheek Implant</a></div>'
// menux2[2]='<div style="width:190px"><a href="fcs_chempeel.htm">Chemical Peel</a></div>'
// menux2[3]='<div style="width:190px"><a href="fcs_chinmain.htm">Chin Implant</a></div>'
// menux2[4]='<div style="width:190px"><a href="fcs_earmain.htm">Ear Repositioning (otoplasty)</a></div>'
// menux2[5]='<div style="width:190px"><a href="fcs_eyelidmain.htm">Eyelid Surgery (blepharoplasty)</a></div>'
// menux2[6]='<div style="width:190px"><a href="fcs_faceliftmain.htm">Facelift (rhytidectomy)</a></div>'
// menux2[7]='<div style="width:190px"><a href="fcs_miniliftmain.htm">K-Lift (cheek)</a></div>'
// menux2[8]='<div style="width:190px"><a href="fcs_lasermain.htm">Laser Skin Resurfacing</a></div>'
// menux2[9]='<div style="width:190px"><a href="fcs_lipsmain.htm">Lip Augmentation</a></div>'
// menux2[10]='<div style="width:190px"><a href="fcs_lipofaceneck.htm">Liposuction Face/Neck</a></div>'
// menux2[11]='<div style="width:190px"><a href="fcs_midcheekmain.htm">Mid-cheek Lift</a></div>'
// menux2[12]='<div style="width:190px"><a href="fcs_neckmain.htm">Neck Lift</a></div>'
// menux2[13]='<div style="width:190px"><a href="fcs_nasalmain.htm">Nasal Surgery</a></div>'
// menux2[14]='<div style="width:190px"><a href="fcs_submentoplasty.htm">Submentoplasty</a></div>'
// menux2[12]='<div style="width:190px"><a href="fcs_miniliftmain.htm">Mini-Lift (Cheek Lift)</a></div>'

// menu 2 BOTTOM NAV / FACIAL SURGERY
var menux2=new Array()
menux2[0]='<div style="width:250px; padding-top:2px; font-size: small;"><a href="fcs_nasalmain.htm">Nose Surgery (Rhinoplasty)</a></div>'
menux2[1]='<div style="width:250px; font-size: small;"><a href="fcs_faceliftmain.htm">Face Rejuvenation Surgery</a></div>'
menux2[2]='<div style="width:250px; font-size: small;"><a href="fcs_faceliftmain.htm">&nbsp;&nbsp;&nbsp;Facelift surgery</a></div>'
menux2[3]='<div style="width:250px; font-size: small;"><a href="fcs_miniliftmain.htm">&nbsp;&nbsp;&nbsp;K-Lift (Minilift)</a></div>'
menux2[4]='<div style="width:250px; font-size: small;"><a href="fcs_neckmain.htm">&nbsp;&nbsp;&nbsp;Neck Lift</a></div>'
menux2[5]='<div style="width:250px; font-size: small;"><a href="fcs_eyelidmain.htm">&nbsp;&nbsp;&nbsp;Eyelid surgery (Blepharoplasty)</a></div>'
menux2[6]='<div style="width:250px; font-size: small;"><a href="fcs_foreheadmain.htm">&nbsp;&nbsp;&nbsp;Brow Lift (Forehead Lift)</a></div>'
menux2[7]='<div style="width:250px; font-size: small;"><a href="fcs_midcheekmain.htm">&nbsp;&nbsp;&nbsp;Mid-Cheek Lift</a></div>'
menux2[8]='<div style="width:250px; font-size: small;"><a href="fcs_lasermain.htm">Skin Resurfacing</a></div>'
menux2[9]='<div style="width:250px; font-size: small;"><a href="fcs_cheekmain.htm">Cheek Implant</a></div>'
menux2[10]='<div style="width:250px; font-size: small;"><a href="fcs_earmain.htm">Ear Repositioning (Otoplasty)</a></div>'


// menu 3 TOP NAV / BODY LIPO
var menux3=new Array()
menux3[0]='<div style="width:123px; padding-top:2px;"><a href="HTTP://WWW.BODYLIPO.COM">WWW.BODYLIPO.COM</a></div>'

// menu 4 TOP NAV / MEDI SPA
// var menux4=new Array()
// menux4[0]='<div style="width:143px; font-size: small; padding-top:2px;"><a href="botox.htm">Botox Cosmetic</a></div>'
// menux4[1]='<div style="width:143px; font-size: small;"><a href="facials.htm">Facials</a></div>'
// menux4[1]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Fillers</a></div>'
// menux4[2]='<div style="width:143px; font-size: small;"><a href="microderm_and_glycolicacidpeels.htm">Glyvcolic Acid Peels</a></div>'
// menux4[3]='<div style="width:143px; font-size: small;"><a href="ipl.htm">IPL, Photofacial</a></div>'
// menux4[4]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Juvederm</a></div>'
// menux4[5]='<div style="width:143px; font-size: small;"><a href="laserhair.htm">Laser Hair Reduction</a></div>'
// menux4[6]='<div style="width:143px; font-size: small;"><a href="microderm_and_glycolicacidpeels.htm">Microdermabrasion</a></div>'
// menux4[7]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Perlane</a></div>'
// menux4[8]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Radiesse</a></div>'
// menux4[9]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Restylane</a></div>'
// menux4[10]='<div style="width:143px"><a href="thermage.htm">Thermage</a></div>'

// menu 4 TOP NAV / MEDI SPA
var menux4=new Array()
menux4[0]='<div style="width:143px; font-size: small; padding-top:2px;"><a href="botox.htm">Botox Cosmetic</a></div>'
menux4[1]='<div style="width:143px; font-size: small;; font-size: small;"><a href="dysport.htm">Dysport</a></div>'
menux4[2]='<div style="width:143px; font-size: small;"><a href="latisse.htm">Latisse</a></div>'
menux4[3]='<div style="width:143px; font-size: small;"><a href="juvederm.htm">Juvederm Ultra</a></div>'
menux4[4]='<div style="width:143px; font-size: small;"><a href="perlane.htm">Restylane/Perlane</a></div>'
menux4[5]='<div style="width:143px; font-size: small;"><a href="radiesse.htm">Radiesse</a></div>'
menux4[6]='<div style="width:143px; font-size: small;"><a href="ipl.htm">IPL Photofacial</a></div>'
menux4[7]='<div style="width:143px; font-size: small;"><a href="fillersmain.htm">Thermage</a></div>'
menux4[8]='<div style="width:143px; font-size: small;"><a href="microderm_and_glycolicacidpeels.htm">Glycolic Peels</a></div>'
menux4[9]='<div style="width:143px; font-size: small;"><a href="microderm_and_glycolicacidpeels.htm">Microdermabrasion</a></div>'






// menu 5 TOP NAV / PHOTO GALLERY
// var menux5=new Array()
// menux5[0]='<div style="width:190px; padding-top:2px;"><a href="bna_botox.htm">Botox</a></div>'
// menux5[1]='<div style="width:190px"><a href="forehead2.htm">Brow Lift (forehead lift)</a></div>'
// menux5[2]='<div style="width:190px"><a href="bna_cheekaug.htm">Cheek Implant</a></div>'
// menux5[3]='<div style="width:190px"><a href="bna_chempeel.htm">Chemical Peel</a></div>'
// menux5[4]='<div style="width:190px"><a href="chin6.htm">Chin Implant</a></div>'
// menux5[5]='<div style="width:190px"><a href="ears4.htm">Ears (Otoplasty)</a></div>'
// menux5[6]='<div style="width:190px"><a href="bna_eyelids.htm">Eyelid Surgery (blepharoplasty)</a></div>'
// menux5[7]='<div style="width:190px"><a href="facelift1.htm">Facelift (rhytidectomy)</a></div>'
// menux5[8]='<div style="width:190px"><a href="bna_fillers.htm">Fillers</a></div>'
// menux5[9]='<div style="width:190px"><a href="bna_ipl.htm">IPL, Photofacial</a></div>'
// menux5[10]='<div style="width:190px"><a href="klift4.htm">K-Lift</a></div>'
// menux5[11]='<div style="width:190px"><a href="laser2.htm">Laser Resurfacing</a></div>'
// menux5[12]='<div style="width:190px"><a href="lipofaceneck1.htm">Liposuction face/neck</a></div>'
// menux5[13]='<div style="width:190px"><a href="bna_lips.htm">Lips</a></div>'
// menux5[14]='<div style="width:190px"><a href="bna_midcheek.htm">Mid-cheek Lift</a></div>'
// menux5[15]='<div style="width:190px"><a href="bna_necklift.htm">Neck Lift</a></div>'
// menux5[16]='<div style="width:190px"><a href="bna_fillers.htm">Radiesse</a></div>'
// menux5[17]='<div style="width:190px"><a href="bna_fillers.htm">Restylane/Juvederm</a></div>'
// menux5[18]='<div style="width:190px"><a href="nasal7.htm">Rhinoplasty (nose job)</a></div>'
// menux5[18]='<div style="width:190px"><a href="bna_submentoplasty.htm">Submentoplasty</a></div>'
// menux5[19]='<div style="width:190px"><a href="bna_thermage.htm">Thermage</a></div>'

// menu 5 TOP NAV / PHOTO GALLERY
var menux5=new Array()
menux5[0]='<div style="width:250px; font-size: small; padding-top:2px;"><a href="nasal7.htm">Nose Surgery (Rhinoplasty)</a></div>'
menux5[1]='<div style="width:250px; font-size: small;"><a href="">Face Rejuvenation Surgery</a></div>'
menux5[2]='<div style="width:250px; font-size: small;"><a href="facelift1.htm">&nbsp;&nbsp;&nbsp;Facelift surgery</a></div>'
menux5[3]='<div style="width:250px; font-size: small;"><a href="klift4.htm">&nbsp;&nbsp;&nbsp;K-Lift (Minilift)</a></div>'
menux5[4]='<div style="width:250px; font-size: small;"><a href="bna_necklift.htm">&nbsp;&nbsp;&nbsp;Neck Lift</a></div>'
menux5[5]='<div style="width:250px; font-size: small;"><a href="bna_eyelids.htm">&nbsp;&nbsp;&nbsp;Eyelid surgery (Blepharoplasty)</a></div>'
menux5[6]='<div style="width:250px; font-size: small;"><a href="forehead2.htm">&nbsp;&nbsp;&nbsp;Brow Lift (Forehead Lift)</a></div>'
menux5[7]='<div style="width:250px; font-size: small;"><a href="bna_midcheek.htm">&nbsp;&nbsp;&nbsp;Mid-Cheek Lift</a></div>'
menux5[8]='<div style="width:250px; font-size: small;"><a href="bna_botox.htm">Botox Cosmetic/Dysport</a></div>'
menux5[9]='<div style="width:250px; font-size: small;"><a href="bna_fillers.htm">Filler</a></div>'
menux5[10]='<div style="width:250px; font-size: small;"><a href="bna_ipl.htm">IPL Photofacial</a></div>'
menux5[11]='<div style="width:250px; font-size: small;"><a href="laser2.htm">Skin Resurfacing</a></div>'
menux5[12]='<div style="width:250px; font-size: small;"><a href="chin6.htm">Chin Implant</a></div>'
menux5[13]='<div style="width:250px; font-size: small;"><a href="bna_cheekaug.htm">Cheek Implant</a></div>'
menux5[14]='<div style="width:250px; font-size: small;"><a href="ears4.htm">Ear Repositioning (Otoplasty)</a></div>'
menux5[15]='<div style="width:250px; font-size: small;"><a href="bna_thermage.htm">Thermage</a></div>'
menux5[16]='<div style="width:250px; font-size: small;"><a href="bna_fillers.htm">Restylane/Juvederm Ultra</a></div>'
menux5[17]='<div style="width:250px; font-size: small;"><a href="bna_fillers.htm">Radiesse</a></div>'









// menu 6 TOP NAV / ABOUT US
var menux6=new Array()
menux6[0]='<div style="width:165px; font-size: small; padding-top:2px;"><a href="consultation.htm">Consultation</a></div>'
menux6[1]='<div style="width:165px; font-size: small;"><a href="consultation.htm">Scheduling Surgery</a></div>'
menux6[2]='<div style="width:165px; font-size: small;"><a href="consultation.htm">The Day of Surgery</a></div>'
menux6[3]='<div style="width:165px; font-size: small;"><a href="financing.htm">Financing</a></div>'

// menu 7 TOP NAV / MEET DR. KANIFF
var menux7=new Array()



var menuwidth=''
var menubgcolor='transparent'
var disappeardelay=500 
var hidemenu_onclick="yes" 

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

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

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

if (ie4||ns6)
document.write('<div id="menudiv" 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("menudiv") : menudiv
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
