﻿document.write('<div id="loading"><em>Se cercavi i <strong>Freeware</strong>: questo &egrave; il sito giusto<br>...attendi pochi istanti il caricamento</em></div>');
window.onload=function(){
	document.getElementById("loading").style.display="none";
}

function Over(src,clrOver) { src.bgColor =clrOver;}

function Out(src,clrIn) {src.bgColor = clrIn;}

var bookmarkurl="http://www.gratispro.it"
var bookmarktitle="GRATIS PROgrammi"
function addbookmark(){
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)	
	else if (window.sidebar)
		window.sidebar.addPanel(bookmarktitle, bookmarkurl, "")
	}


function cowin(URL) {
	window.open(URL,'AAAF','scrollbars=no,location=no,menubar=no,toolbar=no,personalbar=no,status=no,width=380,height=300,resizable=yes');
}

function winlink(URL) {
	window.open(URL,'gratispro','scrollbars=yes,location=no,menubar=no,toolbar=no,personalbar=no,status=no,width=630,height=420,resizable=no');
}

/*BACKGROUND IMAGE ORARIO */
var backgrp="http://www.gratispro.it/bkgp.jpg"
var backgrm="http://www.gratispro.it/bkgm.jpg"
var backgra="http://www.gratispro.it/bkga.jpg"
var backgre="http://www.gratispro.it/bkge.jpg"
var backgrn="http://www.gratispro.it/bkgn.jpg"

var now = new Date();
var hrs = now.getHours();

   if (hrs < 5)
      backgr=backgrn
   else if (hrs < 10)
      backgr=backgrp
   else if (hrs < 14)
      backgr=backgrm
   else if (hrs <= 18)
      backgr=backgra
   else if (hrs <= 21)
      backgr=backgre
   else
      backgr=backgrn
document.write('<style type="text/css">')
document.write('BODY {background-image: url('+backgr+'); background-repeat: repeat-x; margin-top:0px; margin-left:0px; margin-right:0px; margin-bottom:0px;}</style>')

