function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

if (document.images)
{

bttn1_off = new Image;
bttn1_over = new Image;
bttn1_down = new Image;
bttn1_on = new Image;

bttn2_off = new Image;
bttn2_over = new Image;
bttn2_down = new Image;
bttn2_on = new Image;

bttn3_off = new Image;
bttn3_over = new Image;
bttn3_down = new Image;
bttn3_on = new Image;

bttn4_off = new Image;
bttn4_over = new Image;
bttn4_down = new Image;
bttn4_on = new Image;

bttn5_off = new Image;
bttn5_over = new Image;
bttn5_down = new Image;
bttn5_on = new Image;

bttn1_off.src = "images/buttons/home_off.gif";
bttn1_over.src = "images/buttons/home_over.gif";
bttn1_down.src = "images/buttons/home_on.gif";
bttn1_on.src = "images/buttons/home_on.gif";

bttn2_off.src = "images/buttons/property_off.gif";
bttn2_over.src = "images/buttons/property_over.gif";
bttn2_down.src = "images/buttons/property_on.gif";
bttn2_on.src = "images/buttons/property_on.gif";

bttn3_off.src = "images/buttons/who_we_are_off.gif";
bttn3_over.src = "images/buttons/who_we_are_over.gif";
bttn3_down.src = "images/buttons/who_we_are_on.gif";
bttn3_on.src = "images/buttons/who_we_are_on.gif";

bttn4_off.src = "images/buttons/our_clients_off.gif";
bttn4_over.src = "images/buttons/our_clients_over.gif";
bttn4_down.src = "images/buttons/our_clients_on.gif";
bttn4_on.src = "images/buttons/our_clients_on.gif";

bttn5_off.src = "images/buttons/contact_us_off.gif";
bttn5_over.src = "images/buttons/contact_us_over.gif";
bttn5_down.src = "images/buttons/contact_us_on.gif";
bttn5_on.src = "images/buttons/contact_us_on.gif";

}
else
{

bttn1_off = " ";
bttn1_over = " ";
bttn1_down = " ";
bttn1_on = " ";

bttn2_off = " ";
bttn2_over = " ";
bttn2_down = " ";
bttn2_on = " ";

bttn3_off = " ";
bttn3_over = " ";
bttn3_down = " ";
bttn3_on = " ";

bttn4_off = " ";
bttn4_over = " ";
bttn4_down = " ";
bttn4_on = " ";

bttn5_off = " ";
bttn5_over = " ";
bttn5_down = " ";
bttn5_on = " ";

document.bttn1 = " ";
document.bttn2 = " ";
document.bttn3 = " ";
document.bttn4 = " ";
document.bttn5 = " ";

}


		function openW(url, name, w, h, o) {
	// options - menubar,resizable,scrollbars,status,toolbar (there are more)
	// if you want them just list them seperated by commas
	var wlocation = "left=25,screenX=25,top=25,screenY=25";
	var windowprops = "width=" + w + ",height=" + h;
	if (o != '')
		windowprops = windowprops + "," + o + "," + wlocation;
	popup = window.open(url, name, windowprops);
	//setTimeout('popup.focus();',250);
}

function closeWindow() {
window.close();
}

function roll(tagname, filename) {
   document.images[tagname].src = filename;
}

function goToSite(URL, w, h) {
	
window.location.href = URL;
self.resizeTo(w,h);	

}	


function closeMe1(URL, window_name){
window.open('url', 'window_name');
this.window.close();
}
 
function closeMxe(){
this.window.close();
}