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=660; alto=520;
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 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=600; alto=500;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 

//    var s1 = msg;
	var s2 = label;   
	var s3 =       "<TITLE>Pescosolido</TITLE><BODY  BGCOLOR='ffffff'><CENTER><FORM><INPUT TYPE='BUTTON' VALUE='Chiudi'" +                   
	"onClick='self.close()'><INPUT TYPE='Button' VALUE='Stampa' onClick='window.print()'> </FORM>"; 	  
	popup = window.open("","popDialog","height=500,width=600,scrollbars=yes,status=no,location=no,toolbar=no,resizable=1,top="+posh+",left="+posw);   
	popup.document.write(s3+s2);  
	popup.document.close();
}

function popHelp(){  
	PopIt()
}
//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);
}
}
// -->
 
