
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Copyright Chamberlain Photography!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()




var newWind;
var lOpened=false;
function fwin(cPicture){
		 var output;
		if (lOpened){
		   newWind.close();
		}
		lOpened=true;
		 newWind=window.open("","winnam","HEIGHT=600,WIDTH=600,scrollbars=yes,resizable=yes,top=5,left=5");
		 output='<HTML><head>'
                 output+='<META HTTP-EQUIV="imagetoolbar" CONTENT="no">'
                 output+='<script language="JavaScript" type="text/javascript">'
                 output+='x = 550;'
                 output+='y = 600;'
                 output+='self.resizeTo(x,y)'
                 output+='</script>'
                 output+='<script src=00.js language="JavaScript" TYPE="text/javascript">'
                 output+="</script>"
                 output+='<LINK REL="STYLESHEET"  HREF="style.css" TYPE="text/css">'
                 output+="<title>Chamberlain Photography</title></head>"
                 output+="<BODY><CENTER>"
 		 output+="<IMG SRC='"+cPicture+"' border=0>"
                 output+="</CENTER></BODY></HTML>"
		 newWind.document.write(output);
		 newWind.document.close();
}