
// *********************************************************************
// home_page.js
// *********************************************************************

// Gestione funzione newsletter
// ---------------------------------------------------------------------
   function azione_newsletter()
   {
			jstr1='<input type="hidden" name="modulo" value="newsletter">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('newsletter',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione funzione guestbook
// ---------------------------------------------------------------------
   function azione_guestbook()
   {
            var New_url;

			var nome_form = 'guestbook/index';

            New_url ='<html>';
			New_url+='<head><title>Pagina in caricamento</title></head>';
			New_url+='<body bgcolor="#ffffff">';
			New_url+='<br><font size="1" face="Verdana, Arial, Helvetica, sans-serif">';
			New_url+='Pagina in caricamento: <b><font color="#003366">Attendere prego</font></b></font>';
            New_url+='<form action="guestbook/index.php" method="post" name="guestbook/index">';
            New_url+='<input type="hidden" name="modulo" value="guestbook">';
            New_url+='</form>';
			New_url+='</body>';
			New_url+='</html>';

            New_win=window.open('', 'guestbook', 'width=900,height=600,scrollbars=yes'); 
            New_win.moveTo(0,0);
		    New_win.focus();
 			New_win.document.writeln(New_url); 
            New_win.document.forms[nome_form].submit();
   }

// Gestione funzione promo
// ---------------------------------------------------------------------
   function azione_promo()
   {
			jstr1='<input type="hidden" name="modulo" value="promo">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('promo',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione sponsor
// ---------------------------------------------------------------------
   function azione_sponsor()
   {
			jstr1='<input type="hidden" name="modulo" value="sponsor">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('sponsor',jhidden,'width=850,height=600,scrollbars=yes');
   }

// Gestione dettaglio info
// ---------------------------------------------------------------------
   function dettaglio(modulo,numero)
   {
            if (modulo == 'gara')
            {
                jhidden='<input type="hidden" name="modulo" value="gara">';
                jhidden+='<input type="hidden" name="azione" value="dettaglio">';
                jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

                new_action('gara',jhidden,'width=900,height=600,scrollbars=yes');
            }

            if (modulo == 'news')
            {
                jhidden='<input type="hidden" name="modulo" value="news">';
                jhidden+='<input type="hidden" name="azione" value="dettaglio">';
                jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

                new_action('news',jhidden,'width=900,height=600,scrollbars=yes');
            }

            if (modulo == 'info')
            {
                jhidden='<input type="hidden" name="modulo" value="info">';
                jhidden+='<input type="hidden" name="azione" value="dettaglio">';
                jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

                new_action('info',jhidden,'width=900,height=600,scrollbars=yes');
            }

            if (modulo == 'articolo')
            {
                jhidden='<input type="hidden" name="modulo" value="articolo">';
                jhidden+='<input type="hidden" name="azione" value="dettaglio">';
                jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

                new_action('articolo',jhidden,'width=900,height=600,scrollbars=yes');
            }

            if (modulo == 'album')
            {
                jhidden ='<input type="hidden" name="azione" value="photo">';
                jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

                new_action('photo',jhidden,'width=1050,height=700');
            }
   }

// Gestione azione news
// ---------------------------------------------------------------------
   function azione_news()
   {
			jstr1='<input type="hidden" name="modulo" value="news">';
			jstr2='<input type="hidden" name="azione" value="elenco">';

			jhidden=jstr1+jstr2;

			new_action('news',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione info
// ---------------------------------------------------------------------
   function azione_info()
   {
			jstr1='<input type="hidden" name="modulo" value="info">';
			jstr2='<input type="hidden" name="azione" value="elenco">';

			jhidden=jstr1+jstr2;

			new_action('info',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione articoli
// ---------------------------------------------------------------------
   function azione_articoli()
   {
			jstr1='<input type="hidden" name="modulo" value="rassegna_stampa">';
			jstr2='<input type="hidden" name="azione" value="elenco">';

			jhidden=jstr1+jstr2;

			new_action('rassegna_stampa',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione classifiche
// ---------------------------------------------------------------------
   function azione_classifiche()
   {
			jstr1='<input type="hidden" name="modulo" value="classifiche">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('classifiche',jhidden,'width=900,height=600,scrollbars=yes');
   }
 
// Gestione azione calendario
// ---------------------------------------------------------------------
   function azione_calendario()
   {
			jstr1='<input type="hidden" name="modulo" value="calendario">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('calendario',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione album
// ---------------------------------------------------------------------
   function azione_album()
   {
			jstr1='<input type="hidden" name="modulo" value="album">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('album',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione foto
// ---------------------------------------------------------------------
   function azione_foto()
   {
			jstr1='<input type="hidden" name="modulo" value="foto">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('foto',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione link
// ---------------------------------------------------------------------
   function azione_link()
   {
			jstr1='<input type="hidden" name="modulo" value="link">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('link',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione azione promo
// ---------------------------------------------------------------------
   function azione_promo()
   {
			jstr1='<input type="hidden" name="modulo" value="promo">';
			jstr2='<input type="hidden" name="azione" value="elenco">';

			jhidden=jstr1+jstr2;

			new_action('promo',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione elenco link
// ---------------------------------------------------------------------
   function elenco_link(numero)
   {
			jhidden='<input type="hidden" name="modulo" value="link">';
			jhidden+='<input type="hidden" name="azione" value="elenco">';
			jhidden+='<input type="hidden" name="numero" value="'+numero+'">';

			new_action('link',jhidden,'');
   }

// Gestione funzione Trofeo Giugni
// ---------------------------------------------------------------------
   function giugni_2006()
   {
			jstr1='<input type="hidden" name="modulo" value="giugni">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('giugni_2006',jhidden,'width=900,height=600');
   }

// Gestione funzione oribie_2006
// ---------------------------------------------------------------------
   function orobie_2006()
   {
			jstr1='<input type="hidden" name="modulo" value="orobie">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('orobie_2006',jhidden,'width=900,height=600');
   }

// Gestione funzione giugni_2006
// ---------------------------------------------------------------------
   function giugni_2006()
   {
			jstr1='<input type="hidden" name="modulo" value="giugni">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('giugni_2006',jhidden,'width=900,height=600');
   }

// Gestione funzione gare
// ---------------------------------------------------------------------
   function gare()
   {
			jstr1='<input type="hidden" name="modulo" value="gare">';
			jstr2='<input type="hidden" name="azione" value="elenco">';

			jhidden=jstr1+jstr2;

			new_action('gare',jhidden,'width=900,height=600');
   }

// Gestione funzione circuiti
// ---------------------------------------------------------------------
   function circuiti()
   {
			jstr1='<input type="hidden" name="modulo" value="circuiti">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('circuiti',jhidden,'width=900,height=600,scrollbars=yes');
   }

// Gestione funzione servizi
// ---------------------------------------------------------------------
   function servizi()
   {
			jstr1='<input type="hidden" name="modulo" value="servizi">';
			jstr2='<input type="hidden" name="azione" value="inizio">';

			jhidden=jstr1+jstr2;

			new_action('servizi',jhidden,'width=950,height=600,scrollbars=yes');
   }

// Gestione funzione dettaglio immagine
// ---------------------------------------------------------------------
   function dettaglio_img(image,width,height)
   {
            var New_url;

            var attrb = 'width='+width+',height='+height+',resizable=yes';

            New_url ='<html>';
            New_url+='<head><title>Foto</title></head>';
            New_url+='<body bgcolor="#ffffff"><center>';
            New_url+='<img src="GD_120_600.php?original='+image+'" border=1></img>';
            New_url+='</center>';
            New_url+='</body>';
            New_url+='</html>';

            New_win=window.open('', 'window', attrb); 
            New_win.moveTo(0,0);
            New_win.focus();
            New_win.document.writeln(New_url); 
   }
