function ItemLevel3(c,b,a){this.title=c;this.url=b;this.isSelected=a}function ItemLevel2(c,b,a){this.title=c;this.url=b;this.isSelected=a;this.children=new Array()}function ItemLevel1(c,b,a){this.title=c;this.url=b;this.isSelected=a;this.children=new Array();this.childrenHtml="";this.addChild=function(d){this.children.push(d)};this.createChildrenHtml=function(){var d=1;var f='<table id="istGruppo-menuTableLivello2" class="istGruppo-menuTableLivello2" align="center" ><tr>';for(var e=0;e<this.children.length;e++){if((d%4)==0){f+="<td><table class='istGruppo-menuTableLivello2-cells' align='left'><tr><td style='width:7px;'><img src='/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_nera_ris.png' style='margin-right:4px;'/></td><td><a href=\""+this.children[e].url+'" > '+this.children[e].title+"</a></td></tr></table></td></tr><tr>"}else{f+="<td><table class='istGruppo-menuTableLivello2-cells' align='left'><tr><td style='width:7px;'><img src='/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_nera_ris.png' style='margin-right:4px;'/></td><td><a  href=\""+this.children[e].url+'" > '+this.children[e].title+"</a></td></tr></table></td>"}d++}d=(d-1);d=d%4;d=4-d;for(var e=0;e<d;e++){f+="<td></td>"}if(d!=4){f+="</tr><tr><td></td><td></td><td></td><td></td>"}f+="</tr></table>";this.childrenHtml=f}}function MainMenu(){this.tmpItemLevel1;this.tmpItemLevel2;this.tmpItemLevel3;this.itemsLevel1=new Array();this.whoSelected="null";this.whoSelectedName="";this.currentContentLevel2="";this.isCurrentPageLevel1=false;this.selectMenuItem=function(a){this.deselectLastMenuItem();a.setAttribute("class","istGruppo-selectedMenuItem");a.className="istGruppo-selectedMenuItem";this.whoSelected=a;this.isCurrentPageLevel1=false;this.displayMenuLevel2()};this.selectMenuItemSelected=function(a){this.deselectLastMenuItem();this.whoSelected=a;this.isCurrentPageLevel1=true;this.displayMenuLevel2()};this.selectMenuHomeItem=function(a){this.deselectLastMenuItem();a.setAttribute("class","istGruppo-selectedMenuItem");a.className="istGruppo-selectedMenuItem";this.whoSelected=a;document.getElementById("istGruppo-layer-onmouseover").style.display="block"};this.deselectMenuItem=function(a){a.setAttribute("class","istGruppo-deselectedMenuItem");a.className="istGruppo-deselectedMenuItem"};this.selectLastMenuItem=function(){if(this.whoSelected!="null"){this.selectMenuItem(this.whoSelected)}};this.deselectLastMenuItem=function(){if(this.whoSelected!="null"&&!this.isCurrentPageLevel1){this.deselectMenuItem(this.whoSelected)}};this.displayMenuLevel2=function(){if(this.whoSelected!="null"){var a=this.whoSelected.getAttribute("value");this.currentContentLevel2=this.itemsLevel1[a].childrenHtml;if(document.getElementById("istGruppo-menuLivello2Container")!=null){document.getElementById("istGruppo-menuLivello2Container").innerHTML=this.currentContentLevel2}}document.getElementById("istGruppo-layer-onmouseover").style.display="block";document.getElementById("istGruppo-menuLivello2Container").style.visibility="visible"};this.undisplayMenuLevel2=function(){if(document.getElementById("istGruppo-menuLivello2Container")!=null){document.getElementById("istGruppo-menuLivello2Container").style.visibility="hidden";document.getElementById("istGruppo-layer-onmouseover").style.display="none"}};this.getPageTitle=function(){for(var c=0;c<this.itemsLevel1.length;c++){if(this.itemsLevel1[c].isSelected=="true"){return this.itemsLevel1[c].title}else{if(this.itemsLevel1[c].children.length>0){for(var a=0;a<this.itemsLevel1[c].children.length;a++){if(this.itemsLevel1[c].children[a].isSelected=="true"){return this.itemsLevel1[c].children[a].title}else{if(this.itemsLevel1[c].children[a].children.length>0){for(var b=0;b<this.itemsLevel1[c].children[a].children.length;b++){if(this.itemsLevel1[c].children[a].children[b].isSelected=="true"){return this.itemsLevel1[c].children[a].children[b].title}}}}}}}}}}function BreadCrum(){this.concatenateNewName=function(b){var a="";a=document.getElementById("istGruppo-breadCrumbNav").innerHTML;document.getElementById("istGruppo-breadCrumbNav").innerHTML=a+" > "+b}}function Utility(){this.popupId=null;this.popupAgenda=false;this.isPopupOpen=false;this.urlHomePage="";this.lingua="it";this.baseUrl="";this.searchValue="";this.createBaseUrl=function(a){this.baseUrl=a.split("/")[0]+"/"+a.split("/")[1]+"/"+a.split("/")[2]+"/"+a.split("/")[3]+"/"+a.split("/")[4]+"/"+a.split("/")[5]+"/"};this.redirect=function(a){document.location.href=a};this.simulateClick=function(a){$("#"+a).click()};this.searchSite=function(){document.getElementById("istGruppo-headerInputText").value=istGruppo_themeScript.myUtility.searchValue;istGruppo_themeScript.myUtility.simulateClick("istGruppo-headerInputSubmit")};this.searchSiteBanca=function(){document.getElementById("istBanca-headerInputText").value=istGruppo_themeScript.myUtility.searchValue;istGruppo_themeScript.myUtility.simulateClick("istGruppo-headerInputSubmit")};this.searchInputFilterBanca=function(a){var c;var b;if(window.event){c=a.keyCode}else{if(a.which){c=a.which}}if(keycode==13){istGruppo_themeScript.myUtility.simulateClick("istBanca-headerLinkIconSearch")}};this.searchInputFilter=function(a){var c;var b;if(window.event){c=a.keyCode}else{if(a.which){c=a.which}}if(keycode==13){istGruppo_themeScript.myUtility.simulateClick("istGruppo-headerLinkIconSearch")}};this.createMail=function(b,d,a,c){location.href="mailto:"+b+"?cc="+d+"&subject="+a+"&body="+c};this.styleTable=function(a,b){$("table."+a+" tr:odd").css("background-color",b)};this.scrollDown=function(a){var b=$(a).scrollTop()+20;$(a).scrollTop(b)};this.scrollUp=function(a){var b=$(a).scrollTop()-20;$(a).scrollTop(b)};this.changeImgSrc=function(a){var b=document.getElementById("mappaIta");b.src="/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/ita-"+a+".png"};this.openPopup=function(){this.isPopupRefresh=false;window.scroll(0,0);var a;if(navigator.userAgent.indexOf("MSIE")>=0){document.getElementsByTagName("html")[0].style.overflow="hidden"}else{document.getElementsByTagName("body")[0].style.overflow="hidden"}this.isPopupOpen=true;a=document.getElementById("istGruppo-topClearing-popup");a.style.display="block";a=document.getElementById("istGruppo-topClearing-popupContent");a.setAttribute("class","istGruppo-topClearing-popupContent");a.setAttribute("className","istGruppo-topClearing-popupContent");a.style.visibility="visible";a.style.display="block";document.getElementById("istGruppo-topClearing-popupContentHtml").style.display="block";this.popupAgenda=false};this.openPopup=function(b){if(b){this.isPopupRefresh=true}else{this.isPopupRefresh=false}window.scroll(0,0);var a;if(navigator.userAgent.indexOf("MSIE")>=0){document.getElementsByTagName("html")[0].style.overflow="hidden"}else{document.getElementsByTagName("body")[0].style.overflow="hidden"}this.isPopupOpen=true;a=document.getElementById("istGruppo-topClearing-popup");a.style.display="block";a=document.getElementById("istGruppo-topClearing-popupContent");a.setAttribute("class","istGruppo-topClearing-popupContent");a.setAttribute("className","istGruppo-topClearing-popupContent");a.style.visibility="visible";a.style.display="block";document.getElementById("istGruppo-topClearing-popupContentHtml").style.display="block";this.popupAgenda=false};this.openPopupAgenda=function(){window.scroll(0,0);var a;if(navigator.userAgent.indexOf("MSIE")>=0){document.getElementsByTagName("html")[0].style.overflow="hidden"}else{document.getElementsByTagName("body")[0].style.overflow="hidden"}this.isPopupOpen=true;a=document.getElementById("istGruppo-topClearing-popup");a.style.display="block";a=document.getElementById("istGruppo-topClearing-popupContent");a.setAttribute("class","istGruppo-topClearing-popupContentAgenda");a.setAttribute("className","istGruppo-topClearing-popupContentAgenda");a.style.display="block";document.getElementById("istGruppo-topClearing-popupContentHtml").style.display="none";a=document.getElementById("istGruppo-topClearing-popupContentAgenda");a.style.display="block";$("#myistGruppo_agenda_filter_selection_comboselected").css("visibility","visible");this.popupAgenda=true};this.closePopup=function(){if(this.isPopupRefresh){window.location.href=window.location.href}else{var a;if(this.popupId=="istGruppo-Ultimi-doc-it"||this.popupId=="istGruppo-Ultimi-doc-en"||this.popupId=="scopriBperPopUpContainer"||this.popupId=="dialogFeedbackPopupChiudi"||this.popupAgenda){a=document.getElementById("istGruppo-topClearing-popupContentAgenda");a.style.display="none";a=document.getElementById("istGruppo-topClearing-popupContent");a.style.display="none";a=document.getElementById("istGruppo-topClearing-popup");a.style.display="none";location.reload()}else{if(navigator.userAgent.indexOf("MSIE")>=0){document.getElementsByTagName("html")[0].style.overflow="auto"}else{document.getElementsByTagName("body")[0].style.overflow="auto"}this.isPopupOpen=false;a=document.getElementById("istGruppo-topClearing-popupContentAgenda");a.style.display="none";a=document.getElementById("istGruppo-topClearing-popupContent");a.style.display="none";a=document.getElementById("istGruppo-topClearing-popup");a.style.display="none";a=document.getElementById("istGruppo-topClearing-popupContentHtml");if(this.popupId&&!this.popupAgenda){document.getElementById(this.popupId).innerHTML=a.innerHTML}a.innerHTML=""}}};this.createPopupContent=function(a){document.getElementById("istGruppo-topClearing-popupContentHtml").innerHTML=document.getElementById(a).innerHTML;document.getElementById(a).innerHTML="";this.popupId=a};this.createHTMLPopupContent=function(a){document.getElementById("istGruppo-topClearing-popupContentHtml").innerHTML=a};this.bookmark=function(a,d){if(window.sidebar){try{window.sidebar.addPanel(d,a,"")}catch(c){}}if(window.opera&&window.print){try{var b=document.createElement("a");b.setAttribute("href",a);b.setAttribute("title",d);b.setAttribute("rel","sidebar");b.click()}catch(c){}}if(document.all){try{window.external.AddFavorite(a,d)}catch(c){}}};this.showPage=function(){document.body.style.display="block"};this.saveReport=function(c,b,a){}}function IstGruppo_BperComboBox(select,container,color,colorover){this.isDown=false;this.context="my"+container;this.mySelect=document.getElementById(select);this.myContainer=document.getElementById(container);this.menu=this.context+"menu";this.selected=this.context+"selected";this.selectedElement=this.context+"selectedElement";if(!color){color="white"}if(!colorover){colorover="#cccccc"}$(this.mySelect).css("visibility","hidden");if(this.mySelect.options.length>0){var valueSelected=$("#"+this.mySelect.id.replace(/:/g,"\\:")).val();var buff="<table cellspacing='0' cellpadding='0' id='"+this.selected+"' class='istGruppo-bperComboBox-selected'><tr value='"+valueSelected+"' id='"+this.selectedElement+"'><td>"+$("#"+this.mySelect.id.replace(/:/g,"\\:")+" option:selected").text()+"</td><td style='width:23px; padding:0px;'><div class='istGruppo-bperComboBox-combo-arrow' onclick='"+this.context+".slide();'></div></td></tr></table><div id='"+this.menu+"' class='istGruppo-bperComboBox-mytable'><table cellspacing='0' cellpadding='0' style='width:100%;'>";for(var i=0;i<this.mySelect.length;i++){if(valueSelected!=this.mySelect.options[i].value&&this.mySelect.options[i].value!=""){buff+="<tr value='"+this.mySelect.options[i].value+"' onmouseover='"+this.context+".over(this);' onmouseout='"+this.context+".out(this);' onclick='"+this.context+".clk(this);'><td>"+this.mySelect.options[i].text+"</td></tr>"}}buff+="</table></div>"}else{var buff="<table cellspacing='0' cellpadding='0' id='"+this.selected+"' class='istGruppo-bperComboBox-selected'><tr value='' id='"+this.selectedElement+"'><td></td><td><div class='istGruppo-bperComboBox-combo-arrow' onclick='"+this.context+".slide();'></div></td></tr></table>"}this.myContainer.innerHTML=buff;$(this.myContainer).css("position","absolute");$(this.myContainer).css("z-index","999");$(this.myContainer).css("top",this.mySelect.offsetTop+"px");$(this.myContainer).css("left",this.mySelect.offsetLeft+"px");if(navigator.userAgent.indexOf("MSIE")>=0){$("#"+this.selected).css("width",this.mySelect.clientWidth+33);$("#"+this.menu).css("width",this.mySelect.clientWidth+31)}else{if(navigator.userAgent.indexOf("irefox")>=0){$("#"+this.selected).css("width",this.mySelect.clientWidth+14);$("#"+this.menu).css("width",this.mySelect.clientWidth+12)}else{if(navigator.userAgent.indexOf("afari")>=0){$("#"+this.selected).css("width",this.mySelect.clientWidth+13);$("#"+this.menu).css("width",this.mySelect.clientWidth+11)}else{$("#"+this.selected).css("width",this.mySelect.clientWidth+22);$("#"+this.menu).css("width",this.mySelect.clientWidth+20)}}}this.slide=function(){if(!this.isDown){$("#"+this.menu).slideDown("fast",function(){});eval(this.context+".isDown = true;")}else{$("#"+this.menu).slideUp("fast",function(){});eval(this.context+".isDown = false;")}};this.over=function(elm){try{elm.style.backgroundColor=""+colorover}catch(e){}};this.out=function(elm){try{elm.style.backgroundColor=""+color}catch(e){}};this.clk=function(elm){var tmpTxt;var tmpVal;var obj;this.slide();obj=document.getElementById(""+this.selectedElement).firstChild;tmpTxt=obj.innerHTML;obj.innerHTML=elm.firstChild.innerHTML;obj=document.getElementById(""+this.selectedElement);tmpVal=$(obj).attr("value");$(obj).attr("value",$(elm).attr("value"));elm.firstChild.innerHTML=tmpTxt;$(elm).attr("value",tmpVal);tmpVal=$(obj).attr("value");$("#"+this.mySelect.id.replace(/:/g,"\\:")).val(tmpVal);this.mySelect.onchange()};try{adattaCombo()}catch(e){}}function IstGruppo_CoverFlowTitoloAzionario(a,c,f,d){var b=document.getElementById(a);b.style.visibility="hidden";b.setAttribute("class","istGruppo-coverFlowTitoloAzionario-container");b.setAttribute("className","istGruppo-coverFlowTitoloAzionario-container");b.innerHTML="<div id='istGruppo-coverFlowTitoloAzionario-img0' class='istGruppo-coverFlowTitoloAzionario-img0' onclick='"+d+".coverSwitch(0);'><img src='"+c[0]+"'/></div><div id='istGruppo-coverFlowTitoloAzionario-img1' class='istGruppo-coverFlowTitoloAzionario-img1opaco' onclick='"+d+".coverSwitch(1);'><img src='"+c[1]+"'/></div><div id='istGruppo-coverFlowTitoloAzionario-cursorL'></div><div id='istGruppo-coverFlowTitoloAzionario-cursorR'></div><div class='istGruppo-coverFlowTitoloAzionario-barra'></div>";b.style.visibility="visible";var e=0;f(e);this.coverSwitch=function(g){var h;if(e==0&&g==1){h=document.getElementById("istGruppo-coverFlowTitoloAzionario-img0");h.setAttribute("class","istGruppo-coverFlowTitoloAzionario-img0opaco");h.setAttribute("className","istGruppo-coverFlowTitoloAzionario-img0opaco");h=document.getElementById("istGruppo-coverFlowTitoloAzionario-img1");h.setAttribute("class","istGruppo-coverFlowTitoloAzionario-img1");h.setAttribute("className","istGruppo-coverFlowTitoloAzionario-img1");document.getElementById("istGruppo-coverFlowTitoloAzionario-cursorL").style.visibility="hidden";document.getElementById("istGruppo-coverFlowTitoloAzionario-cursorR").style.visibility="visible";e=1;f(e)}else{if(e==1&&g==0){h=document.getElementById("istGruppo-coverFlowTitoloAzionario-img0");h.setAttribute("class","istGruppo-coverFlowTitoloAzionario-img0");h.setAttribute("className","istGruppo-coverFlowTitoloAzionario-img0");h=document.getElementById("istGruppo-coverFlowTitoloAzionario-img1");h.setAttribute("class","istGruppo-coverFlowTitoloAzionario-img1opaco");h.setAttribute("className","istGruppo-coverFlowTitoloAzionario-img1opaco");document.getElementById("istGruppo-coverFlowTitoloAzionario-cursorR").style.visibility="hidden";document.getElementById("istGruppo-coverFlowTitoloAzionario-cursorL").style.visibility="visible";e=0;f(e)}}}}function IstGruppo_Agenda(agendaContainer,eventi,news,comunicati,context,lingua){var container=document.getElementById(agendaContainer);container.style.visibility="hidden";container.setAttribute("class","istGruppo-agenda-container");container.setAttribute("className","istGruppo-agenda-container");var mesi;if(lingua=="it"){container.innerHTML="<div class='istGruppo-popup-scopriBperNelMondo-title'>CONSULTA L'AGENDA<div class='istGruppo-popup-scopriBperNelMondo-titleBig'>DEL GRUPPO</div></div><div class='istGruppo-agenda-barra' style='top:-10px;'></div><div class='istGruppo-agenda-barra' style='top:530px;'></div><div id='istGruppo-agenda-calendar'></div><div id='istGruppo-agenda-leftArrow' class='istGruppo-agenda-leftArrow' onclick='"+context+".hideDescription();'><</div><div id='istGruppo-agenda-rightArrow' class='istGruppo-agenda-rightArrow' onclick='"+context+".hideDescription();'>></div><div class='istGruppo-agenda-description' id='istGruppo-agenda-description'></div><div class='istGruppo-agenda-filter'><select id='istGruppo-agenda-filter-selection' class='istGruppo-agenda-filter-selection' onchange='"+context+".showEvents(this.value);'><option value='tutti' selected='selected'>tutti</option><option value='news'>news</option><option value='eventi'>eventi</option><option value='comunicati'>comunicati</option></select><div id='istGruppo_agenda_filter_selection_combo'></div></div><div class='istGruppo-agenda-scrollup' onclick='istGruppo_themeScript.myUtility.scrollUp($(\"#istGruppo-agenda-description-container\"));'></div><div class='istGruppo-agenda-scrolldown' onclick='istGruppo_themeScript.myUtility.scrollDown($(\"#istGruppo-agenda-description-container\"));'></div><div id='istGruppo-agenda-nextprevContainer' class='istGruppo-agenda-nextprevContainer'><div class='istGruppo-agenda-nextprev' onclick='"+context+".findPrev();'>< Precedente</div> | <div class='istGruppo-agenda-nextprev' onclick='"+context+".findNext();'>Successivo ></div></div>";mesi=new Array("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic")}else{container.innerHTML="<div class='istGruppo-popup-scopriBperNelMondo-title'>SEE THE GROUP<div class='istGruppo-popup-scopriBperNelMondo-titleBig'>AGENDA</div></div><div class='istGruppo-agenda-barra' style='top:-10px;'></div><div class='istGruppo-agenda-barra' style='top:530px;'></div><div id='istGruppo-agenda-calendar'></div><div id='istGruppo-agenda-leftArrow' class='istGruppo-agenda-leftArrow' onclick='"+context+".hideDescription();'><</div><div id='istGruppo-agenda-rightArrow' class='istGruppo-agenda-rightArrow' onclick='"+context+".hideDescription();'>></div><div class='istGruppo-agenda-description' id='istGruppo-agenda-description'></div><div class='istGruppo-agenda-filter'><select id='istGruppo-agenda-filter-selection' class='istGruppo-agenda-filter-selection' onchange='"+context+".showEvents(this.value);'><option value='tutti' selected='selected'>all</option><option value='news'>news</option><option value='eventi'>events</option><option value='comunicati'>press</option></select><div id='istGruppo_agenda_filter_selection_combo'></div></div><div class='istGruppo-agenda-scrollup' onclick='istGruppo_themeScript.myUtility.scrollUp($(\"#istGruppo-agenda-description-container\"));'></div><div class='istGruppo-agenda-scrolldown' onclick='istGruppo_themeScript.myUtility.scrollDown($(\"#istGruppo-agenda-description-container\"));'></div><div id='istGruppo-agenda-nextprevContainer' class='istGruppo-agenda-nextprevContainer'><div class='istGruppo-agenda-nextprev' onclick='"+context+".findPrev();'>< Previous</div> | <div class='istGruppo-agenda-nextprev' onclick='"+context+".findNext();'>Next ></div></div>";mesi=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")}container.style.visibility="visible";this.currentDate;this.currentCategory;this.hideDescription=function(){var el=document.getElementById("istGruppo-agenda-description");el.style.visibility="hidden";document.getElementById("istGruppo-agenda-nextprevContainer").style.visibility="hidden";$("div.istGruppo-agenda-scrollup").css("visibility","hidden");$("div.istGruppo-agenda-scrolldown").css("visibility","hidden")};this.setVisibleElements=function(){var allTd=new Array;allTd=document.getElementsByTagName("td");for(var i=0;i<allTd.length;i++){if(allTd[i].className.search("fc-")!=-1){allTd[i].style.borderWidth="1px"}}document.getElementById("istGruppo-topClearing-popupContent").style.visibility="visible";document.getElementById("istGruppo-agenda-calendar").style.visibility="visible";document.getElementById("istGruppo-agenda-filter-selection").style.visibility="visible";document.getElementById("istGruppo-agenda-leftArrow").style.visibility="visible";document.getElementById("istGruppo-agenda-rightArrow").style.visibility="visible";$("div.istGruppo-agenda-barra").css("visibility","visible")};this.showDescription=function(events,categoria){var label_descrizione;if(lingua=="it"){label_descrizione="Descrizione"}else{label_descrizione="Description"}var tmp="<table class='istGruppo-agenda-description-date' cellspacing='0' cellpadding='0' ><tr><td rowspan='2' valign='top'><div id='istGruppo-agenda-description-day'>"+events[0].start.getDate()+"</div></td><td><div id='istGruppo-agenda-description-month'>"+(mesi[events[0].start.getMonth()])+"</div></td></tr><tr><td><div id='istGruppo-agenda-description-year'>"+events[0].start.getFullYear()+"</div></td></tr><tr><td style='text-align:center; color:white; line-height:100px;'></td></tr></table><div id='istGruppo-agenda-description-container' class='istGruppo-agenda-description-container'>";for(var i=0;i<events.length;i++){if(events[i].title==categoria){tmp+="<div id='istGruppo-agenda-description-bank' class='istGruppo-agenda-description-titolobianco'>"+events[i].banca+"</div><div id='istGruppo-agenda-description-name' class='istGruppo-agenda-description-titoloverde'>"+events[i].name+"</div><div class='istGruppo-agenda-description-titolobianco'>"+label_descrizione+"</div><div id='istGruppo-agenda-description-text' class='istGruppo-agenda-description-testo'>"+events[i].descrizione+"</div>"}}tmp+="</div>";el=document.getElementById("istGruppo-agenda-description");el.innerHTML=tmp;el.style.visibility="visible";$("div.istGruppo-agenda-scrollup").css("visibility","visible");$("div.istGruppo-agenda-scrolldown").css("visibility","visible");document.getElementById("istGruppo-agenda-nextprevContainer").style.visibility="visible";$("div.istGruppo-agenda-description-testo > font").css("color","white");eval(context+".currentCategory = categoria");eval(context+".currentDate = events[0].start")};this.clearEvents=function(){$("#istGruppo-agenda-calendar").fullCalendar("removeEvents")};this.showEvents=function(type){eval(context+".hideDescription()");if(type=="eventi"){eval(context+".clearEvents()");$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",eventi)}else{if(type=="comunicati"){eval(context+".clearEvents()");$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",comunicati)}else{if(type=="news"){eval(context+".clearEvents()");$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",news)}else{eval(context+".clearEvents()");$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",eventi);$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",comunicati);$("#istGruppo-agenda-calendar").fullCalendar("addEventSource",news)}}}};this.findNext=function(){var data;var eventiDelGiorno=[];var diff=Date.parse(new Date());var date1=Date.parse(this.currentDate);var date2;if(this.currentCategory=="EVENTO"||this.currentCategory=="EVENT"){for(var i=0;i<eventi.length;i++){date2=Date.parse(eventi[i].start);if((date2-date1)>0&&(date2-date1)<diff){diff=date2-date1;data=eventi[i]}}}else{if(this.currentCategory=="NEWS"){for(var i=0;i<news.length;i++){date2=Date.parse(news[i].start);if((date2-date1)>0&&(date2-date1)<diff){diff=date2-date1;data=news[i]}}}else{for(var i=0;i<comunicati.length;i++){date2=Date.parse(comunicati[i].start);if((date2-date1)>0&&(date2-date1)<diff){diff=date2-date1;data=comunicati[i]}}}}if(data){for(var i=0;i<eventi.length;i++){if(data.start.getDate()==eventi[i].start.getDate()&&data.start.getFullYear()==eventi[i].start.getFullYear()&&data.start.getMonth()==eventi[i].start.getMonth()){eventiDelGiorno.push(eventi[i])}}for(var i=0;i<news.length;i++){if(data.start.getDate()==news[i].start.getDate()&&data.start.getFullYear()==news[i].start.getFullYear()&&data.start.getMonth()==news[i].start.getMonth()){eventiDelGiorno.push(news[i])}}for(var i=0;i<comunicati.length;i++){if(data.start.getDate()==comunicati[i].start.getDate()&&data.start.getFullYear()==comunicati[i].start.getFullYear()&&data.start.getMonth()==comunicati[i].start.getMonth()){eventiDelGiorno.push(comunicati[i])}}eval(context+".showDescription(eventiDelGiorno,this.currentCategory)");$("#istGruppo-agenda-calendar").fullCalendar("gotoDate",data.start.getFullYear(),data.start.getMonth())}};this.findPrev=function(){var data;var eventiDelGiorno=[];var diff=-Date.parse(new Date());var date1=Date.parse(this.currentDate);var date2;if(this.currentCategory=="EVENTO"||this.currentCategory=="EVENT"){for(var i=0;i<eventi.length;i++){date2=Date.parse(eventi[i].start);if((date2-date1)<0&&(date2-date1)>diff){diff=date2-date1;data=eventi[i]}}}else{if(this.currentCategory=="NEWS"){for(var i=0;i<news.length;i++){date2=Date.parse(news[i].start);if((date2-date1)<0&&(date2-date1)>diff){diff=date2-date1;data=news[i]}}}else{for(var i=0;i<comunicati.length;i++){date2=Date.parse(comunicati[i].start);if((date2-date1)<0&&(date2-date1)>diff){diff=date2-date1;data=comunicati[i]}}}}if(data){for(var i=0;i<eventi.length;i++){if(data.start.getDate()==eventi[i].start.getDate()&&data.start.getFullYear()==eventi[i].start.getFullYear()&&data.start.getMonth()==eventi[i].start.getMonth()){eventiDelGiorno.push(eventi[i])}}for(var i=0;i<news.length;i++){if(data.start.getDate()==news[i].start.getDate()&&data.start.getFullYear()==news[i].start.getFullYear()&&data.start.getMonth()==news[i].start.getMonth()){eventiDelGiorno.push(news[i])}}for(var i=0;i<comunicati.length;i++){if(data.start.getDate()==comunicati[i].start.getDate()&&data.start.getFullYear()==comunicati[i].start.getFullYear()&&data.start.getMonth()==comunicati[i].start.getMonth()){eventiDelGiorno.push(comunicati[i])}}eval(context+".showDescription(eventiDelGiorno,this.currentCategory)");$("#istGruppo-agenda-calendar").fullCalendar("gotoDate",data.start.getFullYear(),data.start.getMonth())}};$(document).ready(function(){var date=new Date();var d=date.getDate();var m=date.getMonth();var y=date.getFullYear();var labelMonth;var labelMonthShort;var labelDay;var labelDayShort;if(lingua=="it"){labelMonth=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"];labelMonthShort=["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"];labelDay=["Domenica","Luned&igrave;","Marted&igrave;","Mercoled&igrave;","Gioved&igrave;","Vened&igrave;","Sabato"];labelDayShort=["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]}else{labelMonth=["January","February","March","April","May","June","July","August","September","October","November","December"];labelMonthShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Decr"];labelDay=["Sunday","Monday","Tuesday","Wednesday","Tuesday","Friday","Saturday"];labelDayShort=["Sun","Mon","Tue","Wed","Tue","Fri","Sat"]}$("#istGruppo-agenda-calendar").fullCalendar({editable:false,firstDay:1,monthNames:labelMonth,monthNamesShort:labelMonthShort,dayNames:labelDay,dayNamesShort:labelDayShort,header:{left:" ",center:"title",right:""},eventClick:function(event){var eventiDelGiorno=[];eventiDelGiorno=$("#istGruppo-agenda-calendar").fullCalendar("clientEvents",function(e){if(e.start.getDate()==event.start.getDate()&&e.start.getMonth()==event.start.getMonth()&&e.start.getFullYear()==event.start.getFullYear()){return true}else{return false}});eval(context+".showDescription(eventiDelGiorno,event.title)");return false}});$("#istGruppo-agenda-leftArrow").click(function(){$("#istGruppo-agenda-calendar").fullCalendar("prev")});$("#istGruppo-agenda-rightArrow").click(function(){$("#istGruppo-agenda-calendar").fullCalendar("next")});eval(context+".showEvents('tutti')");eval(context+".curentDate = date")})}function IstGruppo_CoverFlowHome(m,k,g,d){var b=document.getElementById(m);b.style.visibility="hidden";b.setAttribute("class","istGruppo-coverFlowHome-container");b.setAttribute("className","istGruppo-coverFlowHome-container");b.innerHTML="<div class='istGruppo-coverFlowHome-container2'><div id='istGruppo-coverFlowHome-state0' class='istGruppo-coverFlowHome-state0'></div><div id='istGruppo-coverFlowHome-state1' class='istGruppo-coverFlowHome-state1'></div><div id='istGruppo-coverFlowHome-state2' class='istGruppo-coverFlowHome-state2'></div><div id='istGruppo-coverFlowHome-state3' class='istGruppo-coverFlowHome-state3'></div></div><div class='istGruppo-coverFlowHome-leftArrow' onclick='"+d+".moveRight();'></div><div class='istGruppo-coverFlowHome-rightArrow' onclick='"+d+".moveLeft();'></div>";b.style.visibility="visible";var a=new Array(-148,0,148,296);var l=new Array(0,1,2,3);var c=new Array("start");var h=new Array("end");var f=c.concat(k,h);var c=0;var i=0;var e=0;var n;var j;o();g(c);function o(){if(f[c]=="start"){$(".istGruppo-coverFlowHome-leftArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_leftdis.jpg')");$(".istGruppo-coverFlowHome-rightArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_right.jpg')")}else{if(f[c+3]=="end"){$(".istGruppo-coverFlowHome-leftArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_left.jpg')");$(".istGruppo-coverFlowHome-rightArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_rightdis.jpg')")}else{$(".istGruppo-coverFlowHome-leftArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_left.jpg')");$(".istGruppo-coverFlowHome-rightArrow").css("backgroundImage","url('/wps/themes/html/bper-ist-gruppo-theme/staticResources/img/freccia_right.jpg')")}}for(var p=0;p<4;p++){document.getElementById("istGruppo-coverFlowHome-state"+l[p]).innerHTML=f[c+p]}}this.moveLeft=function(){if(f[c+3]!="end"){clearInterval(n);n=setInterval(d+".stepL();",20)}};this.moveRight=function(){if(f[c]!="start"){clearInterval(j);j=setInterval(d+".stepR();",20)}};this.stepL=function(){var t;var r;for(var q=0;q<4;q++){t=document.getElementById("istGruppo-coverFlowHome-state"+q);if(a[q]<=-148){t.style.display="none";r=q}a[q]-=10;t.style.left=a[q]+"px"}i++;if(i>=15){i=0;a[r]=296;t=document.getElementById("istGruppo-coverFlowHome-state"+r);t.style.left=a[r]+"px";t.style.display="block";r=l[0];for(var p=0;p<3;p++){var s=r+p+1;if(s>3){s=s-4}t=document.getElementById("istGruppo-coverFlowHome-state"+s);if(p==0){a[s]=-148}if(p==1){a[s]=0}if(p==2){a[s]=148}t.style.left=a[s]+"px";l[p]=l[p+1]}l[3]=r;c++;o();g(c);clearInterval(n)}};this.stepR=function(){var t;var r;for(var q=0;q<4;q++){t=document.getElementById("istGruppo-coverFlowHome-state"+q);if(a[q]>296){t.style.display="none";r=q}a[q]+=10;t.style.left=a[q]+"px"}e++;if(e>=15){e=0;a[r]=-148;t=document.getElementById("istGruppo-coverFlowHome-state"+r);t.style.left=a[r]+"px";t.style.display="block";r=l[3];for(var p=3;p>0;p--){var s=r+p;if(s>3){s=s-4}t=document.getElementById("istGruppo-coverFlowHome-state"+s);if(p==1){a[s]=-0}if(p==2){a[s]=148}if(p==3){a[s]=296}t.style.left=a[s]+"px";l[p]=l[p-1]}l[0]=r;c--;o();g(c);clearInterval(j)}}}function IstGruppo_CoverFlowArte(a,c,f,d){var b=document.getElementById(a);b.style.visibility="hidden";b.setAttribute("class","istGruppo-coverFlowArte-container");b.setAttribute("className","istGruppo-coverFlowArte-container");b.innerHTML="<div class='istGruppo-coverFlowArte-back'></div><img id='istGruppo-coverFlowArte-img0' class='istGruppo-coverFlowArte-img4' src="+c[0]+" /><img id='istGruppo-coverFlowArte-img1' class='istGruppo-coverFlowArte-img0' src="+c[1]+" /><div class='istGruppo-coverFlowArte-leftArrow' onclick='"+d+".moveLeft()'></div><div class='istGruppo-coverFlowArte-rightArrow' onclick='"+d+".moveRight();'></div>";b.style.visibility="visible";var e=new Array(4,0);f(0);this.moveRight=function(){var h=1;var g=setInterval(function(){var i;i=document.getElementById("istGruppo-coverFlowArte-img"+0);if(e[0]==0){e[0]=8}i.setAttribute("class","istGruppo-coverFlowArte-img"+(e[0]-h));i.setAttribute("className","istGruppo-coverFlowArte-img"+(e[0]-h));i=document.getElementById("istGruppo-coverFlowArte-img"+1);if(e[1]==0){e[1]=8}i.setAttribute("class","istGruppo-coverFlowArte-img"+(e[1]-h));i.setAttribute("className","istGruppo-coverFlowArte-img"+(e[1]-h));if(h==4){e[0]=e[0]-4;e[1]=e[1]-4;if(e[0]>0){f(0)}else{f(1)}clearInterval(g)}h++},120)};this.moveLeft=function(){var g=1;var h=setInterval(function(){var i;i=document.getElementById("istGruppo-coverFlowArte-img"+0);if(e[0]==8){e[0]=0}i.setAttribute("class","istGruppo-coverFlowArte-img"+(e[0]+g));i.setAttribute("className","istGruppo-coverFlowArte-img"+(e[0]+g));i=document.getElementById("istGruppo-coverFlowArte-img"+1);if(e[1]==8){e[1]=0}i.setAttribute("class","istGruppo-coverFlowArte-img"+(e[1]+g));i.setAttribute("className","istGruppo-coverFlowArte-img"+(e[1]+g));if(g==4){e[0]=e[0]+4;e[1]=e[1]+4;if(e[0]>4){f(1)}else{f(0)}clearInterval(h)}g++},120)}}function IstGruppo_CoverFlowBanche(coverContainer,args,callBack,context){var container=document.getElementById(coverContainer);container.style.visibility="hidden";container.setAttribute("class","istGruppo-coverFlowBanche-container");container.setAttribute("className","istGruppo-coverFlowBanche-container");container.innerHTML="<img id='istGruppo-coverFlowBanche-img0' class='istGruppo-coverFlowBanche-img0' src='"+args[0]+"' onclick='"+context+".moveOnClick(0); '/><img id='istGruppo-coverFlowBanche-img1' class='istGruppo-coverFlowBanche-img5' src='"+args[1]+"' onclick='"+context+".moveOnClick(1);' /><img id='istGruppo-coverFlowBanche-img2' class='istGruppo-coverFlowBanche-img10' src='"+args[2]+"' onclick='"+context+".moveOnClick(2);' /><img id='istGruppo-coverFlowBanche-img3' class='istGruppo-coverFlowBanche-img15' src='"+args[3]+"' onclick='"+context+".moveOnClick(3);' /><img id='istGruppo-coverFlowBanche-img4' class='istGruppo-coverFlowBanche-img20' src='"+args[4]+"' onclick='"+context+".moveOnClick(4);' /><img id='istGruppo-coverFlowBanche-img5' class='istGruppo-coverFlowBanche-img25' src='"+args[5]+"' onclick='"+context+".moveOnClick(5);' /><img id='istGruppo-coverFlowBanche-img6' class='istGruppo-coverFlowBanche-img30' src='"+args[6]+"' onclick='"+context+".moveOnClick(6);' /><img id='istGruppo-coverFlowBanche-img7' class='istGruppo-coverFlowBanche-img35' src='"+args[7]+"' onclick='"+context+".moveOnClick(7);' /><img id='istGruppo-coverFlowBanche-img8' class='istGruppo-coverFlowBanche-img40' src='"+args[8]+"' onclick='"+context+".moveOnClick(8);' /><div class='istGruppo-coverFlowBanche-leftArrow' onclick='"+context+".moveRight()'></div><div class='istGruppo-coverFlowBanche-rightArrow' onclick='"+context+".moveLeft()'></div><div class='istGruppo-coverFlowBanche-barra'></div>";container.style.visibility="visible";var state=new Array(0,1,2,3,4,5,6,7,8);callBack(4);this.moveRight=function(){var step=1;var movementR=setInterval(function(){var obj;for(var i=0;i<9;i++){obj=document.getElementById("istGruppo-coverFlowBanche-img"+state[i]);if(i==8){obj.style.visibility="hidden"}obj.setAttribute("class","istGruppo-coverFlowBanche-img"+(i*5+step));obj.setAttribute("className","istGruppo-coverFlowBanche-img"+(i*5+step))}if(step==5){obj=document.getElementById("istGruppo-coverFlowBanche-img"+state[8]);obj.setAttribute("class","istGruppo-coverFlowBanche-img0");obj.setAttribute("className","istGruppo-coverFlowBanche-img0");obj.style.visibility="visible";shiftState("right");callBack(state[4]);clearInterval(movementR)}step++},50)};this.moveLeft=function(){var step=0;var movementL=setInterval(function(){var obj;for(var i=0;i<9;i++){obj=document.getElementById("istGruppo-coverFlowBanche-img"+state[i]);if(i==0){obj.style.visibility="hidden"}obj.setAttribute("class","istGruppo-coverFlowBanche-img"+(i*5-step));obj.setAttribute("className","istGruppo-coverFlowBanche-img"+(i*5-step))}if(step==5){obj=document.getElementById("istGruppo-coverFlowBanche-img"+state[0]);obj.setAttribute("class","istGruppo-coverFlowBanche-img40");obj.setAttribute("className","istGruppo-coverFlowBanche-img40");obj.style.visibility="visible";shiftState("left");callBack(state[4]);clearInterval(movementL)}step++},50)};this.moveOnClick=function(id){var movementOnClick;for(var y=0;y<9;y++){if(state[y]==id){id=y;break}}var step=4-id;if(step>0){movementOnClick=setInterval(function(){if(step>0){eval(context+".moveRight()")}else{clearInterval(movementOnClick)}step--},350)}else{if(step<0){step=-step;movementOnClick=setInterval(function(){if(step>0){eval(context+".moveLeft()")}else{clearInterval(movementOnClick)}step--},350)}}};function shiftState(direction){if(direction=="right"){var tmp=state[8];for(var j=8;j>0;j--){state[j]=state[j-1]}state[0]=tmp}else{if(direction=="left"){var tmp=state[0];for(var j=0;j<8;j++){state[j]=state[j+1]}state[8]=tmp}}}}function IstGruppo_CoverFlowBancheAjax(coverContainer,args,callBackL,callBackR,context){var state;var movement;var enable=true;this.target=4;var isReset=false;this.init=function(){state=new Array(5,6,7,8,0,1,2,3,4);var container=document.getElementById(coverContainer);container.style.visibility="hidden";container.setAttribute("class","istGruppo-coverFlowBancheAjax-container");container.setAttribute("className","istGruppo-coverFlowBancheAjax-container");container.innerHTML="<img id='istGruppo-coverFlowBancheAjax-img5' class='istGruppo-coverFlowBancheAjax-img0' src='"+args[5]+"' /><img id='istGruppo-coverFlowBancheAjax-img6' class='istGruppo-coverFlowBancheAjax-img5' src='"+args[6]+"'  /><img id='istGruppo-coverFlowBancheAjax-img7' class='istGruppo-coverFlowBancheAjax-img10' src='"+args[7]+"'  /><img id='istGruppo-coverFlowBancheAjax-img8' class='istGruppo-coverFlowBancheAjax-img15' src='"+args[8]+"'  /><img id='istGruppo-coverFlowBancheAjax-img0' class='istGruppo-coverFlowBancheAjax-img20' src='"+args[0]+"'  /><img id='istGruppo-coverFlowBancheAjax-img1' class='istGruppo-coverFlowBancheAjax-img25' src='"+args[1]+"'  /><img id='istGruppo-coverFlowBancheAjax-img2' class='istGruppo-coverFlowBancheAjax-img30' src='"+args[2]+"'  /><img id='istGruppo-coverFlowBancheAjax-img3' class='istGruppo-coverFlowBancheAjax-img35' src='"+args[3]+"'  /><img id='istGruppo-coverFlowBancheAjax-img4' class='istGruppo-coverFlowBancheAjax-img40' src='"+args[4]+"'  /><div id='istGruppo-coverFlowBancheAjax-leftArrow' class='istGruppo-coverFlowBancheAjax-leftArrowDis' onclick='"+context+".moveRight()'></div><div id='istGruppo-coverFlowBancheAjax-rightArrow' class='istGruppo-coverFlowBancheAjax-rightArrow' onclick='"+context+".moveLeft()'></div>";container.style.visibility="visible"};this.setEnable=function(type){enable=type};this.setReset=function(type){isReset=type};this.moveRight=function(myTarget){if(enable){clearInterval(movement);if(state[4]>0){var step=0;movement=setInterval(function(){var obj;for(var i=0;i<9;i++){obj=document.getElementById("istGruppo-coverFlowBancheAjax-img"+state[i]);if(i==8){obj.style.visibility="hidden"}obj.setAttribute("class","istGruppo-coverFlowBancheAjax-img"+(i*5+step));obj.setAttribute("className","istGruppo-coverFlowBancheAjax-img"+(i*5+step))}if(step==5){obj=document.getElementById("istGruppo-coverFlowBancheAjax-img"+state[8]);obj.setAttribute("class","istGruppo-coverFlowBancheAjax-img0");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-img0");if(state[4]>4){obj.style.visibility="visible"}clearInterval(movement);shiftState("right",myTarget)}step++},50)}}};this.moveLeft=function(myTarget){if(enable){clearInterval(movement);if(state[4]<8){var step=1;movement=setInterval(function(){var obj;for(var i=0;i<9;i++){obj=document.getElementById("istGruppo-coverFlowBancheAjax-img"+state[i]);if(i<4-state[4]||i==0){obj.style.visibility="hidden"}else{if(i>(12-state[4])){obj.style.visibility="hidden"}else{obj.style.visibility="visible"}}obj.setAttribute("class","istGruppo-coverFlowBancheAjax-img"+(i*5-step));obj.setAttribute("className","istGruppo-coverFlowBancheAjax-img"+(i*5-step))}if(step==5){obj=document.getElementById("istGruppo-coverFlowBancheAjax-img"+state[0]);obj.setAttribute("class","istGruppo-coverFlowBancheAjax-img40");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-img40");if(state[4]<4){obj.style.visibility="visible"}else{obj.style.visibility="hidden"}clearInterval(movement);shiftState("left",myTarget)}step++},50)}}};this.reset=function(targetState){isReset=true;eval(context+".init()");if(targetState>0&&targetState<9){targetState--;eval(context+".setEnable(true)");eval(context+".moveLeft("+targetState+")")}else{eval(context+".setReset(false)")}};function shiftState(direction,target){var obj;if(direction=="right"){var tmp=state[8];for(var j=8;j>0;j--){state[j]=state[j-1]}state[0]=tmp;if(state[4]==0){obj=document.getElementById("istGruppo-coverFlowBancheAjax-leftArrow");obj.setAttribute("class","istGruppo-coverFlowBancheAjax-leftArrowDis");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-leftArrowDis")}else{if(state[4]==7){obj=document.getElementById("istGruppo-coverFlowBancheAjax-rightArrow");obj.setAttribute("class","istGruppo-coverFlowBancheAjax-rightArrow");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-rightArrow")}}enable=false;if(!isReset){callBackR(state[4])}}else{if(direction=="left"){var tmp=state[0];for(var j=0;j<8;j++){state[j]=state[j+1]}state[8]=tmp;if(state[4]==8){obj=document.getElementById("istGruppo-coverFlowBancheAjax-rightArrow");obj.setAttribute("class","istGruppo-coverFlowBancheAjax-rightArrowDis");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-rightArrowDis")}else{if(state[4]==1){obj=document.getElementById("istGruppo-coverFlowBancheAjax-leftArrow");obj.setAttribute("class","istGruppo-coverFlowBancheAjax-leftArrow");obj.setAttribute("className","istGruppo-coverFlowBancheAjax-leftArrow")}}enable=false;if(!isReset){callBackL(state[4])}}}if(target>0){target--;eval(context+".setEnable(true)");eval(context+".moveLeft("+target+")")}else{if(target<1){eval(context+".setEnable(true)");eval(context+".setReset(false)")}else{eval(context+".setEnable(false)")}}}this.init()}function IstGruppo_HistoryEvents(k,j,d,b){var a=document.getElementById(k);a.style.visibility="hidden";a.setAttribute("class","istGruppo-eventostorico-container");a.setAttribute("className","istGruppo-eventostorico-container");a.innerHTML="<div id='istGruppo-eventostorico-leftarrow' onClick='"+b+".moveLeft();' class='istGruppo-eventostorico-leftarrow'></div><div class='istGruppo-eventostorico-yearscontainer'></div><div id='istGruppo-eventostorico-rightarrow' onClick='"+b+".moveRight();' class='istGruppo-eventostorico-rightarrow istGruppo-eventostorico-rightarrowDis' ></div><div id='istGruppo-eventostorico-cursor'></div><div id='istGruppo-eventostorico-step1'></div><div id='istGruppo-eventostorico-step6text' value='7' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step2'></div><div id='istGruppo-eventostorico-step5text' value='6' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step3'></div><div id='istGruppo-eventostorico-step4text' value='5' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step4'></div><div id='istGruppo-eventostorico-step3text' value='4' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step5'></div><div id='istGruppo-eventostorico-step2text' value='3' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step6'></div><div id='istGruppo-eventostorico-step1text' value='2' onclick='"+b+".goTo(this);'></div><div id='istGruppo-eventostorico-step7'></div><div id='istGruppo-eventostorico-step0text' value='1' onclick='"+b+".goTo(this);'></div>";var c=7;var e=0;var f=new Array(42,115,190,270,350,427,500);var l=j;var h;for(var g=0;g<7;g++){h=document.getElementById("istGruppo-eventostorico-step"+(6-g)+"text");h.innerHTML=l[l.length-1-g]}a.style.visibility="visible";d(l[l.length-1]);this.moveLeft=function(){var n=document.getElementById("istGruppo-eventostorico-step"+c);n.style.visibility="hidden";c--;if(c<1){if((e+7)==(l.length-1)){$("#istGruppo-eventostorico-leftarrow").addClass("istGruppo-eventostorico-leftarrowDis")}c=1;if((e+7-l.length)<0){e++;var o;for(var m=0;m<7;m++){o=document.getElementById("istGruppo-eventostorico-step"+(6-m)+"text");o.innerHTML=l[l.length-1-m-e]}}}else{if(c==1){if((e+7)==(l.length)){$("#istGruppo-eventostorico-leftarrow").addClass("istGruppo-eventostorico-leftarrowDis")}}else{if(c<7){$("#istGruppo-eventostorico-rightarrow").removeClass("istGruppo-eventostorico-rightarrowDis")}}}n=document.getElementById("istGruppo-eventostorico-step"+c);n.style.visibility="visible";n=document.getElementById("istGruppo-eventostorico-cursor");n.style.left=f[c-1]+"px";d(l[l.length-1-7+c-e])};this.moveRight=function(){var n=document.getElementById("istGruppo-eventostorico-step"+c);n.style.visibility="hidden";c++;if((e+7)==(l.length)){$("#istGruppo-eventostorico-leftarrow").removeClass("istGruppo-eventostorico-leftarrowDis")}if(c>7){if(e==1){$("#istGruppo-eventostorico-rightarrow").addClass("istGruppo-eventostorico-rightarrowDis")}c=7;if(e>0){e--;var o;for(var m=0;m<7;m++){o=document.getElementById("istGruppo-eventostorico-step"+(6-m)+"text");o.innerHTML=l[l.length-1-m-e]}}}else{if(c==7&&e==0){$("#istGruppo-eventostorico-rightarrow").addClass("istGruppo-eventostorico-rightarrowDis")}}n=document.getElementById("istGruppo-eventostorico-step"+c);n.style.visibility="visible";n=document.getElementById("istGruppo-eventostorico-cursor");n.style.left=f[c-1]+"px";d(l[l.length-1-7+c-e])};this.goTo=function(o){var n=$(o).attr("value");var m=c-n;if(m!=0){if(m<0){m=-m;for(var p=0;p<m;p++){this.moveRight()}}else{for(var p=0;p<m;p++){this.moveLeft()}}}}}var istGruppo_scopriBper_cellClick_enable=0;function istGruppo_scopriBper_cellClick(c){istGruppo_scopriBper_cellClick_enable++;if(istGruppo_scopriBper_cellClick_enable<=1){var b=c.children[0];$(b).click()}else{return false}}function istGruppo_scopriBper_cellBindClick(){$(".scopriBperCell").bind("click",function(){istGruppo_scopriBper_cellClick(this)})}function istGruppo_scopriBper_cellClick_resetEnable(){istGruppo_scopriBper_cellClick_enable=0}function IstGruppo_ThemeScript(){this.myMainMenu=new MainMenu();this.myBreadCrum=new BreadCrum();this.myUtility=new Utility()}var istGruppo_themeScript=new IstGruppo_ThemeScript();var elementSelected=null;$(document).ready(function(){$("#istGruppo-menuContainer").mouseleave(function(){if(window.elementSelected!=null&&!elementSelected.isCurrentPageLevel1){$(elementSelected).addClass("istGruppo-deselectedMenuItem");$(elementSelected).removeClass("istGruppo-selectedMenuItem")}})});function customSeoHide(){element=elementSelected;customSeoUnselectMenu()}function customSeoShow(a){customSeoHide();a.setAttribute("class","istGruppo-selectedMenuItem");a.className="istGruppo-selectedMenuItem";a.isCurrentPageLevel1=false;elementSelected=a;if($("#istGruppo-layer-onmouseover").length!=0){$("#istGruppo-layer-onmouseover").show()}if($("#istGruppo-menuLivello2Container").length!=0){$("#istGruppo-menuLivello2Container").css("visibility","visible")}var b="#"+$(a).children().children().html().replace(/(\s)/g,"\\ ").replace("&amp;","\\&").replace(/\'/g,"\\'");$("#istGruppo-menuLivello2Container span").hide();$(b).show()}function customSeoShowSelected(a){a.setAttribute("class","istGruppo-selectedMenuItem");customSeoUnselectMenu();a.className="istGruppo-selectedMenuItem";a.isCurrentPageLevel1=true;elementSelected=a;if($("#istGruppo-layer-onmouseover").length!=0){$("#istGruppo-layer-onmouseover").show()}if($("#istGruppo-menuLivello2Container").length!=0){$("#istGruppo-menuLivello2Container").css("visibility","visible")}var b="#"+$(a).children().children().html().replace(/(\s)/g,"\\ ").replace("&amp;","\\&").replace(/\'/g,"\\'");$("#istGruppo-menuLivello2Container span").hide();$(b).show()}function customSeoLastMenu(){if(window.elementSelected!=null){element=elementSelected;element.setAttribute("class","istGruppo-selectedMenuItem");element.className="istGruppo-selectedMenuItem";if($("#istGruppo-layer-onmouseover").length!=0){$("#istGruppo-layer-onmouseover").show()}if($("#istGruppo-menuLivello2Container").length!=0){$("#istGruppo-menuLivello2Container").css("visibility","visible")}var a="#"+$(element).children().children().html().replace(/(\s)/g,"\\ ").replace("&amp;","\\&").replace(/\'/g,"\\'");$("#istGruppo-menuLivello2Container span").hide();$(a).show()}}function customHomeSeoShow(a){customSeoShow(a);$("#istGruppo-layer-onmouseover").hide();$("#istGruppo-menuLivello2Container").css("visibility","hidden")}function customSeoUnselectMenu(){if(window.elementSelected!=null&&!elementSelected.isCurrentPageLevel1&&!($(elementSelected).attr("id")=="istGruppo-menu-home"&&$("#istGruppo-menu-home").attr("onmouseover")==null)){$(elementSelected).addClass("istGruppo-deselectedMenuItem");$(elementSelected).removeClass("istGruppo-selectedMenuItem")}};
