function addtofavorites() {
var newT = document.createTextNode('Add to Favorites');
var s = document.getElementById('addtofavorites');
var rocheurl = 'http://www.rocheexchange.com/hepatology';
var rochetitle = 'RocheExchange.com - Hepatology';
if (window.sidebar) {
s.appendChild(newT);
s.onclick = function() {window.sidebar.addPanel(rochetitle, rocheurl,'');}
} else if (window.external) {
s.appendChild(newT);
s.onclick = function() {window.external.AddFavorite(rocheurl, rochetitle);}
} else if (window.opera) {
s.appendChild(newT);
s.onclick = function() {
     var e = document.createElement('a');
     e.setAttribute(rocheurl, self.location);
     e.setAttribute(rochetitle, document.title);
     e.setAttribute('rel','sidebar');
     e.click();
  }
}
}

var pageLoaded = 0;
window.onload = function() {pageLoaded = 1;}
function loaded(i,f) {
if (document.getElementById && document.getElementById(i) != null) f();
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
loaded('addtofavorites',addtofavorites);
