
/*
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="All the images within this presentation are protected by copyright and may not be copied, saved or reproduced in any way without written permission. For further information, please contact info@take-a-view.co.uk"

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()

// Flash Helper Scripts

function home_main_nav_DoFSCommand(command, args) {

 if (command == "status"){
   window.status = args;
 }
 if (command == "restore"){
   window.status = "";
 }
}

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub home_main_nav_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call home_main_nav_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

function topicons_DoFSCommand(command, args) {

 if (command == "status"){
   window.status = args;
 }
 if (command == "restore"){
   window.status = "";
 }
}

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub topicons_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call topicons_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
