

/* Functions buttonalert and dont modified from script located at http://unixpapa.com/js/mouse.html  Article Date Jan 28, 2009 */
function buttonalert(event)
{
    var button;
    if (event.which == null)
       button= (event.button < 2) ? "Left Button will retrieve a larger image" :
                 ((event.button == 4) ? "Middle Button Blocked" : "Please do not copy our images");
    else
       button= (event.which < 2) ? "Left Button will retrieve a larger image" :
                 ((event.which == 2) ? "Middle Button Blocked" : "Please do not copy our images");
    if (button == "Please do not copy our images") {
        alert(button);
        dont(event);
    }
}

function dont(event)
{
    if (event.preventDefault)
        event.preventDefault();
    else
        event.returnValue= false;
     return false;
}

/* Pop Up Box Routine for use later */
function roAlert(title, url){
  html = "<html><head><title>" + title +"</title></head>"
  +"<body bgcolor=#7c1e24><center><font color=white>" +url +"</font><center></body></html>"
  args = "width=300,height=150"
  nw = window.open('',"roAlert",args)
  nw.document.write(html)
  /*alert(html)*/
}

function Popup(url, window_name, window_width, window_height) {
    settings=
    "toolbar=no,location=no,directories=no,"+
    "status=no,menubar=no,scrollbars=yes,"+
    "resizable=yes,width="+window_width+",height="+window_height;
    window.open(url,window_name,settings);
}
