﻿// This Utility file is used for a number of special client actions

//Disable right mouse click Script to keep users from copying art files from the server

//var message="Protected Media";

//function clickIE4(){
//    if (event.button==2){
//    alert(message);
//    return false;
//    }
//}

//function clickNS4(e){
//    if (document.layers||document.getElementById&&!document.all){
//        if (e.which==2||e.which==3){
//        alert(message);
//        return false;
//        }
//    }
//}

//if (document.layers){
//    document.captureEvents(Event.MOUSEDOWN);
//    document.onmousedown=clickNS4;
//}
//else if (document.all&&!document.getElementById){
//    document.onmousedown=clickIE4;
//}

//    var message="This web site has protected media that has copyright ownership.  If you are interested in aquiring art represented in this website, please see the contact page.  Thank you.";
//    function clickIE4(){if (event.button==2){alert(message);return false;}}
//    function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}
//    if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}
//    else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
//    document.oncontextmenu=new Function("alert(message);return false")

document.oncontextmenu=new Function("alert(message);return false")

        function toggle2Divs() {    
            var divClickPic = document.getElementById("divClickPic");
            var divVideo = document.getElementById("divVideo");
            if(divClickPic.style.display == "block") {
        	
                divClickPic.style.display = "none";
                divClickPic.style.visibility = "hidden";
            	
                divVideo.style.display = "block";
                divVideo.style.visibility = "visible";
            }
            else {
                divClickPic.style.display = "block";
                divClickPic.style.visibility = "visible";
        		
                divVideo.style.display = "none";
                divVideo.style.visibility = "hidden";	
            }
        } 
