var clickmessage="\u00A9 2007 Great Ormond Street Hospital Children's Charity"

if (!Array.prototype.inArray) {
   Array.prototype.inArray=function(val) {
      for (key in this) {
         if (this[key]===val) {
            return true; // If you want the key of the matched value, change "true" to "key"
         }
      }
      return false;
   }
}


function disableclick(e) {
    if (document.all) {
        if (event.button==2||event.button==3) {
            if (event.srcElement.tagName=="IMG" && (disabledAssets.inArray(event.srcElement.parentNode.id.split('_')[1]) || disableAllAssets=="1")){
                alert(assetsPopup);
                return false;
            }
        }
    } else if (document.layers) {
        if (e.which == 3) {
            alert(assetsPopup);
            return false;
        }
    } else if (document.getElementById){
        if (e.which==3&&e.target.tagName=="IMG" && (disabledAssets.inArray(e.target.parentNode.id.split('_')[1]) || disableAllAssets=="1")){
            alert(assetsPopup);
            document.oncontextmenu=new Function("return false")
            return false;
        }
    }
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
return false;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()

