// BOOKMARK / ADD TO FAVORITES --------------------------------------------------------------------
// feel free to use this code on your site... I'll be working on adding more other browser typs a little later... If you use add to the functionality of it please email me at jdr@violentbydesign.com and let me see how you do ;)
var url=this.location;
var title=document.title;
function bookmark()
{
// FireFox & Netscape (7 ???)
	if(window.sidebar) 
          window.sidebar.addPanel(title,url,"");
// OPERA
	else if(window.opera && window.print){
          var elem = document.createElement('a');
          elem.setAttribute('href',url);
          elem.setAttribute('title',title);
          elem.setAttribute('rel','sidebar');
          elem.click();}
// Internet Explorer
	else if(document.all)
          window.external.AddFavorite(url,title);}

// REL OPEN IN NEW WINDOW -------------------------------------
// http://www.sitepoint.com/article/standards-compliant-world
//-------------------------------------------------------------
// The constructor should be called with the parent object (optional, defaults to window).
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; }}
window.onload = externalLinks;
