﻿//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="./azienda.aspx" >Company</a>'
menu1[1]='<a href="./mission.aspx" >Mission & Pilosophy</a>'
menu1[2]='<a href="./referenze.aspx" >References</a>'

var menu2=new Array()
menu2[0]='<a href="./starlight.aspx" >Starlight</a>'
menu2[1]='<a href="./lightben.aspx" >Lightben</a>'
menu2[2]='<a href="./hexaben.aspx" >Hexaben</a>'
menu2[3]='<a href="./pdf/listino.pdf" target="_blank">Colour range</a>'
menu2[4]='<a href="./video.aspx" >Video</a>'
menu2[5]='<div  style="margin-left:11px;">Compositi non trasparenti</div>'
menu2[6]='<a href="./aluben.aspx" style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Aluben - settore nautico</a>'
menu2[7]='<a href="./miacore.aspx" style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Miacore - settore marmo e mosaici</a>'


		
var menu3=new Array()
menu3[0]='<div  style="margin-left:11px;">Productions</div>'
menu3[1]='<a href="./applicazioni.aspx?s=allestimenti_fiere"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Fairs, stands</a>'
  menu3[2]='<a href="./applicazioni.aspx?s=allestimenti_eventi"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Events - fashion shows, concerts, exhibitions</a>'
  menu3[3]='<a href="./applicazioni.aspx?s=allestimenti_scenografie"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">TV sets, theater, set design</a>'
  menu3[4]='<div  style="margin-left:11px;">Contract</div>'
menu3[5]='<a href="./applicazioni.aspx?s=contract_hotel"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Hotel</a>'
  menu3[6]='<a href="./applicazioni.aspx?s=contract_bar"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Lounge Bar - Restaurants - Disco</a>'
  menu3[7]='<a href="./applicazioni.aspx?s=contract_spa"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">SPA - Wellness - Gym</a>'
  menu3[8]='<a href="./applicazioni.aspx?s=contract_ospedali"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Hospitals, schools, other</a>'
menu3[9]='<div  style="margin-left:11px;">Interior decoration</div>'
menu3[10]='<a href="./applicazioni.aspx?s=arredo_uffici"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Offices</a>'
menu3[11]='<a href="./applicazioni.aspx?s=arredo_negozi"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Shop fitting</a>'
menu3[12]='<a href="./applicazioni.aspx?s=arredo_casa"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Private Houses</a>'
menu3[13]='<div  style="margin-left:11px;">Special Projects</div>'
//menu3[14]='<a href="./applicazioni.aspx?s=speciali_jacobacci"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Studio Jacobacci, Bergamo</a>'
menu3[15]='<a href="./applicazioni.aspx?s=speciali_enel"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">ENEL, Firenze</a>'
menu3[16]='<a href="./applicazioni.aspx?s=speciali_milanocongressi"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Milano Congress Fair</a>'
menu3[17]='<a href="./applicazioni.aspx?s=speciali_sanpaolotorino"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">San Paolo, Torino</a>'
menu3[18]='<a href="./applicazioni.aspx?s=speciali_deutschebank"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Deutsche Bank, Francoforte</a>'
//menu3[19]='<a href="./applicazioni.aspx?s=speciali"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Other Projects</a>'
menu3[20]='<a href="./applicazioni.aspx?s=esterni" >Outdoor</a>'
menu3[21]='<a href="./applicazioni.aspx?s=pareti_divisorie" >Partition Walls</a>'
menu3[22]='<a href="./applicazioni.aspx?s=pavimenti_sopraelevati" >Backlighted Raised Floors</a>'
menu3[23]='<a href="./applicazioni.aspx?s=porte" >Doors</a>'
menu3[24]='<a href="./applicazioni.aspx?s=controsoffitti" >Backceilings</a>'
menu3[25]='<a href="./applicazioni.aspx?s=banconi" >Desks</a>'
menu3[26]='<a href="./applicazioni.aspx?s=tavoli" >Tables</a>'
menu3[27]='<a href="http://www.plasticdetails.com" target="_blank" >Design furnitures - PD3</a>'


var menu4=new Array()
menu4[0]='<a href="./staff.aspx" >Staff</a>'
menu4[1]='<a href="./dove_siamo.aspx" >Where we are</a>'
menu4[2]='<a href="./rete_vendita.aspx" >Sales network</a>'

var menu5=new Array()
menu5[0] = '<a href="/en/pdf/2011_bencore_manuale.pdf" target="_blank">Product manual</a>'
menu5[1]='<a title="" class="lightbox" href="#" onclick="$.prettyPhoto.open(\'schede_tecniche.aspx?iframe=true&amp;width=600&amp;height=520\',\'Technical sheets\',\'\');">Technical sheets</a>'
menu5[2]='<a href="./certificati.aspx">Certifications</a>'
menu5[3]='<a href="./faq.aspx">Faq</a>'
menu5[4]='<a href="./video_tecnici.aspx" >Technical video</a>'


var menu6=new Array()
menu6[0]='<a href="./video_starlight.aspx" >Starlight</a>'


var menu7=new Array()
menu7[0]='<a href="./video_lightben.aspx" >Lightben Kaos in tv</a>'
menu7[1]='<a href="./video_starlight2.aspx" >A piano made in Starlight</a>'
menu7[2]='<a href="./video_Primetime.aspx" >Starlight in teleshopping</a>'
menu7[3]='<a href="./video_starlight3.aspx" >Starlight with multicolored LEDs</a>'
menu7[4]='<a href="./video_lightben2.aspx" >Lightben</a>'

var menu8=new Array()
menu8[0]='<a href="./video_emotionalcube1.aspx" >Video 1</a>'
menu8[1]='<a href="./video_emotionalcube2.aspx" >Video 2</a>'


var menu9=new Array()
menu9[1]='<div  style="margin-left:11px;">Fabrication</div>'
  menu9[2]='<a href="./tagli_misura.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Cut to size, shaped and special</a>'
  menu9[3]='<a href="./curvatura.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Bending</a>'
  menu9[4]='<a href="./bordatura.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Edging</a>'
menu9[5]='<div  style="margin-left:11px;">System</div>'
  menu9[6]='<a href="./porta_scorrevole.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Sliding door</a>'
  menu9[7]='<a href="./porte.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Doors</a>'
  menu9[8]='<a href="./pavimenti.aspx"  style="margin-left:15px; font-size:11px; line-height:12px; font-weight:normal;">Back-lighted raised floors</a>'


var menuwidth='250px' //default menu width
var menubgcolor='#ffffff'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

//if (ie4||ns6)
//document.write('<div id="dropmenudiv" style="z-index:10;position: absolute;visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+';Filter: Alpha(Opacity=80, FinishOpacity=80, Style=2);opacity:1;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
//document.write('<div id="dropmenudiv" style="z-index:3;position: absolute;visibility:hidden;width:'+menuwidth+';background-image: url(images/back_trasparent.gif);" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
document.write('<div id="dropmenudiv" style="z-index:100; position: absolute;visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
//alert(what.offsetParent.offsetWidth);
//alert(what.offsetParent.offsetHeight);
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=-500
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, p_Browser, p_Left, p_rif)
{


var yyy = document.getElementById(p_rif);

if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(yyy, "left")
dropmenuobj.y=getposOffset(yyy, "top")

/*
if (p_Browser.indexOf("Safari") != -1)
{
dropmenuobj.style.left=getposOffset(yyy, "left")+ p_Left //552
dropmenuobj.style.top=getposOffset(yyy, "top")+yyy.offsetHeight//+22
}
else
{*/
dropmenuobj.style.left=getposOffset(yyy, "left")+ p_Left+'px';
dropmenuobj.style.top=(getposOffset(yyy, "top")+yyy.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


function setOpacity(layName,arg) {
    var ua = navigator.userAgent

    if( window.opera ) return          //o6,o7
    if( document.layers )              //n4
           var oj = document.layers[layName]
    else if( document.all )            //e4,e5,e6
           var oj = document.all(layName).style
    else if( document.getElementById ) //n6,n7,m1,s1
           var oj =document.getElementById(layName).style

    if(document.layers ||
       ua.indexOf('Mac_PowerPC') !=-1 && document.all ||
       ua.indexOf('Safari') !=-1 ) {   //n4,mac-e4,mac-e5,s1
        if(arg>0)       oj.visibility='visible'
        else if(arg<=0) oj.visibility='hidden'
    } else if(document.all) {          //win-e4,win-e5,win-e6
        document.all(layName).style.filter="alpha(opacity=0)"
        document.all(layName).filters.alpha.Opacity  = (arg * 100)
    } else if(ua.indexOf('Gecko')!=-1) //n6,n7,m1
        document.getElementById(layName).style.MozOpacity = arg
}
