// Protect Images
function imgOnmouse() {
 if (!document.getElementsByTagName) return;
  for (i=0;i<document.images.length;i++) {
      document.images[i].onmousedown = piclik;
 }
}
/* window.onload = imgOnmouse; */


// Image Protector
function piclik()
	{
	/* document.images[i].style.display='none'; */
	alert('All images Are Copyright Newham Reuse Group\n\nPlease reload this page to view the image again.');
	}


// Open External links in a new tab works in everything except ie
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("class") == "ext")
     anchor.target = "_newtab";
   else if (anchor.getAttribute("href") &&
       anchor.getAttribute("class") == "ext1")
     anchor.target = "_newtab";
   else if (anchor.getAttribute("href") &&
       anchor.getAttribute("class") == "ours ext")
     anchor.target = "_newtab";
   else if (anchor.getAttribute("href") &&
       anchor.getAttribute("class") == "ngr ext")
     anchor.target = "_newtab";
 }
 var anchs = document.getElementsByTagName("area");
 for (var i=0; i<anchs.length; i++) {
   var anch = anchs[i];
   if (anch.getAttribute("href") &&
       anch.getAttribute("class") == "ext")
     anch.target = "_newtab";
 }
}
window.onload = externalLinks;


