// areaventuno.com

// orologio
// inizio
document.write('<!-- Begin Hiding Script -->')
var watchID = null
var watchRun = false 
function startwatch(){
stopwatch()
dayTime()
}
function stopwatch(){
if(watchRun)
clearTimeout(watchID)
watchRun = false
}
function dayTime() {
day = new Date();
hour = day.getHours();
minute = day.getMinutes();
second = day.getSeconds();
if (hour > 12) {
hours = hour - 12;
part = 'pm'}
else {
part = 'am';
if (hour == 0) {
hours = 12
}
else {
hours = hour
}
} 
if (minute < 10) {minutes = 0}
else {minutes = ""} 
if (second < 10) {seconds = 0}
else {seconds =""}
if ((day.getMonth()+1) < 10) {mese = 0}
else {mese = ""}
date = ('' +day.getDate()+"/"+mese+""+(day.getMonth() + 1)+ "/"+day.getFullYear()+ '');
time = ('' + hour + ":"+minutes+""+minute+ ":"+seconds+""+second+ '')
document.timedate.time.value = time
document.timedate.date.value = date
watchID = setTimeout("dayTime()",1000)
watchRun = true
}
document.write('<!-- End Hiding Script -->')
// fine

// scroll barra
// inizio
// termina le frasi con un ^
// Se non metti un ^ alla fine del periodo la frase non verra' ripetuta.

message     = "welcome to magicotempe.com^" +
"benvenuti in magicotempe.com^"
scrollSpeed = 50
lineDelay   = 2500
txt         = ""
function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
scrollText(0)
// fine

// art windows
// inizio
<!-- Debut script
var navigateur=navigator.appName;var abrege=navigateur.substring(0,2);
var ftx=672;var fty=523;
var fpx=0;var fpy=0;var fpxf=0;var fpxc=0;var tempobe=0;var toclose=0;var decax=0;var decay=0;var deplace=0;

function Mouvement() {
	Xpos = event.clientX+document.body.scrollLeft;
	Ypos = event.clientY+document.body.scrollTop;
  if (deplace!=0) {
  	if (deplace==1) {
  		decax=Xpos-fpx;
  		decay=Ypos-fpy;
  		deplace=2;
  	}
 	  fpx=Xpos-decax;
 	  fpy=Ypos-decay;
 	  document.all.fenetre.style.top=fpy;
 	  document.all.fenetre.style.left=fpx;
 	  return false;
  }	
}

document.onmousemove = Mouvement;

function cliquer(flag) {
	deplace=flag;
	return false;
}

function beWindow(fpx,fpy,ftx,fty,ftitre,fichier) {
var ftxb=672;var hide="hidden";

fchaine=''
+'<div id="fenetre" style="position:absolute;visibility:hidden;z-index:50;top:'+fpy+'px;left:'+fpx+'px;width:'+ftx+'px;height:'+fty+'px;bgcolor:#0000ff;">'
+'<div id="window" style="position:absolute;z-index:50;top:21px;left:0px;width:'+(ftx)+'px;height:'+(fty)+'px;">'
+'<div id="hg" style="position:absolute;z-index:50;top:0px;left:0px;width:6px;height:6px;"><img src="/images/popup/hg.gif" width="6" height="6"></div>'
+'<div id="hd" style="position:absolute;z-index:50;top:0px;left:'+(ftx-6)+'px;width:6px;height:6px;"><img src="/images/popup/hd.gif" width="6" height="6"></div>'
+'<div id="bg" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:0px;width:6px;height:6px;"><img src="/images/popup/bg.gif" width="6" height="6"></div>'
+'<div id="bd" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:'+(ftx-6)+'px;width:6px;height:6px;"><img src="/images/popup/bd.gif" width="6" height="6"></div>'
+'<div id="h" style="position:absolute;z-index:50;top:0px;left:6px;width:1px;height:6px;"><img src="/images/popup/h.gif" width="'+(ftx-10)+'" height="6"></div>'
+'<div id="b" style="position:absolute;z-index:50;top:'+(fty-6)+'px;left:6px;width:1px;height:6px;"><img src="/images/popup/b.gif" width="'+(ftx-10)+'" height="6"></div>'
+'<div id="g" style="position:absolute;z-index:50;top:6px;left:0px;width:6px;height:1px;"><img src="/images/popup/g.gif" width="6" height="'+(fty-10)+'"></div>'
+'<div id="d" style="position:absolute;z-index:50;top:6px;left:'+(ftx-6)+'px;width:6px;height:1px;"><img src="/images/popup/d.gif" width="6" height="'+(fty-10)+'"></div>'
+'</div>'
+'<div id="titre" style="position:absolute;z-index:50;top:1px;left:0px;width:'+(ftx)+'px;height:21px;" onmousedown="return cliquer(1);" onmouseup="return cliquer(0);">'
+'<table CELLPADDING=0 CELLSPACING=0 border=0 width="'+(ftxb)+'" height="21"><tr><td background="/images/popup/tm.gif"><FONT FACE="Arial,Helvetica" SIZE=2><span style="position:absolute;top:4px;left:27px;"><B><img src="/images/popup/'+ftitre+'" alt="www.areaventuno.com"></B></span><span style="position:absolute;top:4px;right:10px;"><img src="/images/popup/artwindows.gif" alt="www.areaventuno.com"></span></FONT></td></tr></table>'
+'<div style="position:absolute;z-index:50;top:0px;left:0px;"><a href="#" onclick="javascript:return closebe();"><IMG src="/images/popup/tg.gif" BORDER=0 WIDTH=21 HEIGHT=21></A></div>'
+'<div style="position:absolute;z-index:50;top:0px;left:'+(ftxb-4)+'px;"><IMG src="/images/popup/td.gif" BORDER=0 WIDTH=4 HEIGHT=21></div>'
+'</div>'
+'<div id="interieur" style="position:absolute;z-index:50;top:27px;left:6px;width:'+(ftx-12)+'px;height:'+(fty-12)+'px;">'
+'<iframe name="inbeos" TOP=0 LEFT=0 WIDTH='+(ftx-12)+' HEIGHT='+(fty-12)+' border=0 FRAMEBORDER=0 scrolling=AUTO src="'+fichier+'"></iframe>'
+'</DIV>'
+'</div>'
+'</div>'
document.write(fchaine);
}
function slidebe() {
	if (toclose!=3) {
    fpx+=fpxc;
    if ((fpx>fpxf) && (toclose==0)) {fpx=fpxf;fpxc=0;toclose=3;}
    if (toclose==1) {fpxc=fpxc-15;}
    document.all.fenetre.style.left=fpx;
    if (fpx<-700) {
      fpxc=0;fpx=700;toclose=0;
      inbeos.location.href="vide.html";
      document.all.fenetre.style.visibility="hidden";
    }
  }
  tempobe=setTimeout('slidebe();',5);
}
function apercu(fichier) {
if (abrege=="Mi"){
self.clearTimeout();self.clearInterval();
fpy=document.body.scrollTop+(document.body.clientHeight/2)-290;
document.all.fenetre.style.top=fpy;
document.all.fenetre.style.left=-700;fpx=-700;fpxf=(document.body.clientWidth/2)-460;fpxc=50;toclose=0;
document.all.fenetre.style.visibility="visible";
inbeos.location.href=fichier;
}
else {myWindow=open(fichier, "newWindow", "width=450,height=275,menubar=no,resizable=no,scrollbars=YES,status=no,toolbar=no");}
return false;
}
function closebe() {
fpxc=80;toclose=1;
return false;
}
function CreerFenetreBe(titrepage) {
  if (abrege=="Mi"){beWindow(0,0,672,523,titrepage,"vide.html");slidebe();}
}
// fine

// disattiva tasto destro
// inizio
if (window.Event)
  document.captureEvents(Event.MOUSEUP);
function nocontextmenu()  // questa funzione e usata per IE4.
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}
function norightclick(e)	// questa funzione è usata per tutti gli altri
{
	if (window.Event)	// scelta tra, IE o NAV?
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
	else
		if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}
document.oncontextmenu = nocontextmenu;		// per IE5+
document.onmousedown = norightclick;		// per tutti
// fine