/*
Copyright 2010-18 (c) AdTechSolutions Solutions, Jharkhand, India. All Rights Reserved.
*/
var about=new Array()
about[0]='<a href="aboutaloe_page1.php">ABOUT FLP COMPANY</a>'
about[1]='<a href="aboutaloe_page2.php">ABOUT ALOE VERA</a>'
about[2]='<a href="aboutaloe_page3.php">WHY FLP ALOE VERA</a>'

var plans=new Array()
plans[0]='<a href="marketplans_page1.php">INTRODUCTION</a>'
plans[1]='<a href="marketplans_page2.php">POSITIONS & LEVELS</a>'
plans[2]='<a href="marketplans_page3.php">BONUS & INCENTIVES</a>'
plans[3]='<a href="marketplans_page4.php">MARKET STRUCTURE</a>'

var products=new Array()
products[0]='<a href="aloedrink.php">ALOE DRINKS</a>'
products[1]='<a href="beeproducts.php">BEE PRODUCTS</a>'
products[2]='<a href="nutritional.php">NUTRITIONAL PRODUCTS</a>'
products[3]='<a href="personalcare.php">PERSONAL CARE</a>'
products[4]='<a href="skincare.php">SKIN CARE</a>'
products[5]='<a href="sonya.php">SONYA COSMETICS</a>'
products[6]='<a href="combo.php">COMBO PACKS</a>'
products[7]='<a href="weightmngt.php">WEIGHT MANAGEMENT</a>'
products[8]='<a href="howtobuy.php">HOW TO SHOP</a>'

var menuwidth='165px' 
var menubgcolor='#F6F6F6' 
var disappeardelay=100 
var hidemenu_onclick="yes" 

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="davem" 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)
AdTechSolutionsobj.style.left=AdTechSolutionsobj.style.top="-500px"
if (menuwidth!=""){
AdTechSolutionsobj.widthobj=AdTechSolutionsobj.style
AdTechSolutionsobj.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 flpdistributor(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function aloevera(obj, whichedge){
var celoo=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? flpdistributor().scrollLeft+flpdistributor().clientWidth-15 : window.pageXOffset+window.innerWidth-15
AdTechSolutionsobj.contentmeasure=AdTechSolutionsobj.offsetWidth
if (windowedge-AdTechSolutionsobj.x < AdTechSolutionsobj.contentmeasure)
celoo=AdTechSolutionsobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? flpdistributor().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? flpdistributor().scrollTop+flpdistributor().clientHeight-15 : window.pageYOffset+window.innerHeight-18
AdTechSolutionsobj.contentmeasure=AdTechSolutionsobj.offsetHeight
if (windowedge-AdTechSolutionsobj.y < AdTechSolutionsobj.contentmeasure){ 
celoo=AdTechSolutionsobj.contentmeasure+obj.offsetHeight
if ((AdTechSolutionsobj.y-topedge)<AdTechSolutionsobj.contentmeasure) 
celoo=AdTechSolutionsobj.y+obj.offsetHeight-topedge
}
}
return celoo
}

function populatemenu(what){
if (ie4||ns6)
AdTechSolutionsobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
AdTechSolutionsobj=document.getElementById? document.getElementById("davem") : davem
populatemenu(menucontents)

if (ie4||ns6){
showhide(AdTechSolutionsobj.style, e, "visible", "hidden", menuwidth)
AdTechSolutionsobj.x=getposOffset(obj, "left")
AdTechSolutionsobj.y=getposOffset(obj, "top")
AdTechSolutionsobj.style.left=AdTechSolutionsobj.x-aloevera(obj, "rightedge")+"px"
AdTechSolutionsobj.style.top=AdTechSolutionsobj.y-aloevera(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&&!AdTechSolutionsobj.contains(e.toElement))
flpIndia()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
flpIndia()
}

function hidemenu(e){
if (typeof AdTechSolutionsobj!="undefined"){
if (ie4||ns6)
AdTechSolutionsobj.style.visibility="hidden"
}
}

function flpIndia(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

