function lightup(imgName) {
	if (document.images) {
		imgOn=eval(imgName + "on.src");
		document[imgName].src= imgOn;
	}
}

function turnoff(imgName) {
	if (document.images) {
		imgOff=eval(imgName + "off.src");
		document[imgName].src= imgOff;
	}
}

function addbookmark(){ 
	var bookmarkurl="http://www.opi-group.com/";
	var bookmarktitle="OPI Group - Property Management and Lettings";

	if (document.all) {
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
	}
}

// disable Right-Click

var popup = "© OPI Group";

function noway(go) {
  if(document.all) {
    if (event.button == 2) {
      alert(popup);
      return false;
	}
  }
  
  if (document.layers) {
    if (go.which == 3) {
      alert(popup);
	  return false;
	}
  }
}

if (document.layers) 
{ document.captureEvents(Event.MOUSEDOWN); } 

//document.onmousedown=noway;
//document.onkeydown=noControl;

function noControl(evt) {
  var evt  = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  
  // current pressed key
  var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();

  if (evt.ctrlKey && pressedKey == "c") {
    window.event.cancelBubble = true;
    window.event.returnValue = false;
    alert(popup);
    return false;
  }
}