function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Disabilitato");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->



var fl_java=1;
var brN = navigator.appName;
var brV = parseInt(navigator.appVersion);
var ab = window.navigator.userAgent;
today = new Date();
var day = today.getDay();
if(day==-3) day=1;
getkey=brN.substring(0, 5);
if ((getkey == "Netsc" && brV <= 3)) fl_java=0;
if (getkey == "Micro")
{
var msie = ab.indexOf ( "MSIE " )
msie=parseInt ( ab.substring ( msie+5, ab.indexOf ( ".", msie ) ) )
if (msie > 4) fl_java=2;
}
if (top.frames.length == 0) top.location="../";
defaultStatus = "Pescosolido"
// -->

function centro5(url,nome){ 
largo=660; alto=460;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}

 
function centro6(url,nome){ 
largo=777; alto=569;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}

 
function centro4(url,nome){ 
largo=760; alto=520;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}
function marzo(url,nome){ 
largo=760; alto=540;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",top="+posh+",left="+posw); 
}

function aprile(){ 
largo=800; alto=540;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open("cerimonia_7marzo2004/marzo.htm","Aprile","width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}


function centro9(url,nome){ 
largo=777; alto=560;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}

function centro44(url,nome){ 
largo=529; alto=460;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 
}


function PopIt(label, msg){  
    largo=700; alto=500;
    posh=Math.floor((screen.height-alto)/2); 
    posw=Math.floor((screen.width-largo)/2);  
    var s1 ="<TITLE>Ingrandimento</TITLE>" +    
	"<BODY  BGCOLOR='ecffff'><meta http-equiv='imagetoolbar' content='no'><meta http-equiv='imagetoolbar' content='false'><div align='center'><center>" +        
	"<style>body{ scrollbar-face-color: #7A9BD3; scrollbar-highlight-color: #FFEE33;scrollbar-shadow-color: #000000; scrollbar-3dlight-color:#EECC99; scrollbar-arrow-color: #ffffff;scrollbar-track-color: #83ACF1; scrollbar-darkshadow-color:#3355BB }</style>"+	
	"<TABLE BORDER=0 bgcolor='#ffffbb'><TR><TD WIDTH=100% HEIGHT=90 VALIGN=TOP ALIGN=LEFT>"+
        "<P><SCRIPT language=javascript>function click() {if (event.button==2) {alert('Non Abilitato!!!')}}document.onmousedown=click</SCRIPT> </P>"
    var s2 = "<FONT face='Verdana' size='2' COLOR='000080'><p align='center'><B>"+label+"</B></FONT><P ALIGN='CENTER'><IMG SRC="+msg+"></P>"
    var s3 ="</TD><TD  WIDTH=100%></TD></TR><TR><TD></TD> "+    
	"<FORM><p align='center'><INPUT style='font-family: Verdana; font-size: 8 pt; color: #000000; background-color: #FFFFFF; border: 2px solid #000080; 'TYPE='BUTTON' VALUE='Chiudi'" +                   
	"onClick='self.close()'>&nbsp;&nbsp;&nbsp;<INPUT style='font-family: Verdana; font-size: 8 pt; color: #000000; background-color: #FFFFFF; border: 2px solid #ff0000; ' TYPE='Button' VALUE='Stampa' onClick='window.print()'>"  +    
	"</FORM><tr></TD></TR></TABLE></center></div></BODY>"   
    popup = window.open("","popDialog","height="+alto+",width="+largo+",scrollbars=yes,status=no,location=no,toolbar=no,resizable=1,top="+posh+",left="+posw);   
    popup.document.write(s3+s1+s2)  
    popup.document.close()
}

function popHelp(nome,msg){  
	PopIt(nome, msg)
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//MM_preloadImages('','/foto/mostra36p.jpg','/foto/mostra18p.jpg','/foto/mostra35p.jpg','/festa_maggiop/aaaa0046.jpg','/festa_maggiop/aaaa0051.jpg','/libro/foto/paese29p.jpg','libro/foto/paese30p.jpg,','/processione/prieri1p.jpg','/processione/prieri8p.jpg','/processione/prieri2p.jpg')
 
 
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}
var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo
if(ie){
Ex = "event.x"
Ey = "event.y"
topColor = "#ff0000"
subColor = "#ffffbf"
codColor = "#0000ff"

}

if(ns){
Ex = "e.pageX"
Ey = "e.pageY"
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=overhere
codColor = "#0000ff"
topColor = "#808080"
subColor = "#C0C0C0"
}

function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop))}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 1))
}

function ReplaceContent(layerName){
if(ie){document.all[layerName].innerHTML = ContentInfo}
if(ns){
with(document.layers[layerName].document)
{
   open();
   write(ContentInfo);
   close();
}
}
}

function Activate(){initialize=1}
function deActivate(){initialize=0}

function overhere(e){
if(initialize){

MoveToolTip("ToolTip", Ey, Ex, e)
eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}
else{
MoveToolTip("ToolTip", 0, 0)
eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}
}

function EnterContent(layerName, TTitle, TContent,TCoda){
ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+
'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
'<tr><td width="100%" bgcolor='+topColor+'>'+
'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+
'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+
'</td></tr>'+
'</table>'+
'</td></tr>'+
'<tr><td width="100%" bgcolor='+subColor+'>'+
'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+
'<tr><td width="100%">'+
'<font class="tooltipcontent">'+TContent+'</font>'+
'</td></tr>'+
'</table>'+

'<tr><td width="100%" bgcolor='+codColor+'>'+
'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+
'<font class="tooltiptitle">&nbsp;'+TCoda+'</font>'+
'</td></tr>'+
'</table>'+
'</td></tr>'+
'</table>'+
'</td></tr>'+
'</table>';

ReplaceContent(layerName)
}


function esem(str,larghezza,altezza) {
//largo=529; alto=460;
posh=Math.floor((screen.height-altezza)/2); 
posw=Math.floor((screen.width-larghezza)/2); 
//window.open(url,nome,"width="+largo+",height="+alto+",scrollbars= 1,top="+posh+",left="+posw); 

        searchWin = window.open(str,"popup","toolbar= 0,location= 0,directories= 0,status= 0,menubar= 0,scrollbars= 1,resizable= 1,copyhistory= 0,width=" + larghezza + ",height=" + altezza + ",top="+posh+",left="+posw);
}

 
function esempio(str) {

        searchWin = window.open(str,'esempio','scrollbars=yes,resizable=yes,width=529,height=460,left=160,top=30,status=no,location=no,toolbar=no,menubar=no,directories=no,cophystory=no');
}

// --> 
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){ 
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}

clearTimeout(nereidFadeTimers[object.sourceIndex]);

diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;

if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
// -->

 
//Esempio "flashlink0", "flashlink1", e così via
//La proprietà Flashtype può assumere due valori: 0 (lampeggia il testo) e 1 (lampeggia lo sfondo).
//Flashcolor, invece, può assumere valori del tipo: "red", "lime", "green", "yellow" e altri.


var flashlinks=new Array()
function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype") : flashlinks[i].flashtype
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
} /* FOR... /*
} /* ChangeLinkColor */
}
function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null)
{
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} /* WHILE...*/
} /* IF */
else if (document.getElementById)
{
while (document.getElementById("flashlink"+i)!=null)
{
flashlinks[i]= document.getElementById("flashlink"+i)
i++
} /* WHILE */
} /* ELSE IF */
/* Stabilisce la frequenza di intermittenza */
setInterval("changelinkcolor()", 1000)
}
if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init


 