if(mw.config.get('wgIsMainPage')&&top!=self)top.location.replace('http://toolserver.org/~pietrodn/wikipedia_redirect.php');function addLoadEvent(func){if(window.addEventListener)window.addEventListener("load",func,false);else if(window.attachEvent)window.attachEvent("onload",func);}$(function(){mw.util.addPortletLink('p-tb','//commons.wikimedia.org/wiki/Commons:Upload/it','Carica su Commons','t-uploadcommons','Carica file multimediali su Wikimedia Commons','m','#t-specialpages');});function LinkAdQ(){if(document.getElementById("p-lang")){var InterwikiLinks=document.getElementById("p-lang").getElementsByTagName("li");for(var i=0;i<InterwikiLinks.length;i++){if(document.getElementById(InterwikiLinks[i].className+"-fa")){InterwikiLinks[i].className+=" FA";InterwikiLinks[i].title="La voce è in vetrina in questa lingua.";}else if(document.getElementById(InterwikiLinks[i].className+"-ga")){InterwikiLinks[i].className+=" GA"
InterwikiLinks[i].title="La voce è di qualità in questa lingua.";}}}}$(LinkAdQ);$(function(){try{if(!(typeof oldEditsectionLinks=='undefined'||oldEditsectionLinks==false))return;var spans=document.getElementsByTagName("span");for(var s=0;s<spans.length;++s){var span=spans[s];if(span.className=="editsection"){span.style.fontSize="x-small";span.style.fontWeight="normal";span.style.cssFloat=span.style.styleFloat="none";span.parentNode.appendChild(document.createTextNode(" "));span.parentNode.appendChild(span);}}}catch(e){}});if(mw.config.get('wgIsMainPage')||mw.config.get('wgPageName')==="Discussione:Pagina_principale")$(function(){if(mw.config.get('wgUserLanguage')==='it')$('#ca-nstab-main a').text('Pagina principale');mw.util.addPortletLink('p-lang','//meta.wikimedia.org/wiki/Lista_di_Wikipedie','Lista completa','interwiki-completelist','Lista completa delle Wikipedie');});var disableRealTitle=0;function correctTitle(){try{var realTitleBanner=document.getElementById("RealTitleBanner")
;if(realTitleBanner&&!document.getElementById("DisableRealTitle")&&!disableRealTitle){var realTitle=document.getElementById("RealTitle");if(realTitle){var realTitleHTML=realTitle.innerHTML;var realTitleText=$(realTitle).text();var containsTooMuchHTML=/</.test(realTitleHTML.replace(/<\/?(sub|sup|small|big|a)>/gi,""));var h1=document.getElementsByTagName("h1")[0];if(h1){h1.innerHTML=containsTooMuchHTML?realTitleText:realTitleHTML;realTitleBanner.style.display="none";}document.title=realTitleText+" - Wikipedia";}}}catch(e){}}$(correctTitle);mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');function scegliSubsetCaratteri(s){var l=document.getElementById('specialchars').getElementsByTagName('p');for(var i=0;i<l.length;i++){l[i].style.display=i==s?'inline':'none';l[i].style.visibility=i==s?'visible':'hidden';}}function aggiungiMenuSubsetCaratteri(){var specialchars=document.getElementById(
'specialchars');if(specialchars){var menu="<select style=\"display:inline\" onChange=\"scegliSubsetCaratteri(selectedIndex)\">";menu+="<option>Latino esteso</option>";menu+="<option>Wiki</option>";menu+="<option>Greco antico</option>";menu+="<option>Greco moderno</option>";menu+="<option>Cirillico</option>";menu+="<option>Arabo</option>";menu+="<option>Ebraico e yiddish</option>";menu+="<option>Armeno</option>";menu+="<option>Geroglifico</option>";menu+="<option>Vietnamita</option>";menu+="<option>IPA</option>";menu+="<option>Matematica</option>";menu+="</select>";specialchars.innerHTML=menu+specialchars.innerHTML;scegliSubsetCaratteri(0);}}$(aggiungiMenuSubsetCaratteri);if(mw.config.get('wgPageName')=="Speciale:Ricerca")$(function(){var searchEngines=[];var createOption=function(site,action,mainQ,addQ,addV){var opt=document.createElement('option');opt.appendChild(document.createTextNode(site));searchEngines[searchEngines.length]=[action,mainQ,addQ,addV];return opt;};var searchForm=
document.forms['powersearch']||document.forms['search'];var searchBox=searchForm.lsearchbox||searchForm.search;var selectBox=document.createElement('select');selectBox.id='searchEngine';searchForm.onsubmit=function(){var optSelected=searchEngines[document.getElementById('searchEngine').selectedIndex];searchForm.action=optSelected[0];searchBox.name=optSelected[1];searchForm.title.value=optSelected[3];searchForm.title.name=optSelected[2];};selectBox.appendChild(createOption('MediaWiki',mw.config.get('wgScriptPath')+'/index.php','search','title','Speciale:Ricerca'));selectBox.appendChild(createOption('Google','http://www.google.com/search','q','sitesearch','it.wikipedia.org'));selectBox.appendChild(createOption('Yahoo','http://search.yahoo.com/search','p','vs','it.wikipedia.org'));selectBox.appendChild(createOption('Windows Live','http://search.live.com/results.aspx','q','q1','site:http://it.wikipedia.org'));selectBox.appendChild(createOption('Wikiwix','http://it.wikiwix.com/','action',
'lang','it'));selectBox.appendChild(createOption('Exalead','http://www.exalead.com/wikipedia/results','q','language','it'));searchBox.style.marginLeft='0px';buttonSearch=document.getElementById('searchText')||document.getElementById('powerSearchText');buttonSearch.parentNode.insertBefore(selectBox,buttonSearch.nextSibling);});if(window.attachEvent&&!window.XMLHttpRequest)window.attachEvent("onload",function(){var x=mw.util.$content.get(0).getElementsByTagName("div");for(var i=0;i<x.length;i++){if(x[i].className!="HopFrame")continue;var y=x[i].getElementsByTagName("div");var j;for(j=0;j<y.length;j++)if(y[j].className=="HopContent"){x[i].hopContent=y[j];break;}if(j<y.length){x[i].onmouseover=function(){this.hopContent.style.display="block";};x[i].onmouseout=function(){this.hopContent.style.display="none";};}}});var hasClass=(function(){var reCache={};return function(element,className){return(reCache[className]?reCache[className]:(reCache[className]=new RegExp("(?:\\s|^)"+className+
"(?:\\s|$)"))).test(element.className);};})();var NavigationBarHide='▲ nascondi';var NavigationBarShow='▼ mostra';var NavigationBarShowDefault=0;function toggleNavigationBar(indexNavigationBar){var NavToggle=document.getElementById("NavToggle"+indexNavigationBar);var NavFrame=document.getElementById("NavFrame"+indexNavigationBar);if(!NavFrame||!NavToggle){return false;}if(NavToggle.firstChild.data==NavigationBarHide){for(var NavChild=NavFrame.firstChild;NavChild!=null;NavChild=NavChild.nextSibling){if(hasClass(NavChild,'NavPic')){NavChild.style.display='none';}if(hasClass(NavChild,'NavContent')){NavChild.style.display='none';}if(hasClass(NavChild,'NavToggle')){NavChild.firstChild.data=NavigationBarShow;}}}else if(NavToggle.firstChild.data==NavigationBarShow){for(var NavChild=NavFrame.firstChild;NavChild!=null;NavChild=NavChild.nextSibling){if(hasClass(NavChild,'NavPic')){NavChild.style.display='block';}if(hasClass(NavChild,'NavContent')){NavChild.style.display='block';}if(hasClass(
NavChild,'NavToggle')){NavChild.firstChild.data=NavigationBarHide;}}}}function createNavigationBarToggleButton(){var indexNavigationBar=0;for(var i=0;NavFrame=document.getElementsByTagName("div")[i];i++){if(hasClass(NavFrame,'NavFrame')){indexNavigationBar++;var NavToggle=document.createElement("a");NavToggle.className='NavToggle';NavToggle.setAttribute('id','NavToggle'+indexNavigationBar);NavToggle.setAttribute('href','javascript:toggleNavigationBar('+indexNavigationBar+');');var NavToggleText=document.createTextNode(NavigationBarHide);NavToggle.appendChild(NavToggleText);NavFrame.insertBefore(NavToggle,NavFrame.firstChild);NavFrame.setAttribute('id','NavFrame'+indexNavigationBar);}}if(NavigationBarShowDefault<indexNavigationBar){for(var i=1;i<=indexNavigationBar;i++){toggleNavigationBar(i);}}}$(createNavigationBarToggleButton);var autoCollapse=2;var collapseCaption="nascondi";var expandCaption="mostra";function collapseTable(tableIndex){var Button=document.getElementById(
"collapseButton"+tableIndex);var Table=document.getElementById("collapsibleTable"+tableIndex);if(!Table||!Button){return false;}var Rows=Table.getElementsByTagName("tr");if(Button.firstChild.data==collapseCaption){for(var i=1;i<Rows.length;i++){Rows[i].style.display="none";}Button.firstChild.data=expandCaption;}else{for(var i=1;i<Rows.length;i++){Rows[i].style.display=Rows[0].style.display;}Button.firstChild.data=collapseCaption;}}function createCollapseButtons(){var tableIndex=0;var NavigationBoxes=new Object();var Tables=document.getElementsByTagName("table");for(var i=0;i<Tables.length;i++){if(hasClass(Tables[i],"collapsible")){NavigationBoxes[tableIndex]=Tables[i];Tables[i].setAttribute("id","collapsibleTable"+tableIndex);var Button=document.createElement("span");var ButtonLink=document.createElement("a");var ButtonText=document.createTextNode(collapseCaption);Button.style.styleFloat="right";Button.style.cssFloat="right";Button.style.fontWeight="normal";Button.style.textAlign=
"right";Button.style.width="7em";ButtonLink.setAttribute("id","collapseButton"+tableIndex);ButtonLink.setAttribute("href","javascript:collapseTable("+tableIndex+");");ButtonLink.appendChild(ButtonText);Button.appendChild(document.createTextNode("["));Button.appendChild(ButtonLink);Button.appendChild(document.createTextNode("]"));var Header=Tables[i].getElementsByTagName("tr")[0].getElementsByTagName("th")[0];if(Header){Header.insertBefore(Button,Header.childNodes[0]);tableIndex++;}}}for(var i=0;i<tableIndex;i++){if(hasClass(NavigationBoxes[i],"collapsed")||(tableIndex>=autoCollapse&&hasClass(NavigationBoxes[i],"autocollapse"))){collapseTable(i);}}}$(createCollapseButtons);function addClass(node,className){if(hasClass(node,className)){return false;}node.className+=' '+className;return true;}function eregReplace(search,replace,subject){return subject.replace(new RegExp(search,'g'),replace);}function removeClass(node,className){if(!hasClass(node,className)){return false;}node.className=
eregReplace('(^|\\s+)'+className+'($|\\s+)',' ',node.className);return true;}function hiddencat(){var cl=document.getElementById('catlinks');if(!cl)return;var hc=document.getElementById('mw-hidden-catlinks');if(!hc)return;var nc=document.getElementById('mw-normal-catlinks');if(!nc){removeClass(cl,'catlinks-allhidden');addClass(cl,'catlinks-allhidden-mostra');var ahc='<div id="mw-normal-catlinks"><a href="/wiki/Categoria:Categorie" title="Categoria:Categorie">Categorie</a> : <span dir="ltr"><a onclick="javascript:toggleHiddenCats();" id="mw-hidden-cats-link" style="cursor:pointer; color:#002BB8;" title="Questa voce contiene categorie nascoste">[altre]</a></span></div>';document.getElementById('catlinks').innerHTML=ahc+cl.innerHTML;}else if(hasClass(hc,'mw-hidden-cats-hidden')){var ahc=' | <a onclick="javascript:toggleHiddenCats();" id="mw-hidden-cats-link" style="cursor:pointer; color:#002BB8;" title="Questa voce contiene categorie nascoste">[altre]</a>';document.getElementById(
'mw-normal-catlinks').innerHTML+=ahc;}}function toggleHiddenCats(){var hc=document.getElementById('mw-hidden-catlinks');if(hasClass(hc,'mw-hidden-cats-hidden')){removeClass(hc,'mw-hidden-cats-hidden');addClass(hc,'mw-hidden-cat-user-shown');document.getElementById('mw-hidden-cats-link').innerHTML='[nascondi]';}else{removeClass(hc,'mw-hidden-cat-user-shown');addClass(hc,'mw-hidden-cats-hidden');document.getElementById('mw-hidden-cats-link').innerHTML='[altre]';}}$(hiddencat);$(function(){if(mw.config.get('wgAction')=="edit"){document.getElementById("Standard").style.width="100%";}});$(function(){if(mw.config.get('wgTitle')=="Scrivi qui il titolo"&&mw.config.get('wgAction')=="edit"){dopoDi=document.getElementById("contentSub");if(!dopoDi)return;var daInserire=document.createElement('div');daInserire.innerHTML="<b>Stai creando una voce senza specificarne un titolo valido. Per favore, torna indietro e inserisci un titolo valido.</b>";daInserire.className=
"toccolours itwiki_template_avviso rad";daInserire.style.marginBottom="0.5em";daInserire.style.background="#FC9";daInserire.style.borderColor="red";daInserire.style.textAlign="center";daInserire.style.fontSize="120%";dopoDi.parentNode.insertBefore(daInserire,dopoDi.nextSibling);}});$(function(){if(mw.config.get('wgTitle')=="Wikipedia:Bar/Discussioni/SCRIVI QUI SOLO IL TITOLO"&&mw.config.get('wgAction')=="edit"){dopoDi=document.getElementById("contentSub");if(!dopoDi)return;var daInserire=document.createElement('div');daInserire.innerHTML="<b>Stai creando una discussione del bar senza specificarne un titolo valido. Per favore, torna indietro e inserisci un titolo valido.</b>";daInserire.className="toccolours itwiki_template_avviso rad";daInserire.style.marginBottom="0.5em";daInserire.style.background="#FC9";daInserire.style.borderColor="red";daInserire.style.textAlign="center";daInserire.style.fontSize="120%";dopoDi.parentNode.insertBefore(daInserire,dopoDi.nextSibling);}});function
getURLParamValue(param,url){return mw.util.getParamValue(param,url);}var extraJS=getURLParamValue("withJS");if(extraJS&&extraJS.match("^MediaWiki:[^&<>=%]*\\.js$")){importScript(extraJS);}function toggleImage(group,remindex,shwindex){document.getElementById("ImageGroupsGr"+group+"Im"+remindex).style.display="none";document.getElementById("ImageGroupsGr"+group+"Im"+shwindex).style.display="inline";}function ImageGroup(){if(document.URL.match(/printable/g))return;var bc=mw.util.$content.get(0);var divs=bc.getElementsByTagName("div");var i=0,j=0;var units,search;var currentimage;var UnitNode;for(i=0;i<divs.length;i++){if(divs[i].className!="ImageGroup")continue;UnitNode=undefined;search=divs[i].getElementsByTagName("div");for(j=0;j<search.length;j++){if(search[j].className!="ImageGroupUnits")continue;UnitNode=search[j];break;}if(UnitNode===undefined)continue;units=Array();for(j=0;j<UnitNode.childNodes.length;j++){var temp=UnitNode.childNodes[j];if(temp.className=="center")units.push(temp)
;}for(j=0;j<units.length;j++){currentimage=units[j];currentimage.id="ImageGroupsGr"+i+"Im"+j;var imghead=document.createElement("div");var leftlink;var rightlink;if(j!=0){leftlink=document.createElement("a");leftlink.href="javascript:toggleImage("+i+","+j+","+(j-1)+");";leftlink.innerHTML="◀";}else{leftlink=document.createElement("span");leftlink.innerHTML=" ";}if(j!=units.length-1){rightlink=document.createElement("a");rightlink.href="javascript:toggleImage("+i+","+j+","+(j+1)+");";rightlink.innerHTML="▶";}else{rightlink=document.createElement("span");rightlink.innerHTML=" ";}var comment=document.createElement("tt");comment.innerHTML="("+(j+1)+"/"+units.length+")";imghead.style.fontSize="110%";imghead.style.fontweight="bold";imghead.appendChild(leftlink);imghead.appendChild(comment);imghead.appendChild(rightlink);currentimage.insertBefore(imghead,currentimage.childNodes[0]);if(j!=0)currentimage.style.display="none";}}}$(ImageGroup);if(mw.config.get('wgNamespaceNumber')==4&&mw.
config.get('wgPageName').indexOf("Wikipedia:Bar/")==0&&mw.config.get('wgAction')=="edit"&&document.URL.indexOf("&section=new&preload=")!=-1)$(function(){document.getElementById('wpSummaryLabel').style.display="none";document.getElementById('wpSummary').style.display="none";});if($.client.profile().name=='msie'&&$.client.profile().versionNumber<8)$(function(){$('.editsection').each(function(i,e){$(e).parent().append(e)});});if(mw.config.get('wgVersion')>="1.17"){try{document.write=document.writeln=function(str){var start,end;try{if(str.indexOf("<script")!=-1){start=str.indexOf("src");start=str.indexOf("\"",start+1)+1;end=str.indexOf("\"",start);importScriptURI(str.substring(start,end));}else{}}catch(e){}};}catch(e){}}if(typeof(MoveResizeAbsolute_AddMoveArea)!="function")importScriptURI('//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-MoveResizeAbsolute.js&action=raw&ctype=text/javascript');function openStreetMap_Init(){var c=document.getElementById('coordinates');if(!c)return;var a
=c.getElementsByTagName('a');var geohack=false;for(var i=0;i<a.length;i++){var h=a[i].href;if(!h.match(/geohack/))continue;geohack=true;break;}if(!geohack)return;var na=document.createElement('a');na.href='javascript:openStreetMap_Toggle();';na.title='Mostrare / nascondere la mappa';na.appendChild(document.createTextNode('Mappa'));c.appendChild(document.createTextNode(' ('));c.appendChild(na);c.appendChild(document.createTextNode(')   '));}function openStreetMap_Toggle(){var c=document.getElementById('coordinates');if(!c)return;var osm=document.getElementById('OpenStreetMap');if(osm){if(osm.style.display=='none'){osm.style.display='block';}else{osm.style.display='none';}return;}var found_link=false;var a=c.getElementsByTagName('a');var h;for(var i=0;i<a.length;i++){h=a[i].href;if(!h.match(/geohack/))continue;found_link=true;break;}if(!found_link)return;h=h.split('params=')[1];var LarghezzaSchermo=MoveResizeAbsolute_GetScreenWidth();var AlterigiaSchermo=
MoveResizeAbsolute_GetScreenHeight();var OSMDiv=document.createElement('div');OSMDiv.id='OpenStreetMap';OSMDiv.style.position="absolute";OSMDiv.style.zIndex=5000;OSMDiv.style.top=(AlterigiaSchermo*10/100)+"px";OSMDiv.style.left=(LarghezzaSchermo*15/100)+"px";OSMDiv.style.width="70%";OSMDiv.style.height=(AlterigiaSchermo*80/100)+"px";OSMDiv.style.border="2px solid black";OSMDiv.style.backgroundColor="white";OSMDiv.style.overflow="hidden";var MoveArea=document.createElement('div');MoveArea.style.position="relative";MoveArea.style.top="0";MoveArea.style.width="100%";MoveArea.style.height="50px";MoveArea.title="Clicca e trascina per ridimensionare la mappa";var CloseLink=document.createElement('a');CloseLink.setAttribute("style","float:right;margin:10px;");CloseLink.innerHTML="Nascondere";CloseLink.title="Clicca per nascondere";CloseLink.href="javascript:openStreetMap_Toggle();";MoveArea.appendChild(CloseLink);var iFrame=document.createElement('iframe');var url=
'//toolserver.org/~kolossos/openlayers/kml-on-ol.php?'+'lang='+mw.config.get('wgUserLanguage')+'&params='+h+'&title='+mw.util.wikiUrlencode(mw.config.get('wgTitle'))+(window.location.protocol=='https:'?'&secure=1':'');iFrame.style.width='100%';iFrame.style.height=((AlterigiaSchermo*80/100)-100)+'px';iFrame.style.clear='both';iFrame.src=url;var ResizeArea=document.createElement('div');ResizeArea.style.position="relative";ResizeArea.style.top="0";ResizeArea.style.width="100%";ResizeArea.style.height="50px";ResizeArea.title="Clicca e trascina per ridimensionare la mappa";OSMDiv.appendChild(MoveArea);OSMDiv.appendChild(iFrame);OSMDiv.appendChild(ResizeArea);document.body.appendChild(OSMDiv);var ElementsToMove=new Array(OSMDiv);var ElementsToResize=new Array(OSMDiv,iFrame);var ElementsMinWidth=new Array(150,150);var ElementsMinHeights=new Array(200,100);MoveResizeAbsolute_AddMoveArea(MoveArea,ElementsToMove);MoveResizeAbsolute_AddResizeArea(ResizeArea,ElementsToResize,ElementsMinWidth,
ElementsMinHeights);}addOnloadHook(openStreetMap_Init);$(function(){if(mw.config.get('wgIsMainPage')&&mw.config.get('wgAction')==='view')$('#searchInput').focus();});importScriptURI("/w/index.php?title=Wikipedia:Monobook.js/ReferenceTooltip.js&action=raw&ctype=text/javascript&dontcountme=s");if(typeof $j!='undefined')$j(document).ready(function(){try{if($j('#interProject').length==0)return;var $ul=$j('#interProject').find('ul');if($ul.length==0||$ul.find('li').length==0)return;var id='p-iproject';var portal=document.createElement('div');portal.id=id;var $portal=$j(portal);var $divbody=$j(document.createElement('div'));$divbody.addClass('body').append($j('#interProject').find('ul'));$portal.addClass('portal').html('<h5>Altri progetti</h5>').append($divbody).insertAfter($j('#p-tb'));if(mw.user.options.get('vector-collapsiblenav')){var state=$j.cookie('vector-nav-'+id);if(state=='true'||state==null)$portal.addClass('expanded').find('div.body').show();else $portal.addClass('collapsed');if(
state!=null)$j.cookie('vector-nav-'+$j(this).attr('id'),state,{'expires':30,'path':'/'});var toggle=function($element){$j.cookie('vector-nav-'+$element.parent().attr('id'),$element.parent().is('.collapsed'),{'expires':30,'path':'/'});$element.parent().toggleClass('expanded').toggleClass('collapsed').find('div.body').slideToggle('fast');};$portal.find('h5').keydown(function(event){if(event.which==13||event.which==32)toggle($j(this));}).mousedown(function(){toggle($j(this));$j(this).blur();return false;});}var maxTI=0;$j('[tabindex]').each(function(){if($j(this).is('#mw-panel > div.portal'))return;var ti=parseInt($j(this).attr('tabindex'));if(ti>maxTI)maxTI=ti;});var tabIndex=maxTI+1;$j('#mw-panel > div.portal:not(.persistent) > h5').each(function(){$j(this).attr('tabindex',tabIndex++);});}catch(e){}});;mw.loader.state({"site":"ready"});

/* cache key: itwiki:resourceloader:filter:minify-js:7:3fbb742c7f44e478a8132f9c1984a3fb */
