
function WH_findObj(n, d) { 
  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=WH_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function WH_showHideLayers() { 
  var i,p,v,obj,args=WH_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=WH_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function WH_swapImage() { //v3.0
  var i,j=0,x,a=WH_swapImage.arguments; document.WH_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=WH_findObj(a[i]))!=null){document.WH_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function WH_swapImgRestore() { //v3.0
  var i,x,a=document.WH_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function menuover(obj, state){
if (state=='on'){
    obj.style.color = 'white';
}else{
    obj.style.color = 'white';
}
}
function preloadImages() {
  if(document.images)  {
    if(!document.imageArray) document.imageArray = new Array();
    var i,j = document.imageArray.length, args = preloadImages.arguments;
    for(i=0; i<args.length; i++)    {
      if (args[i].indexOf("#")!=0)      {
        document.imageArray[j] = new Image;
        document.imageArray[j++].src = args[i];
      }
    }
  }
}
preloadImages('images/links_01-over.gif', 'images/links_02-over.gif', 'images/links_03-over.gif', 'images/links_04-over.gif', 'images/links_05-over.gif', 'images/links_06-over.gif');


function floorplan01(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0px,top=0px,width=650,height=300,right = 120,base = 0');");
}
function changeimg(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0px,top=0px,width=650,height=300,right = 120,base = 0');");
}
function showhouse(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0px,top=0px,width=600,height=600,right = 120,base = 0');");
}
function launchHomeMap(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0px,top=0px,width=800,height=600,right = 120,base = 0');");
}
function viewAddress(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0px,top=0px,width=600,height=600,right = 120,base = 0');");
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		searchbutton_01_over = newImage("images/searchbutton_01-over.gif");
		preloadFlag = true;
	}
}
function runEdit(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=500,left=200,top=200');");
}
function showPhotos(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=550,left=200,top=200');");
}
function showTour(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=450,left=200,top=200');");
}
function chooselogo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=450,left=200,top=200');");
}

