/* -------------------------------------------------------------------- */
/* function right(e)							*/
/* -------------------------------------------------------------------- */
/*  disable right key clicking in IE - doesn't stop the other browsers  */
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Right clicking disabled!!!");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

/* -------------------------------------------------------------------- */
/* function externalLinks()						*/
/* -------------------------------------------------------------------- */
/* call this so that the html markup remains valid for "Strict" HTML    */ 
/* as there is no "target=" in that */

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"; 
     }
   /*  have also modified it so that it can target=_self */
   /* which I have started up so that I might be able to have page display items like "close, back, next with the photo */
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel2") == "internal") {
     anchor.target = "_self"; 
     }
 } 
} 
window.onload = externalLinks;
