

    /***************************************************************** 
    *   
    *   This is the source code for the Disableing Right Click function
    *   
    ******************************************************************/ 

var message="I'm sorry, The Right click option on your mouse has been disabled. Website Designs and Content are copyrighted materials.....";


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

    /***************************************************************** 
    *   
    *   This is the source code for the Image Preload function
    *   
    ******************************************************************/ 

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

    /***************************************************************** 
    *   
    *   and the Image Mouse Over Functions
    ******************************************************************/ 


	if (document.images) {
		overall = new Image
		front = new Image
		pool = new Image
		side = new Image
		bedroom = new Image
		twinroom = new Image
		bath = new Image
		kitchen = new Image
		living = new Image
		sea = new Image

		overall.src = "images/overall.gif"
		front.src = "images/front.gif"
		pool.src = "images/pool.gif"
		side.src = "images/side.gif"
		bedroom.src = "images/bedroom.gif"
		twinroom.src = "images/twinroom.gif"
		bath.src = "images/bath.gif"
		kitchen.src = "images/kitchen.gif"
		living.src = "images/living.gif"
		sea.src = "images/sea.gif"
	}
	else {
		overall = ""
		front = ""
		pool = ""
		side = ""
		bedroom = ""
		twinroom = ""
		bath = ""
		kitchen = ""
		living = ""
		sea = ""
		document.imageField = ""
	}


  function login(showhide){
    if(showhide == "show"){
        document.getElementById('popupbox').style.visibility="visible"; /* If the function is called with the variable 'show', show the login box */
    }else if(showhide == "hide"){
        document.getElementById('popupbox').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the login box */
    }
  }

  function register(showhide){
    if(showhide == "show"){
        document.getElementById('popupreg').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupreg').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
  function search(showhide){
    if(showhide == "show"){
        document.getElementById('popupsearch').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupsearch').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
    function popupimage1(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage1').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage1').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
      function popupimage2(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage2').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage2').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
      function popupimage3(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage3').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage3').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
