document.write('<br><table align="center" cellpadding="1" cellspacing="0" border="0"><tr><td>');

function segnalasito() {
window.open("segnala.html","","left=50,top=50,width=450,height=250,scrollbars=no,menubars=no,toolbars=no,resizable=no,location=no,");
}
document.write('<a class="promo" href="javascript:segnalasito()" ');
document.write('onMouseover="window.status=\'Segnala il sito ad un amico\';return true" onMouseout="window.status=\'\';return true;">');

// aggiungi ai preferiti
var bookmarkurl="http://www.hoteldenardis.it"
var bookmarktitle="Hotel De Nardis"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
document.write('Segnala questo sito</a> - <a class="promo" href="javascript:addbookmark()" ');
document.write('onMouseover="window.status=\'Aggiungi questo sito ai preferiti\';return true" onMouseout="window.status=\'\';return true;">');

// INIZIO LISTA DEI LINK
function LinkList() {
var myheader = "<head><title>Collegamenti in "+document.title+"</title></head>";
myheader = myheader + "<body bgcolor=#f2f5f1>";
var myfont = "<font style=\"font: 8pt Verdana, Arial, Helvetica, Sans-serif; line-height:18pt;\" face=\"verdana, tahoma, geneva\" size=\"-1\" >";
var mytext = "<center><b>Collegamenti presenti nella pagina</b></center><ol>";
var myendfont = "</font>";
var myendheader = "</body>";

windowprops = "menubars=no,location=no,toolbars=no,scrollbars=yes,"+"width=350,height=400,top=50,left=50";
self.name = "main";

if(document.all) {
for (i=0; i<document.links.length; i++) {
if(document.links[i].innerText)
if(document.links[i].innerText != " ")
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].innerText+"</a><br>";
else
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i]+"</a><br>" ;
   }
}
else {
for (i=0; i<document.links.length; i++) {
if(document.links[i].text) {
if(((document.links[i].text).indexOf("javascript:")) == -1) {
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].text+"</a><br>" ;
   }
}
else { }
   }
}
mytext = mytext + "</ol><center><a href='javascript:window.close()'>[ CHIUDI ]</a></center><BR>";

linkswin = window.open("","",windowprops);
with (linkswin.document) {
open();
write(myheader + myfont + mytext + myendfont + myendheader);
close();
   }
}
// FINE LISTA DEI LINK

document.write('Aggiungi ai preferiti</a> - <a class="promo" href="javascript:LinkList()" '); document.write('onMouseover="window.status=\'Lista dei links nella pagina\';return true" onMouseout="window.status=\'\';return true;">'); 
document.write('Links nella pagina</a></td>');
document.write('<td> - <a class="promo" href="link.html" '); document.write('onMouseover="window.status=\'pagina promozionale\';return true" onMouseout="window.status=\'\';return true;">Promo</td></tr></table>');
document.write('<div align="center" class="promo">Realizzato da <a class="promo" target="_blank" href="http://www.biagiolaterra.it" ');
document.write('onMouseover="window.status=\'sito personale di Biagio La Terra\';return true" onMouseout="window.status=\'\';return true;">');
document.write('Biagio La Terra</a>. Copyright 2006-2008. Tutti i diritti riservati. ');

//ultima modifica
	var a;
	a=new Date(document.lastModified);
	lm_year=a.getYear();lm_year=((lm_year<1000)?((lm_year<70)?2000:1900):0)+lm_year;
	lm_month=a.getMonth()+1;lm_month=((lm_month<10)?'0':'')+lm_month;
	lm_day=a.getDate();lm_day=((lm_day<10)?'0':'')+lm_day;
	lm_hour=a.getHours();lm_hour=((lm_hour<10)?'0':'')+lm_hour;
	lm_minute=a.getMinutes();lm_minute=((lm_minute<10)?'0':'')+lm_minute;
	lm_second=a.getSeconds();lm_second=((lm_second<10)?'0':'')+lm_second;
	document.write("Modificato:" +lm_day+'/'+lm_month+'/'+lm_year+'-'+lm_hour+':'+lm_minute+':'+lm_second);

document.write('</div><br><table align="center" cellpadding="2" cellspacing="0" border="0"><tr><td></td><td>');

//CONTATORE
c_="";l_=""+screen.width;d_=document.referrer;
if (self != top){try {r_=""+escape(parent.document.referrer);}catch(e_r) {r_=""+escape(d_);}}
else {r_=""+escape(d_);}
if(navigator.appName!="Netscape"){c_=screen.colorDepth}
else{c_=screen.pixelDepth}
document.write("<a href=\"http://s4.shinystat.com/cgi-bin/shinystatv.cgi?USER=denardis&NH=1\" Target=\"_new\"><img src=\"http://s4.shinystat.com/cgi-bin/shinystat.cgi?USER=denardis&REFER="+r_+"&COLOR="+c_+"&SIZE="+l_+"\" border=\"0\" alt=\"contatore\"></a></td><td>"); 

document.write('<a class="img" href="http://www.w3.org/" target="_blank"><img src="pic/standards.gif" alt="w3c standard" width="80" height="15" border="0" vspace="1"></a><br>');
document.write('<a class="img" href="http://www.w3.org/Style/CSS/" target="_blank"><img src="pic/w3c-valid-css.png" width="80" height="15" border="0" vspace="1" alt="Valid CSS!"></a></td><td>');
document.write('<a class="img" href="http://www.w3.org/TR/REC-html40/" target="_blank"><img src="pic/w3c-html.gif" width="80" height="15" border="0" vspace="1" alt="Valid HTML 4.0!"></a><br>');
document.write('<a class="img" href="http://www.w3.org/TR/xhtml1/" target="_blank"><img src="pic/w3c-xhtml.png" width="80" height="15" border="0" vspace="1" alt="Valid XHTML 1.0!"></a></td><td>');
document.write('<a class="img" href="http://my.opera.com/Biagio2/affiliate/" target="_blank"><img vspace="1" src="pic/opera.gif" width="80" height="15" alt="Opera" border="0"></a><br>');
document.write('<a class="img" href="http://www.mozillaitalia.org/firefox/" target="_blank"><img src="pic/firefox.png" alt="firefox" width="80" height="15" border="0" vspace="1"></a></td><td>');
document.write('<a class="img" href="ror.xml" target="_blank"><img vspace="1" src="pic/ror.gif" width="80" height="15" border="0"></a><br>');
document.write('<a class="img" href="ror.xml" target="_blank"><img src="pic/rorsitemap.gif" vspace="1" alt="ror" width="80" height="15" border="0"></a></td><td>');

//openoffice
document.write('<a class="img" href="http://it.openoffice.org/" target="_blank"><img src="pic/ooo-button-small.gif" alt="OpenOffice" width="88" height="32" border="0"></a>');
document.write('</td></tr></table></td></tr></table>');

// funzione che non permette di usare il tasto destro del mouse (solo ie)
var line = "\r"
var newline = "\r\r"

var Temp;
setClock();

function setClock() {
Temp = "";
now = new Date();
var CurHour = now.getHours();
var CurMinute = now.getMinutes();
now = null;
if( CurHour > 12 ) {
CurHour = CurHour - 12;
ampm = 1;
}
else
ampm = 0;
if( CurHour == 0 )
CurHour = 12;
if( CurMinute < 10 )
CurMinute = "0" + CurMinute;
CurHour = ""+ CurHour + ":" + CurMinute + "";
if( ampm == 1 )
CurHour = CurHour + " P.M.";
else
CurHour = CurHour + " A.M.";
Temp = CurHour;
}

function pathOnly (InString)  {
LastSlash=InString.lastIndexOf ('/', InString.length-1)
OutString=InString.substring  (0, LastSlash+1)
return (OutString);     
}
var clock = Temp
	

	var winwidth= window.screen.width
	var winheight= window.screen.height
	var screenresolution= "La risoluzione video e\': "+window.screen.width+" x "+window.screen.height
	
	var expDays = 30;
    var exp = new Date(); 
    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

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)) {

var name = navigator.appName
var vers = navigator.appVersion
var browser = "Stai utilizzando " + name +" "

alert("Hotel De Nardis"+newline+"Questo sito e\' stato realizzato da Biagio La Terra"+line+"CopyRight 2006-2008"+newline+screenresolution+newline+browser);

return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

function expand() { 
window.resizeTo(screen.availWidth, screen.availHeight); 
}


