/*

    Cross-Browser Right Mouse Capture Script

    mstRMCapture.js v1.24

    Last Updated: June 10, 1999

    Copyright (C) 1999, MarketSpace Technologies, Inc.



    This script may be used on personal, non-profit and commercial

    Websites, so long as this Copyright remain intact and contained

    within the script itself.  This script may not be sold, whether

    separately, or as part of any package, or otherwise transferred

    by any means including, but not limited to, digital and print formats,

    without the express written permission of MarketSpace Technologies, Inc.



    This script is provided 'AS-IS' and without warranty of any kind including

    the implied warranty of merchantability or fitness for any particular

    purpose.  For additional information concerning the use of this script,

    please read our Conditions of Use statement which can be found at

    http://www.marketspacetech.com/legal.htm.



    Please direct all questions and comments regarding this script, or the

    use of this script to info@marketspacetech.com.

*/



var ie4=document.all;

var ns4=document.layers;

var ie5=navigator.appVersion;

if(ie4){

    if(ie5.indexOf("MSIE 5")<0){ // Remove for forms and embedded controls

        document.onmousedown=iecapture;

        document.onmouseup=iecapture;

        document.onclick=iecapture;

        document.ondblclick=iecapture;

    } // Remove for forms and embedded controls

}else if(ns4){

    window.captureEvents(Event.MOUSEDOWN)

    window.onmousedown=nscapture

}

function iecapture(){

    var el=event.srcElement;

    if(event.button==2){

        if((el.tagName!="INPUT")&&(el.tagName!="TEXTAREA")&&(el.tagName!="SELECT")&&(el.tagName!="OBJECT")&&(el.tagName!="EMBED")){

            alert('Oh.. come on.. why do you need to see my code or take my images?');

        }

    }

}

function nscapture(ev){

    if(ev.which!=1){

	alert('Oh.. come on.. why do you need to see my code or take my images?');	

        return false;

    }

}

// Modify the <BODY> tag to add 'oncontextmenu="return false;" for IE 5.0

// Don't add in pages with forms or embedded controls
