/*// JavaScript Document
// Bookmark function start
function addbookmark()
{
bookmarkurl="http://www.yourwirral.co.uk/"
bookmarktitle="YourWirral.co.uk"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//END
//Numbers function start
function numbers() {
var nummenu = document.lotto.numbercount;
var numbercount = nummenu.options[nummenu.selectedIndex].value*1;
var maxnumbers = document.lotto.maxnum.value*1;
if (numbercount > maxnumbers) {
alert("Be sure to select a max lottery number value!");
}
else {
var ok = 1;
r = new Array (numbercount);
for (var i = 1; i <= numbercount; i++) {
r[i] = Math.round(Math.random() * (maxnumbers-1))+1;
}
for (var i = numbercount; i >= 1; i--) {
for (var j = numbercount; j >= 1; j--) {
if ((i != j) && (r[i] == r[j])) ok = 0; 
   }   
}
if (ok) {
var output = "";
for (var k = 1; k <= numbercount; k++) {
output += r[k] + " ";
}
document.lotto.results.value = output;
}     
else numbers();
   }
}
//END
//Start birthpet function
function getpet () {
        var toyear = 1997;
        var birthyear = document.frm.inyear.value;
        var birthpet="Ox"

        x = (toyear - birthyear) % 12

        if ((x == 1) || (x == -11)) {
            birthpet="Mouse"      }
            else  {

             if (x == 0)             {
             birthpet="Ox"           }
             else  {

              if ((x == 11) || (x == -1)) {
              birthpet="Tiger"          }
              else  {

               if ((x == 10) || (x == -2)) {
               birthpet="Rabbit"         }
               else  {

                if ((x == 9) || (x == -3))  {
                birthpet="Dragon"         }
                else  {

                 if ((x == 8) || (x == -4))  { 
                 birthpet="Snake"          }
                 else  {

                  if ((x == 7) || (x == -5))  { 
                  birthpet="Horse"          }
                  else  {

                   if ((x == 6) || (x == -6))  { 
                   birthpet="Sheep"          }
                   else  {

                    if ((x == 5) || (x == -7))  {  
                    birthpet="Monkey"         }
                    else  {

                     if ((x == 4) || (x == -8))  {
                     birthpet="Chicken"        }
                     else  {

                      if ((x == 3) || (x == -9))  {
                      birthpet="Dog"            }
                      else  {

                       if ((x == 2) || (x == -10))  {
                       birthpet="Pig"             }  
                      }
                     }
                    }
                   }
                  }
                 }
                }
               }
              }
             }
            }

        document.frm.birth.value = birthpet;
}*/
//END
//Start send to friend function
/*function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;

if(isPPC()) {
document.write('<a class="footerlink" HREF=\"mailto:\?subject\=Take a look at this page I found, ' + document.title + '?body=You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends an e-mail about this page\'; return true" TITLE="Send your friends an e-mail about this page">Send this page to a friend<\/A>  ');
}
else { document.write('<a class="footerlink" HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends an e-mail about this page\'; return true" TITLE="Send your friends an e-mail about this page">Send this page to a friend<\/A>  ');
}*/

/*if (document.all){
  document.write('<a class="footerlink" href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.yourwirral.co.uk\');">');
  document.write('Make this your homepage</a>');
}
else if (document.getElementById){
  document.write('<a class="footerlink" href="http://www.yourwirral.co.uk">Drag this link onto your Home button to make this your Home Page.</a>');
}
else if (document.layers){
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
else {
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}*/
//END
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}