var linkset=new Array()
var posx=new Array()
var posy=new Array()

linkset[0]=''
linkset[0]+='<table border="0" cellpadding="0" cellspacing="0" width="135" height="100" background="images/but_sfondo1.gif">'
linkset[0]+='<tr><td height="20"><img src="images/spacer.gif" border="0" width="20" height="20"></td></tr>'
linkset[3]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">AAA</a></td></tr>'
linkset[3]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">BBB</a></td></tr>'
linkset[0]+='<tr><td height="52"><img src="images/spacer.gif" border="0" width="52" height="52"></td></tr>'
linkset[0]+='</table>'
posx[0]=121
posy[0]=229

linkset[1]=''
linkset[1]+='<table border="0" cellpadding="0" cellspacing="0" width="135" height="100" background="images/but_sfondo2.gif">'
linkset[1]+='<tr><td height="20"><img src="images/spacer.gif" border="0" width="20" height="20"></td></tr>'
linkset[1]+='<tr><td height="14" class="menu_td"><a class="menulink" href="prodotti_asciugatutto.asp">asciugatutto</a></td></tr>'
linkset[1]+='<tr><td height="14" class="menu_td"><a class="menulink" href="prodotti_cartaigienica.asp">carta igienica</a></td></tr>'
linkset[1]+='<tr><td height="14" class="menu_td"><a class="menulink" href="prodotti_fazzolettini.asp">fazzolettini</a></td></tr>'
linkset[1]+='<tr><td height="14" class="menu_td"><a class="menulink" href="prodotti_tovaglioli.asp">tovaglioli</a></td></tr>'
linkset[1]+='<tr><td height="14" class="menu_td"><a class="menulink" href="prodotti_rotoliindustriali.asp">rotoli industriali</a></td></tr>'
linkset[1]+='<tr><td height="10"><img src="images/spacer.gif" border="0" width="10" height="10"></td></tr>'
linkset[1]+='</table>'
posx[1]=258
posy[1]=229

linkset[2]=''
linkset[2]+='<table border="0" cellpadding="0" cellspacing="0" width="135" height="100" background="images/but_sfondo3.gif">'
linkset[2]+='<tr><td height="20"><img src="images/spacer.gif" border="0" width="20" height="20"></td></tr>'
linkset[2]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">AAA</a></td></tr>'
linkset[2]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">BBB</a></td></tr>'
linkset[2]+='<tr><td height="52"><img src="images/spacer.gif" border="0" width="52" height="52"></td></tr>'
linkset[2]+='</table>'
posx[2]=393
posy[2]=229

linkset[3]=''
linkset[3]+='<table border="0" cellpadding="0" cellspacing="0" width="135" height="100" background="images/but_sfondo4.gif">'
linkset[3]+='<tr><td height="20"><img src="images/spacer.gif" border="0" width="20" height="20"></td></tr>'
linkset[3]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">AAA</a></td></tr>'
linkset[3]+='<tr><td height="14" class="menu_td"><a class="menulink" href="#a">BBB</a></td></tr>'
linkset[3]+='<tr><td height="52"><img src="images/spacer.gif" border="0" width="52" height="52"></td></tr>'
linkset[3]+='</table>'
posx[3]=526
posy[3]=229

////No need to edit beyond here

var ie4=document.all
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=linkset[which]
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=135
menuobj.contentheight=100

eventX=(document.body.clientWidth-780)/2;
if (eventX<0) eventX=0;

menuobj.thestyle.left=eventX+posx[which]
menuobj.thestyle.top=posy[which]
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu
