var message="Authorize by www.colouredcabinets.com";

///////////////////////////////////
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")



function popupPicture(pictureURL, width, height, justPicture) {
  if (justPicture) {
    var frame = window.open('', '', 'width='+width+',height='+height+',scrollbars=0,location=0,menubar=0,resizable=0');
    frame.document.write(
    	'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" '
      	+'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'
      	+'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n'
      	+'  <head>\n'
      	+'    <title>Product Galery</title>'
  		+'<style type="text/css">body {margin: 0px} </style>\n'
      +'    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\n'
      +'  </head>\n'
      +'  <body onclick="self.close( )">\n'
      +'    <div style="margin: 0px;">\n'
      +'      <img src="'+pictureURL+'" alt="Product Galery [ Click to Close ]" />\n'
      +'    </div>\n'
      +'  </body>\n'
      +'</html>'
    );
    return true;
  } else {
    window.open(pictureURL, '', 'width='+width+',height='+height+',scrollbars=1,location=0,menubar=0,resizable=1');
  }
}
