// -->
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 = "PastenaGrotte"
// -->
function aprile(){ 
largo=760; 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+",top="+posh+",left="+posw); 
}

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=680; alto=520;
posh=Math.floor((screen.height-alto)/2); 
posw=Math.floor((screen.width-largo)/2); 
window.open(url,nome,"width="+largo+",scrollbars=1,height="+alto+",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)
}

//MM_preloadImages('','/foto_centrale/avis_tuttep.jpg','/foto_centrale/museogrotte.jpg','/foto_centrale/prolocop.jpg','/foto_centrale/comesiraggiungonop2.jpg','/foto_centrale/grotte1.jpg','/foto_centrale/grottedipastena.jpg','/foto_centrale/stalat.jpg','/foto_centrale/grotte.jpg','/croce/torrep.jpg','/foto_centrale/scrignop.jpg','/foto_centrale/librop.jpg','/foto_centrale/copertina_tavolap.jpg','/foto_centrale/dscf5676p.jpg','/foto_centrale/ssinforop.jpg','/foto_centrale/cartolina_pastena2p.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);
}
}
// -->

