// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// control drop-down hover
sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// 'protect' content with copyright notice
function right(e) {
var msg = "The text and images on this site are copyright Coin Rarities LLC and are monitored by Copyscape. Unauthorized reproduction or use of the content of this site without the express written permission of Coin Rarities LLC is forbidden.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
	alert(msg);
return false;
}
return true;
}
document.onmousedown = right;
