ourURL="http://www.journalrenovasculardisease.com";//global
var theTitle;
var nsString;
var is_mac = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
theTitle = "Journal of Renovascular Disease";
str = is_mac ? "Apple":"Ctrl"
nsString = "Close this box and type "+str+"+D to bookmark this site"

function drawButtons () 
{
  if (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))) 
  {
    document.write('<FO'+'RM>');
    document.write('<INP'+'UT border=0 TYPE=IMAGE vspace=0 src="images/addfavourites.gif" VALUE="Add to favourites" onClick="AddToFavourites (); return false;"><br>');
    HM_DOM = (document.getElementById) ? true : false;
    document.write('<\/FO'+'RM>');
  }
}

function AddToFavourites () 
{
  if (navigator.appName!="Netscape"&&!is_mac)
  {
    window.external.AddFavorite(ourURL, theTitle);
  }
  else
  {
    alert (nsString);
  }
}

