/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip



<!--

/*
Textual Tooltip Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
content[0]='<strong>Spuma Nera</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi <br />Acidificanti: acido citrico<br />Conservanti: benzoato di sodio <br />Coloranti: E150'
content[1]='<strong>Spuma Bianca</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi Acidificanti: acido citrico<br />Conservanti: benzoato di sodio <br />Coloranti E150<br />Acidificanti: acido citrico<br />Coloranti E102 - E131'
content[2]='<strong>Menta</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi'
content[3]='<strong>Cedrata</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi Acidificanti: acido citrico<br />Coloranti E102'
content[4]='<strong>Gassosa</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi Acidificanti: acido citrico '
content[5]='<strong>Chinotto</strong><br />Acqua, Zucchero, Sciroppo di glucosio, fruttosio, Anidride carbonica, Aromi<br />Acidificanti: acido citrico, acido fosforico<br />Conservanti: benzoato di sodio<br />Coloranti E150'
content[6]='<strong>Ginger</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi Acidificanti: acido citrico<br />Coloranti E 110 E 122 '
content[7]='<strong>Pompelmo</strong><br />Acqua, Zucchero, Succo di pompelmo 12%, Sciroppo di glucosio, fruttosio, Anidride carbonica, Aromi<br />Acidificanti: acido citrico<br />Conservanti: benzoato di sodio<br />Antiossidanti: acido ascorbico'
content[8]='<strong>Sanguinella</strong><br />Acqua, Zucchero, Succo d’arancia 12%, Anidride carbonica, Aromi<br />Acidificanti: acido citrico<br />Conservanti: benzoato di sodio<br />Coloranti E 129'


var acque=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
acque[0]='<strong>S. Antonio</strong><br />L’acqua oligominerale della Fonte S.Antonio nasce nel cuore delle montagne innevate delle Alpi italiane'
acque[1]='<strong>Valverde</strong><br />L’acqua oligominerale Valverde scaturisce allo stato naturale da antiche sorgenti in località Argnacca, nel comune di Breia, poco lontano da Quarona Sesia'
acque[2]='<strong>S. Andrea</strong><br />L’Acqua Oligominerale della Fonte S. Andrea, venne scoperta in un afoso pomeriggio dell’agosto 1804, quando il capitano Adalberto Boccia, un ufficiale napoleonico incaricato di rilievi geografici nel territorio degli Stati Parmensi, si inoltrò in una valletta laterale a quella del fiume Taro e decise di concedere una meritata sosta al suo vagabondare'
acque[3]='<strong>S. Francesco</strong><br />Acqua, Zucchero, Anidride carbonica, Aromi Acidificanti: acido citrico<br />Coloranti E102'
acque[4]='<strong>S. Carlo</strong><br />La Fonte Sancarlo Spinone nasce dal coraggio delle sorelle Giuditta e Carla Colombo che, nel 1942, durante la seconda guerra mondiale, acquistarono la Fonte nella valle del Tuf con il chiosco per la vendita e l’imbottigliamento dell’acqua'

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",550)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<p class="tooltipProdotti">'+whichcontent+'</p>'
}
else if (document.layers){
document.d1.document.d2.document.write('<p class="tooltipProdotti">'+whichcontent+'</p>')
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2


//-->


