﻿if (window.top.document.URL.toLowerCase()=="www.informaebenessere.com" || window.top.document.URL.toLowerCase()=="www.informaebenessere.com/" || window.top.document.URL.toLowerCase()=="http://www.informaebenessere.com" || window.top.document.URL.toLowerCase()=="http://www.informaebenessere.com/") {}
else{
//window.top.location.replace("http://www.informaebenessere.com")
}

bw=window.navigator.appName.toString()

function setSize() {
try {
document.getElementById("menu").style.fontSize="9pt"
document.getElementById("menuS").style.fontSize="9pt"
return
}
catch(e) {
setTimeout("setSize()",500)
return
}
}

setTimeout("setSize()",500)

function seq(l,c,r,n) {
stringa=""
if (l=="null") {}else{
stringa=stringa+"<a href='"+l+"'><img src='i/arrowLeft.gif' style='border: none' align='absmiddle' /></a>"
}
stringa=stringa+"&nbsp;<b>Pagina "+c+" di "+n+"</b>&nbsp;"
if (r=="null") {}else{
stringa=stringa+"<a href='"+r+"'><img src='i/arrowRight.gif' style='border: none' align='absmiddle' /></a>"
}
document.getElementById("sequence").innerHTML=stringa
}

setTimeout(function(){
window.top.document.body.scrollTop=0
},500)

menuStat=false

function pluginMessage() {
bw=window.navigator.appName
if (bw.toLowerCase().match("microsoft")) {
document.getElementById("pluginSpan").style.visibility="hidden"
}else{
document.getElementById("pluginText").innerHTML="Se non vedi il filmato clicca qui<br />per scaricare il plug-in per il tuo browser"
}
}

function videoLink(s) {
document.getElementById("videoPlayer").innerHTML="<br /><br /><br /><br /><br /><span class='testoBlack'><b>Attendere prego...</b></span><br /><br /><img src='i/wait1.gif' />"
setTimeout(function() {
document.getElementById("videoPlayer").innerHTML="<object type='video/x-ms-wmv' style='width: 320px; height: 240px' data='video/"+s+".wmv'><param name='src' value='video/"+s+".wmv' /><param name='autostart' value='1' /><param name='controller' value='0' /><param name='ShowStatusBar' value='1' /><param name='ShowControls' value='false' /></object>"
},1000)
}

function foc(i) {
document.getElementById(i).focus()
}

menus=new Array(5)
menus[0]="azienda.14.Introduzionehtm.Il mercatohtm.Comitato consultivo<br \/>Herbalife<br \/>htm.I Video Herbalifehtm.Il socialehtm"
menus[1]="prodotti.205.Prodotti basehtm.Programmi nutrizionalihtm.Snack e drink proteicihtm.Integratori di supportohtm.Vitalit&agrave; & fitnesshtm.Integratori specificihtm.Nutrizione esternahtm.Modulo d'ordine prodottihtm.Garanziahtm"
//menus[2]="lavoro.424.Lavorare con noihtm.L'investimento inizialehtm.Diventare supervisorehtm.Modulo richiesta informazionihtm"
menus[2]="utilita.3.Acquisti/Spedizionihtm.Guida sui prodottihtm.Risparmia il 25%htm.Uso dei prodottihtm.Ricettehtm"
menus[3]="novita.8.DVD Gratuitohtm.Herbalife Sponsorhtm"
menus[4]="utilit1.190.Acquisti/Spedizionihtm.Guida sui prodottihtm.Risparmia il 25%htm"
menus[5]="novit1.490.DVD Gratuitohtm.Herbalife Sponsorhtm"

function menuOn() {
menuStat=true
}

function menuOff() {
menuStat=false
}

function menu(it,l) {
menuStat=true

for (k=0; k<=menus.length-1; k++)
{
if (menus[k].match(it)) {
datiMenu=menus[k].split(".")

document.getElementById("menu").style.left=datiMenu[1]+"px"
document.getElementById("menu").style.height="1px"
document.getElementById("menu").style.visibility="visible"
document.getElementById("menu").style.filter="alpha(opacity=0)"
document.getElementById("menu").style.opacity="0"
document.getElementById("menuS").style.left=(parseInt(datiMenu[1],10)+14)+"px"
document.getElementById("menuS").style.height="1px"
document.getElementById("menuS").style.visibility="visible"
document.getElementById("menuS").style.filter="alpha(opacity=0)"
document.getElementById("menuS").style.opacity="0"
op=0
menuH=0

stringa=""

for (k1=2; k1<=datiMenu.length-1; k1++) {
voce=datiMenu[k1].toLowerCase()
do {voce=voce.replace(" ","")}while(voce.match(" "))
do {voce=voce.replace("'","")}while(voce.match("'"))
do {voce=voce.replace("%","")}while(voce.match("%"))
do {voce=voce.replace("/","")}while(voce.match("/"))

do {voce=voce.replace("&agrave;","a")}while(voce.match("&agrave;"))
do {voce=voce.replace("&egrave;","e")}while(voce.match("&egrave;"))
do {voce=voce.replace("&igrave;","i")}while(voce.match("&igrave;"))
do {voce=voce.replace("&ograve;","o")}while(voce.match("&ograve;"))
do {voce=voce.replace("&ugrave;","u")}while(voce.match("&ugrave;"))

do {voce=voce.replace("&","")}while(voce.match("&"))

document.getElementById("menu").style.backgroundColor="Transparent"
document.getElementById("menu").style.border="solid 1px black"
document.getElementById("menu").style.backgroundImage="url(i/bkg1x.gif)"
document.getElementById("menuS").style.backgroundColor="Black"
document.getElementById("menuS").style.border="none"

corr=0
if (voce.match("br")) {
corr=25
menuH=menuH+10
}
else
{corr=15}

voce=voce.replace("<","")
voce=voce.replace("br","")
voce=voce.replace(" ","")
voce=voce.replace("/","")
voce=voce.replace(">","")
voce=voce.replace("<","")
voce=voce.replace("br","")
voce=voce.replace(" ","")
voce=voce.replace("/","")
voce=voce.replace(">","")


if (voce.match("htm"))  {
stringa=stringa+"&nbsp;<div style='width: 170px; height: "+corr+"px; position: relative'><a href='_"+voce.replace("htm",".htm")+"' style='color: blue' id='link"+k1+"' onmouseover=\"document.getElementById('link"+k1+"').style.color='red'\" onmouseout=\"document.getElementById('link"+k1+"').style.color='blue'\">"+datiMenu[k1].replace("htm","")+"</a></div>&nbsp;"
menuH=menuH+27
}else{
stringa=stringa+"&nbsp;<div style='width: 170px; height: "+corr+"px; position: relative'><a href='_"+voce.replace("aspx",".aspx")+"' style='color: blue' id='link"+k1+"' onmouseover=\"document.getElementById('link"+k1+"').style.color='red'\" onmouseout=\"document.getElementById('link"+k1+"').style.color='blue'\">"+datiMenu[k1].replace("aspx","")+"</a></div>&nbsp;"
menuH=menuH+27
}
}
stringa1=stringa
do {stringa1=stringa1.replace("bkg1","bkgS")} while (stringa1.match("bkg1"))
do {stringa1=stringa1.replace("id=","di=")}while(stringa1.match("id="))
do {stringa1=stringa1.replace("color: blue","color: black")}while(stringa1.match("color: blue"))

if (bw.toLowerCase().match("netscape")) {
offset=26
document.getElementById("menu").innerHTML=stringa+"<br />"

document.getElementById("menuS").innerHTML=stringa1+"<br />"
}else{
offset=14
}
document.getElementById("menu").innerHTML=stringa+"<br />"
document.getElementById("menu").style.height=(menuH+offset)+"px"

document.getElementById("menuS").innerHTML=stringa1+"<br />"
document.getElementById("menuS").style.height=(menuH+offset)+"px"

if (it=="utilit1") {
document.getElementById("menu").style.top="827px"
document.getElementById("menuS").style.top="841px"
showMenus()
return
}

if (it=="novit1") {
document.getElementById("menu").style.top="778px"
document.getElementById("menuS").style.top="792px"
showMenus()
return
}

if (it=="utilita") {
if (window.top.document.body.scrollTop<200) {
document.getElementById("menu").style.top="390px"
document.getElementById("menuS").style.top="404px"
}
else{
document.getElementById("menu").style.top=window.top.document.body.scrollTop+190+"px"
document.getElementById("menuS").style.top=window.top.document.body.scrollTop+204+"px"
}
showMenus()
return
}
if (it=="novita") {
if (window.top.document.body.scrollTop<200) {
document.getElementById("menu").style.top="434px"
document.getElementById("menuS").style.top="448px"
}
else{
document.getElementById("menu").style.top=window.top.document.body.scrollTop+234+"px"
document.getElementById("menuS").style.top=window.top.document.body.scrollTop+248+"px"
}
showMenus()
return
}
document.getElementById("menu").style.top="165px"
document.getElementById("menuS").style.top="179px"
showMenus()
return
}
}
}

function showMenus() {
document.getElementById("menu").style.filter="alpha(opacity="+op+")"
document.getElementById("menu").style.opacity=op/100
document.getElementById("menuS").style.filter="alpha(opacity="+(parseInt((op/2),10))+")"
document.getElementById("menuS").style.opacity=parseInt((op/2),10)/100
op=op+10
if (op>=110) {
document.getElementById("menuS").style.filter="alpha(opacity=50)"
document.getElementById("menuS").style.opacity=0.5
return
}
setTimeout("showMenus()",20)
}

function resizeHeight(v) {
window.top.document.getElementById("home").style.height=v+"px"
//window.top.document.getElementById("bLeft").style.height=v+"px"
//window.top.document.getElementById("bRight").style.height=v+"px"
}

setInterval(function(){
try {document.getElementById("logoHL").style.top="175px"}catch(e){}
if (menuStat==false) {
try {
document.getElementById("menu").style.visibility="hidden"
document.getElementById("menuS").style.visibility="hidden"
}catch(e){}finally{}
}

if (menuStat==true) {
try {
document.getElementById("menu").style.visibility="visible"
document.getElementById("menuS").style.visibility="visible"
}catch(e){}finally{}
}
wts=0
try {wts==window.top.document.body.scrollTop<200}catch(e){wts=0}
if (wts<200) {
try{
if (document.URL.toLowerCase().match("home") || document.URL.toLowerCase().match("consulenza") || document.URL.toLowerCase().match("richiediassistenza")) {
offset=-30
}else{
offset=0
}
//document.getElementById("linkW").style.top=(364+offset)+"px"
//document.getElementById("linkD").style.top=(365+offset)+"px"
//document.getElementById("logoHL").style.top=215+"px"
return
}catch(e){}finally{}
}
try{
//document.getElementById("linkW").style.top=(window.top.document.body.scrollTop+164+offset)+"px"
//document.getElementById("linkD").style.top=(window.top.document.body.scrollTop+165+offset)+"px"
//document.getElementById("logoHL").style.top=window.top.document.body.scrollTop+15+"px"
}catch(e){}finally{}
},500)
