
// ******************* //
//Test Here


//End Test
// ******************* //


//Load Full Image
function imgswitch(imgName,imgTitle){
	fullImage = document.getElementById(IMG);
	IMG.src=imgName;
	IMG.className = 'full_img';
	
	img_info.className = 'img_id';
	img_info.innerHTML = imgTitle;	
	img_mess.innerHTML='';
	
	
}
function returnimg(){
	var mess = 'To view larger photos, move mouse over thumbnail.<br>Wait for image to load.';
	IMG.className = '';
	IMG.src='../imgs/logo.jpg';
	
	img_info.className = '';
	img_info.innerHTML='';
	img_mess.innerHTML= mess;
}

//

//Disable right mouse click Script


var message="Gallery images are under copyright. Printing is not permitted.";

function clickIE4(){
if (event.button==2 || event.button==3){
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")

//

// Don't allow Print Screen
if( document.captureEvents ) {
    //non IE
    if( Event.KEYUP ) {
        //NS 4, NS 6+, Mozilla 0.9+
        document.captureEvents( Event.KEYUP );
    }
}
/* this next line tells the browser to detect a keyup
event over the whole document and when it detects it,
it should run the event handler function 'alertkey' */
document.onkeyup = alertkey;

//NOW CREATE THE EVENT HANDLER FUNCTION TO PROCESS THE EVENT
function alertkey(e) {
    if( !e ) {
        //if the browser did not pass the event information to the
        //function, we will have to obtain it from the event register
        if( window.event ) {
            //DOM
            e = window.event;
        } else {
            //TOTAL FAILURE, WE HAVE NO WAY OF REFERENCING THE EVENT
            return;
        }
    }
    var pressedkey = 76;
    if( e.which = event.altKey ) {
        //NS 4, NS 6+, Mozilla 0.9+, Opera
        e = e.which;
    } else if( e.keyCode = event.altKey ) {
        //IE, NS 6+, Mozilla 0.9+
        e = e.keyCode;
    } else if( e.charCode = event.altKey ) {
        //also NS 6+, Mozilla 0.9+
        e = e.charCode;
    } else {
        //TOTAL FAILURE, WE HAVE NO WAY OF OBTAINING THE KEY CODE
        return false;
    }
    window.alert('Gallery images are under copyright. Printing is not permitted.');
}

//
