//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////
//Warning the newsString cannot have a = in it.
//The equals will mess things up

function newsFlashOnce (newsString, key)
{
  var d = 0;
  var n = new Date();
  n = n.getTime();
  if ((readCookie (key) != null) && (readCookie (key) != "") )
  {
	d= parseInt(readCookie(key));
	d+= 24 * 60*60*1000;//60mins *60 sec * 1000ms = 1hr
  }
  if ((readCookie (key) == null) || (readCookie (key) == "") || (d < n) )
  {
    alert (newsString);
    setCookie (key, n);
  }
}


//http://javascript.internet.com/page-details/bookmark-us.html
function addBookmarkMessage()
{
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
        var url  = document.location;
        var title= document.title;
        document.write('<A HREF="javascript:window.external.AddFavorite(url,title);" ');
        document.write('onMouseOver=" window.status=');
        document.write("'Add our site to your favorites!'; return true ");
        document.write('"onMouseOut=" window.status=');
        document.write("' '; return true ");
        document.write('">Add our site to your favorites!</a>');
    }
    else {
      var msg = "Don't forget to bookmark us!";
      if(navigator.appName == "Netscape") 
        msg += "  (CTRL-D)";
      document.write(msg);
    }
}




//http://javascript.internet.com/page-details/check-url.html
function newAddress(newAddress)
{
    if (location.href.indexOf(newAddress) != -1)
        document.write("Thanks for visiting!");
    else
        document.write("Our new address is http://" + newAddress);
}
