function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}





var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")






var clickmessage="!"

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()



			
function mapWindow()
		{
			window.open("map.htm",null, "height=544,width=783,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,top=200,left=200");
		}
//-->




<!--
function virtualtour(tour) { //v2.0
  nw1 = window.open('', 'VirtualTour', 'width=600, height=500, scrollbars=no');
  nw1.document.write("<html><head><title>PWCC.ie ~ Penrose Wharf Call Centres Ltd</title></head><body background='images/bgcolor.gif'>");
  nw1.document.write("<center>");
  nw1.document.write("<table width='495' border='0' cellspacing='0' cellpadding='0'><tr>"); 
  nw1.document.write("<td colspan='3'><img src='images/top.gif' width='505' height='20'></td>");
  nw1.document.write("</tr>");
  nw1.document.write("<tr>");
  nw1.document.write("<td width='20'><img src='images/leftipix.gif' width='20' height='400'></td>");
  nw1.document.write("<td width='465'>");
  nw1.document.write("<applet code='IpixViewer.class' width='465' height='400' archive='ipix/IpixViewer.jar' align='middle'>");
  nw1.document.write("<param name='URL' value='"+ tour +"'>");

  nw1.document.write("<param name='BackgroundColor' value='#FFFFFF'>");
  
  nw1.document.write("<param name='SpinSpeed' value='-5'>");
  nw1.document.write("<param name='SpinStyle' value='flat'></applet>");
  nw1.document.write("</td>");
  nw1.document.write("<td width='20'><img src='images/rightipix.gif' width='20' height='400'></td>");
  nw1.document.write("</tr>");
  nw1.document.write("<tr>");
  nw1.document.write("<td colspan='3'><img src='images/botipix.gif' width='505' height='20'></td>");
  nw1.document.write("</tr>");
  nw1.document.write("</table>");
  nw1.document.write("</center>");
  nw1.document.write("<p>");
  nw1.document.write("<a href ='javascript:self.close()'><center><b><font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#666666'>Close Window</font></b></center></a></body></html>");
  nw1.focus();
}











