// javascript re-set.it

tmt = null;
r = 0;

function updateBanner() {
 bannerLnk= new Array(
  "http://www.formez.it/",
  "http://www.funzionepubblica.it/",
  "http://www.opportunitalia.it/",
  "http://www.tesoro.it/",
  "http://www.unioncamere.it/"
 );

 bannerSrc= new Array(
  "/img/bannerpartner/formezbanner.gif",
  "/img/bannerpartner/funzionebanner.gif",
  "/img/bannerpartner/sviluppoitaliabanner.gif",
  "/img/bannerpartner/tesorobanner.gif",
  "/img/bannerpartner/unioncamerebanner.gif"
 );

 clearTimeout(tmt);
 r=Math.floor(Math.random()*bannerSrc.length);
 window.document.images["partnersSrc"].src = bannerSrc[r];
 tmt=setTimeout("updateBanner()","4000");
};

function openBanner() {
 window.open(bannerLnk[r],"_blank");
};

function writeData() {
 day = new Array("domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato");
 month = new Array("gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre");
 s="";
 d = new Date();
 s += day[d.getDay()];
 s += " "+d.getDate();
 s += " "+month[d.getMonth()];
 if (d.getHours()<10) {
  s += " 0"+d.getHours();
 } else {
  s += " "+d.getHours();
 };
 
 if (d.getMinutes()<10) {
  s += ":0"+d.getMinutes();
 } else {
  s += ":"+d.getMinutes();
 };
 return s;
}

function writeMenu() {window.document.write(''+'\n');
window.document.write('<table border="0" cellpadding="0" cellspacing="0" width="760" height="117" align="CENTER">'+'\n');
window.document.write('  <tr>'+'\n');
window.document.write('    <td rowspan="4" colspan="1" width="109" height="117"><a href="/home/"><img name="Image7770" src="/img/head/upmenu/Image777_1x1.gif" width="109" height="117" border="0" alt="home"></a></td>'+'\n');
window.document.write('    <td rowspan="3" colspan="1" width="448" height="94"><img name="Image7771" src="/img/head/upmenu/Image777_1x2.gif" width="448" height="94" border="0"></td>'+'\n');
window.document.write('    <td rowspan="1" colspan="2" width="203" height="18"><img name="Image7772" src="/img/head/upmenu/Image777_1x3.gif" width="203" height="18" border="0"></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td rowspan="1" colspan="1" width="191" height="60"><img name="partnersSrc" src="/img/bannerpartner/sfondo.gif" width="191" height="60" border="0" alt=""></td>'+'\n');
window.document.write('    <td rowspan="1" colspan="1" width="12" height="60"><img name="Image7774" src="/img/head/upmenu/Image777_2x2.gif" width="12" height="60" border="0"></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td rowspan="1" colspan="2" width="203" height="16"><img name="Image7775" src="/img/head/upmenu/Image777_3x1.gif" width="203" height="16" border="0"></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('      <form method="post" action="/cgi-bin/re-set-htsearch">'+'\n');
window.document.write('      <td rowspan="1" colspan="3" width="651" height="23" bgcolor="#2F70FF"> '+'\n');
window.document.write('        <div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b>&nbsp;&nbsp;&nbsp;Re-SET: '+'\n');
window.document.write('          un\'iniziativa promossa da <a href="http://www.forumpa.it" target="_blank" class="linkbarrablu">FORUM '+'\n');
window.document.write('          P.A.</a>&nbsp;&nbsp;&nbsp;</b></font> '+'\n');
window.document.write('          <input type="hidden" name="method" value="and">'+'\n');
window.document.write('          <input type="hidden" name="format" value="builtin-long">'+'\n');
window.document.write('          <input type="hidden" name="sort" value="score">'+'\n');
window.document.write('          <input type="hidden" name="config" value="htdig.re-set">'+'\n');
window.document.write('          <input type="hidden" name="restrict" value="">'+'\n');
window.document.write('          <input type="hidden" name="exclude" value="">'+'\n');
window.document.write('          <input type="text" size="30" name="words" value="" class="form">'+'\n');
window.document.write('          <input type="submit" value="Search" class="form" name="submit">'+'\n');
window.document.write('        </div>'+'\n');
window.document.write('      </td>'+'\n');
window.document.write(' </form>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write(' </table>'+'\n');
window.document.write(' '+'\n');
window.document.write('<table width="760" border="0" align="CENTER" cellpadding="0" cellspacing="0">'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td width="242" bgcolor="#BCBA6C"> '+'\n');
window.document.write('      <table border="0" cellpadding="0" cellspacing="0" width="322">'+'\n');
window.document.write('        <tr> '+'\n');
window.document.write('          <td valign="BOTTOM">&nbsp;</td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/home/" class="barratestata">home</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/progetto.html" class="barratestata">il '+'\n');
window.document.write('            progetto</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/staff.html" class="barratestata">lo '+'\n');
window.document.write('            staff</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/credits.html" class="barratestata">credits</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/feedback.html" class="barratestata">feedback</a></b></font></td>'+'\n');
window.document.write('        </tr>'+'\n');
window.document.write('      </table>'+'\n');
window.document.write('    </td>'+'\n');
window.document.write('    <td width="18" align="LEFT" valign="TOP" bgcolor="#0033FF"><img width="18" height="19" src="/img/head/upmenu/center-img-up.gif"></td>'+'\n');
window.document.write('    <td width="422" align="right" bgcolor="#0033FF"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">&nbsp;</font></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td width="242">&nbsp;</td>'+'\n');
window.document.write('    <td width="18" align="LEFT" valign="bottom" bgcolor="#CCCC66"><img src="/img/head/angolino18-up.gif" width="18" height="18"></td>'+'\n');
window.document.write('    <td width="422" align="right" bgcolor="#BCBA6C"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">'+writeData()+'&nbsp;</font></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('</table>'+'\n');
window.document.write(''+'\n');
 
// updateBanner();
};

function writeFoot() {window.document.write(''+'\n');
window.document.write('<table width="758" border="0" align="CENTER" cellpadding="0" cellspacing="0">'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td width="242" bgcolor="#BCBA6C"> '+'\n');
window.document.write('      <table border="0" cellpadding="0" cellspacing="0" width="322">'+'\n');
window.document.write('        <tr> '+'\n');
window.document.write('          <td valign="BOTTOM">&nbsp;</td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/progetto.html" class="barratestata">il '+'\n');
window.document.write('            progetto</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/staff.html" class="barratestata">lo '+'\n');
window.document.write('            staff</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a href="/info/credits.html" class="barratestata">credits</a></b></font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">|</font></td>'+'\n');
window.document.write('          <td align="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><b><a  href="/info/feedback.html" class="barratestata">feedback</a></b></font></td>'+'\n');
window.document.write('        </tr>'+'\n');
window.document.write('      </table>'+'\n');
window.document.write('    </td>'+'\n');
window.document.write('    <td width="18" align="LEFT" valign="TOP"><img src="/img/head/upmenu/center-img-up.gif" width="18" height="19"></td>'+'\n');
window.document.write('    <td width="422" align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">'+writeData()+'&nbsp;&nbsp;</font></td>'+'\n');
window.document.write('  </tr>'+'\n');
window.document.write('</table>'+'\n');
window.document.write('<table width="760" border="0" cellspacing="1" cellpadding="0" align="center">'+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#FF6600"><a href="/news/" class="menu2">News</a></td>'+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#FF9900"><img src="/img/menuupdw.gif" heigth="4" width="7" border="0"> '+'\n');
window.document.write('      <font class="menu2" title="+"><img src="/img/e-white.gif" width="8" height="8">Press</font></td>'+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#FF3333"><img src="/img/menuupdw.gif" heigth="4" width="7" border="0"> '+'\n');
window.document.write('      <font class="menu2" title="+">Focus</font></td>'+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#9999FF"><img src="/img/menuupdw.gif" heigth="4" width="7" border="0"> '+'\n');
window.document.write('      <font class="menu2" title="+ Osservatorio Sviluppo Locale">Osservatorio</font></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#0099FF"><img src="/img/menuupdw.gif" heigth="4" width="7" border="0"> '+'\n');
window.document.write('      <font class="menu2" title="+">Risorse in rete</font></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#FF9900"><img src="/img/menuupdw.gif" heigth="4" width="7" border="0"> '+'\n');
window.document.write('      <font class="menu2" title="-">punto.eGovernment</font></td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('         '+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#6699FF"><a href="/appuntamenti" class="menu2">Appuntamenti</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/rassegnastampa/ultimasettimana.html" class="submenu2">Ultima settimana</a><br>'+'\n');
window.document.write('           </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/interviste" class="submenu2">L\'intervista</a><br>'+'\n');
window.document.write('           </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/osservatorio" class="submenu2">Overview</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/istituzionale.html" class="submenu2">Area '+'\n');
window.document.write('      istituzionale</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/rilevazioneprogetti" class="submenu2">il '+'\n');
window.document.write('      premio</a></td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('         '+'\n');
window.document.write('  <tr bgcolor="#DADADA"> '+'\n');
window.document.write('    <td class="menul2" width="126">&nbsp;</td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/rassegnastampa/archivio.html" class="submenu2">Archivio</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/primopiano/opinione.html" class="submenu2">L\'opinione</a><br>'+'\n');
window.document.write('           </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/bancaprogetti" class="submenu2">Banca '+'\n');
window.document.write('      progetti</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/bestpractice.html" class="submenu2">Area '+'\n');
window.document.write('      best practice</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/primopiano/puntoegov.html" class="submenu2">il '+'\n');
window.document.write('      dossier</a></td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('         '+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#9999FF"><a href="/biblioteca" class="menu2">Biblioteca</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA">&nbsp;</td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/primopiano/esperienzeinevidenza.html" class="submenu2">Esperienze '+'\n');
window.document.write('      in evid.</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/bancaprogetti/zoom.html" class="submenu2" title="Progetti in evidenza">Zoom</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/programmazione.html" class="submenu2">Program. '+'\n');
window.document.write('      negoziata</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#9966FF"><a href="/my/" class="menu2">myRe-SET</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('         '+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#68C258"><a href="/marketingterritoriale" class="menu2">Marketing '+'\n');
window.document.write('      territoriale</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#999999"><a href="/documenti" class="menu2">Contributi</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/primopiano/dossier.html" class="submenu2">Dossier</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/osservatorio/monitor.html" class="submenu2">Monitor</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/sviluppo.html" class="submenu2">Agenzie '+'\n');
window.document.write('      di sviluppo</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA">&nbsp;</td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('         '+'\n');
window.document.write('  <tr> '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#D889E0"><a href="/elabs/" class="menu2">E-labs</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#559FF2"><a href="/newsletter/" class="menu2">Newsletter</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#F7AC3C"><a href="/forum/" class="menu2">Forum</a> '+'\n');
window.document.write('    </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#CC99FF"><a href="/registrazione/" class="menu2">Iscrizione '+'\n');
window.document.write('      al sito</a> </td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/marketing.html" class="submenu2">Marketing '+'\n');
window.document.write('      territoriale</a></td>'+'\n');
window.document.write('           '+'\n');
window.document.write('    <td class="menul2" width="126" bgcolor="#DADADA"><img src="/img/submenu2img.gif" hspace="2" heigth="7" width="4"><a href="/risorse/egovernment.html" class="submenu2">e-Government</a></td>'+'\n');
window.document.write('         </tr>'+'\n');
window.document.write('       </table>'+'\n');
window.document.write('<p>&nbsp;</p>'+'\n');
};

function writeSezione(titolo,note) {
window.document.write(''+'\n');
window.document.write('<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">'+'\n');
window.document.write(' <tr> '+'\n');
window.document.write('  <td width="322" bgcolor="#FF3300"> '+'\n');
window.document.write('   <div align="center"><font class="barratitolo"><b><font color="#FFFFFF">'+titolo+'</font></b></font></div>'+'\n');
window.document.write('  </td>'+'\n');
window.document.write('  <td width="18" bgcolor="#FF6633" valign="top"><img src="/img/head/angolino18-dvn-2.gif" width="18" height="18"></td>'+'\n');
window.document.write('  <td width="418">&nbsp;</td>'+'\n');
window.document.write(' </tr>'+'\n');
window.document.write(' <tr> '+'\n');
window.document.write('  <td width="322">&nbsp;</td>'+'\n');
window.document.write('  <td width="18" bgcolor="#FF6633" valign="bottom"><img src="/img/head/angolino18-up.gif" width="18" height="18"></td>'+'\n');
window.document.write('  <td width="420" bgcolor="#FF9933">&nbsp;'+note+'&nbsp;</td>'+'\n');
window.document.write(' </tr>'+'\n');
window.document.write('</table>'+'\n');
};
