//
function Print () 
{
  window.print() 
}

function AddFavorite () 
{ 
  if (window.sidebar)
  {
    window.sidebar.addPanel(document.title, self.location.href, '');    
  }
  else if (window.external)
  {
    window.external.AddFavorite(self.location.href,document.title); 
  }
  else if (window.opera)
  {
    var newT = document.createTextNode('Add to Favourites');
    var s = document.getElementById('fav');
    
    s.appendChild(newT);
    s.style.color = '#00f';
    s.style.cursor = 'pointer';
    s.onclick = function() 
    {
       var e = document.createElement('a');
       e.setAttribute('href',self.location);
       e.setAttribute('title',document.title);
       e.setAttribute('rel','sidebar');
       e.click();
    }  
  }
}

function ChangeFontSize (inc) 
{  
  var p=document.getElementsByTagName('p');  
  
  for (n=0; n<p.length; n++) 
  {    
    if (p[n].style.fontSize)       
      var size =parseInt(p[n].style.fontSize.replace("px", ""));    
    else      
      var size = 11;  

    if (inc > 0 && size < 19)
    {
        p[n].style.fontSize = size+inc*2 + 'px';    
    }
    else if (inc < 0 && size > 9)
    {
        p[n].style.fontSize = size+inc*2 + 'px';
    }
    else
        p[n].style.fontSize = size + 'px';     
  }
}
