
function apri(url)
{
 var rnd = 'popUpWin'+Math.floor(Math.random()*100000000);
 var win = open(url,rnd);
}
function onLoadFun()
{
	/* popOpened = getCookie("PopupAperta");
   
    if (popOpened)
   		return;
	
	win = open("pop.htm");
	win.blur();
	this.focus();
	
	setCookie("PopupAperta",1); */
}

function onUnloadFun()
{

}
function addToBookmark()
{
 var bookmarkurl="http://www.amore-amore.it/"
 var bookmarktitle="Amore-Amore.it: Tutte le forme dell'amore..."
 
 if (navigator.appName=="Microsoft Internet Explorer")
 {
  if (document.all)
   window.external.AddFavorite(bookmarkurl,bookmarktitle)
 }
 else
 {
  alert("Funzione non implementata con questo browser; se utilizzi Netscape, usa Ctrl+D")
 }
}

function getpet () {
        var toyear = 1997;
        var birthyear = document.frm.inyear.value;
        var birthpet="Ox"

        x = (toyear - birthyear) % 12

        if ((x == 1) || (x == -11)) {
            document.location = "Oroscopo-Cinese/topo.htm";     }
            else  {

             if (x == 0)             {
             document.location = "Oroscopo-Cinese/bufalo.htm";        }
             else  {

              if ((x == 11) || (x == -1)) {
              document.location = "Oroscopo-Cinese/tigre.htm";         }
              else  {

               if ((x == 10) || (x == -2)) {
               document.location = "Oroscopo-Cinese/lepre.htm";      }
               else  {

                if ((x == 9) || (x == -3))  {
                document.location = "Oroscopo-Cinese/drago.htm";        }
                else  {

                 if ((x == 8) || (x == -4))  { 
                 document.location = "Oroscopo-Cinese/serpente.htm";         }
                 else  {

                  if ((x == 7) || (x == -5))  { 
                  document.location = "Oroscopo-Cinese/cavallo.htm";         }
                  else  {

                   if ((x == 6) || (x == -6))  { 
                  document.location = "Oroscopo-Cinese/capra.htm";        }
                   else  {

                    if ((x == 5) || (x == -7))  {  
                    document.location = "Oroscopo-Cinese/scimmia.htm";         }
                    else  {

                     if ((x == 4) || (x == -8))  {
                     document.location = "Oroscopo-Cinese/gallo.htm";       }
                     else  {

                      if ((x == 3) || (x == -9))  {
                      document.location = "Oroscopo-Cinese/cane.htm";           }
                      else  {

                       if ((x == 2) || (x == -10))  {
                       document.location = "Oroscopo-Cinese/cinghiale.htm";            }  
                      }
                     }
                    }
                   }
                  }
                 }
                }
               }
              }
             }
            }

        document.frm.birth.value = birthpet;
}

// Funzioni di visualizzazione Adsense
function spazio_pubblicita_728x15() {

google_ad_client = "pub-5412732686380858";
/* 728x15, creato 12/01/09 */
google_ad_slot = "9047745464";
google_ad_width = 728;
google_ad_height = 15;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_468x60() {
	
google_ad_client = "pub-5412732686380858";
/* 468x60, creato 12/01/09 */
google_ad_slot = "7856730412";
google_ad_width = 468;
google_ad_height = 60;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_300x250() {
	
google_ad_client = "pub-5412732686380858";
/* 300x250, creato 12/01/09 */
google_ad_slot = "9031208893";
google_ad_width = 300;
google_ad_height = 250;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_728x15_papa() {

google_ad_client = "pub-5412732686380858";
/* 728x15, creato 13/01/09 - festa del papà */
google_ad_slot = "3653426070";
google_ad_width = 728;
google_ad_height = 15;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_468x60_papa() {
	
google_ad_client = "pub-5412732686380858";
/* 468x60, creato 13/01/09 - papà */
google_ad_slot = "1478250862";
google_ad_width = 468;
google_ad_height = 60;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_300x250_papa() {
	
google_ad_client = "pub-5412732686380858";
/* 300x250, creato 13/01/09 - papà */
google_ad_slot = "0428360977";
google_ad_width = 300;
google_ad_height = 250;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_728x15_donna() {

google_ad_client = "pub-5412732686380858";
/* 728x15, creato 13/01/09 - donna */
google_ad_slot = "7658224625";
google_ad_width = 728;
google_ad_height = 15;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_468x60_donna() {

google_ad_client = "pub-5412732686380858";
/* 468x60, creato 13/01/09 - donna */
google_ad_slot = "9132047684";
google_ad_width = 468;
google_ad_height = 60;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_300x250_donna() {

google_ad_client = "pub-5412732686380858";
/* 300x250, creato 13/01/09 - donna */
google_ad_slot = "2875226418";
google_ad_width = 300;
google_ad_height = 250;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_728x15_valentino() {

google_ad_client = "pub-5412732686380858";
/* 728x15, creato 14/01/09 - valentino */
google_ad_slot = "9929937660";
google_ad_width = 728;
google_ad_height = 15;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_468x60_valentino() {

google_ad_client = "pub-5412732686380858";
/* 468x60, creato 14/01/09 - valentino */
google_ad_slot = "1955550442";
google_ad_width = 468;
google_ad_height = 60;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}

function spazio_pubblicita_300x250_valentino() {

google_ad_client = "pub-5412732686380858";
/* 300x250, creato 14/01/09 - valentino */
google_ad_slot = "6183492950";
google_ad_width = 300;
google_ad_height = 250;

document.write('<scr'+'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr'+'ipt>');
	
}