<?xml version="1.0"  standalone="no" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<head>
<script type="text/javascript"
         src="prototype.js">
	  </script>
</head>
<body>
<script>
   var e = new PeriodicalExecuter(aggiornatempo,10);
   function aggiornatempo()
         {
   new Ajax.Request('clockxml.php',
         {
	 onSuccess: function(transport) {
     var ore = transport.responseXML.getElementsByTagName('ore');
     var minuti = transport.responseXML.getElementsByTagName('minuti');
     var secondi = transport.responseXML.getElementsByTagName('secondi');
     $('ora').childNodes[0].nodeValue= ore[0].childNodes[0].nodeValue+" "+minuti[0].childNodes[0].nodeValue+" "+ secondi[0].childNodes[0].nodeValue;
     var iList = new Array(
'http://farm2.static.flickr.com/1225/1361099998_cb4e78e08e_b.jpg',
'http://farm2.static.flickr.com/1052/1361099986_c2f05b47c1_b.jpg',
'http://farm2.static.flickr.com/1126/1361099974_d9dea2b6ae_b.jpg');
     var im = Math.round(Math.random() * (iList.length-1) );
     parent.foto.location.href=iList[im];
   //parent.foto.ciao(); 
   parent.blank.ciao(); 
            }
            });
    	        }

	    </script>
<svg:svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" >
<svg:g>
	<svg:rect width="120" height="40" style="fill:cyan" />
		<svg:text x="10" y="20" id="ora" >ORA</svg:text>
		</svg:g>
		</svg:svg>
		</body></html>
