    
   
 function togglelayer(lyrname, togval)
 {   
     var layerobj = null;
     var togval2 = (togval == 0) ? 'hidden' : 'visible'
     if (document.getElementById){layerobj = document.getElementById(lyrname)}     
     if (layerobj != null){layerobj.style.visibility = togval2}
 }

function showPromo()
  {
    var allcookies = document.cookie
    var seenIt= false
    if (allcookies.indexOf('seenPromo=true')!=-1)
    {
     seenIt=true
     }
    if (!seenIt)        
    {
      setTimeout("togglelayer('promo',1)",2000)
    }
  }
  
  
function setPromoCookie()
  {
   var expirationDate = new Date();            
    expirationDate.setFullYear(expirationDate.getFullYear()+1);            
    expirationDate = expirationDate.toGMTString();            
    expirationDate = "expires="+expirationDate;            
    var content = "seenPromo=true";   
    var path = window.location.protocol + '//' +  window.location.hostname
    if (path != '')
      {
      document.cookie = content + ";" + expirationDate + ";" +path
      }
    
    togglelayer("promo", 0)
  
  }      

if (document.getElementById)
  {
    var lkArray = document.getElementById('mainnav').getElementsByTagName('A')
    for (var i = 0; i < lkArray.length; i++)
      {
        lkArray[i].onmouseover = function(){window.status = this.title; return true}
        lkArray[i].onmouseout = function(){window.status = ''; return true}
      }
      
  }

 
//document.getElementsByTagName('HTML')[0].style.height = '100%'
window.onload = showPromo
    