function openpopup(thisurl,thiswidth,thisheight) {
	tisurl=thisurl;
	tiswidth=thiswidth;
	tisheight=thisheight;
popwindow=window.open(tisurl, 'newwindow', 'resizable=yes,toolbar=no,width='+tiswidth+',height='+tisheight+',status=no,location=no');
}



i0 = new Image;
i1 = new Image;
i2 = new Image;
i3 = new Image;
i4 = new Image;
i5 = new Image;
i6 = new Image;
i7 = new Image;
i8 = new Image;
i9 = new Image;

imgSrc = new Array;
imgSrc[0] = prefix+'img/photogallery/digit/h0.gif';
imgSrc[1] = prefix+'img/photogallery/digit/h1.gif';
imgSrc[2] = prefix+'img/photogallery/digit/h2.gif';
imgSrc[3] = prefix+'img/photogallery/digit/h3.gif';
imgSrc[4] = prefix+'img/photogallery/digit/h4.gif';
imgSrc[5] = prefix+'img/photogallery/digit/h5.gif';
imgSrc[6] = prefix+'img/photogallery/digit/h6.gif';
imgSrc[7] = prefix+'img/photogallery/digit/h7.gif';
imgSrc[8] = prefix+'img/photogallery/digit/h8.gif';
imgSrc[9] = prefix+'img/photogallery/digit/h9.gif';
i0.src = imgSrc[0];
i1.src = imgSrc[1];
i2.src = imgSrc[2];
i3.src = imgSrc[3];
i4.src = imgSrc[4];
i5.src = imgSrc[5];
i6.src = imgSrc[6];
i7.src = imgSrc[7];
i8.src = imgSrc[8];
i9.src = imgSrc[9];
function oraCheck(){
krucial = new Date;
ora = krucial.getHours();
min = krucial.getMinutes();
sec = krucial.getSeconds();
giorno = krucial.getDate();
mese = krucial.getMonth()+1;
anno = krucial.getFullYear();
if (sec < 10)
{
sec0 = "0";
}
else
{
sec0 = "";
}
if (min < 10)
{
min0 = "0";
}
else
{
min0 = "";
}
if (ora < 10)
{
ora0 = "0";
}
else
{
ora0 = "";
}
if (mese < 10)
{
mese0 = "0";
}
else
{
mese0 = "";
}
if (giorno < 10)
{
giorno0 = "0";
}
else
{
giorno0 = "";
}
if (anno < 10)
{
anno0 = "0";
}
else
{
anno0 = "";
}
DinaDate = "" + giorno0 + giorno +  mese0 + mese + anno0 + anno;
Dinaora = ora0 + ora +  min0 + min + sec0 + sec;
char1h = Dinaora.charAt(0);
document.min11.src = imgSrc[char1h];
char2h = Dinaora.charAt(1);
document.min12.src = imgSrc[char2h];
char1m = Dinaora.charAt(2);
document.min1.src = imgSrc[char1m];
char2m = Dinaora.charAt(3);
document.min2.src = imgSrc[char2m];
char1s = Dinaora.charAt(4);
document.sec1.src = imgSrc[char1s];
char2s = Dinaora.charAt(5);
document.sec2.src = imgSrc[char2s];
char1h = DinaDate.charAt(0);
document.giorno1.src = imgSrc[char1h];
	char2h = DinaDate.charAt(1);
document.giorno2.src = imgSrc[char2h];
char1m = DinaDate.charAt(2);
document.mese1.src = imgSrc[char1m];
char2m = DinaDate.charAt(3);
document.mese2.src = imgSrc[char2m];
char1s = DinaDate.charAt(4);
document.anno1.src = imgSrc[char1s];
char2s = DinaDate.charAt(5);
document.anno2.src = imgSrc[char2s];
char3s = DinaDate.charAt(6);
	document.anno3.src = imgSrc[char3s];
	char4s = DinaDate.charAt(7);
document.anno4.src = imgSrc[char4s];tempo = setTimeout("oraCheck()", 1000)
}



<!-- Original: Altan (snow@altan.hr) -->
var no = 50; // snow number
var speed = 1; // smaller number moves the snow faster
var snowflake = "/fiocco.gif";

var ns4 = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 1024, doc_height = 2000;
if (ns4||ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4) { // set layers
document.write("<layer name=dot"+i+" left=15 ");
document.write("top=15 visibility=show><img src=");
document.write(snowflake+" border=0></layer>");
} else if (ie4up||ns6up) {
document.write("<div id=dot"+i+" style=position:");
document.write("absolute;z-index:"+i+";visibility:");
document.write("visible;top:15px;left:15px;><img src=");
document.write(snowflake+" border=0></div>");
}
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
if(document.layers) {
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } else {
document.getElementById("dot"+i).style.top=yp[i];
document.getElementById("dot"+i).style.left=xp[i]+am[i]*Math.sin(dx[i]); }
}
setTimeout("snowNS()", speed);
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
if(document.all) {
document.all["dot"+i].style.top=yp[i];
document.all["dot"+i].style.left=xp[i]+am[i]*Math.sin(dx[i]); } else {
document.getElementById("dot"+i).style.top=yp[i];
document.getElementById("dot"+i).style.left=xp[i]+am[i]*Math.sin(dx[i]); }
}
