// popup window function 300 x 480 px
function win(newurl,newname) {
Win1=window.open(newurl,newname,'toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,copyhistory=no,width=300,height=480');
Win1.focus()
}

//reloads the window if Nav4 resized
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_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 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_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];}
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

  if (document.images) {
  lobbies_f2 = new Image(190,19); lobbies_f2.src = "images/lobbies_f2.gif";
  meeting_f2 = new Image(190,19); meeting_f2.src = "images/meeting_f2.gif";
  banks_f2 = new Image(190,19); banks_f2.src = "images/banks_f2.gif";
  courtrooms_f2 = new Image(190,18); courtrooms_f2.src = "images/courtrooms_f2.gif";
  education_f2 = new Image(190,18); education_f2.src = "images/education_f2.gif";
  hospitals_f2 = new Image(190,18); hospitals_f2.src = "images/hospitals_f2.gif";
  worship_f2 = new Image(190,18); worship_f2.src = "images/worship_f2.gif";
  restaurants_f2 = new Image(190,18); restaurants_f2.src = "images/restaurants_f2.gif";
  viewcomm_f2 = new Image(190,28); viewcomm_f2.src = "images/viewcomm_f2.gif";
  bluesquarehome_f2 = new Image(190,67); bluesquarehome_f2.src = "images/bluesquarehome_f2.gif";
  dining_f2 = new Image(190,15); dining_f2.src = "images/dining_f2.gif";
  bedroom_f2 = new Image(190,15); bedroom_f2.src = "images/bedroom_f2.gif";
  media_f2 = new Image(190,15); media_f2.src = "images/media_f2.gif";
  restoration_f2 = new Image(190,15); restoration_f2.src = "images/restoration_f2.gif";
  kitchens_f2 = new Image(190,15); kitchens_f2.src = "images/kitchens_f2.gif";
  baths_f2 = new Image(190,15); baths_f2.src = "images/baths_f2.gif";
  fireplaces_f2 = new Image(190,15); fireplaces_f2.src = "images/fireplaces_f2.gif";
  doors_f2 = new Image(190,15); doors_f2.src = "images/doors_f2.gif";
  stairs_f2 = new Image(190,15); stairs_f2.src = "images/stairs_f2.gif";
  porches_f2 = new Image(190,15); porches_f2.src = "images/porches_f2.gif";
  moldings_f2 = new Image(190,15); moldings_f2.src = "images/moldings_f2.gif";
  viewprojects_f2 = new Image(190,15); viewprojects_f2.src = "images/viewprojects_f2.gif";
  greensquarehome_f2 = new Image(190,38); greensquarehome_f2.src = "images/greensquarehome_f2.gif";
  profile_f2 = new Image(190,70); profile_f2.src = "images/profile_f2.gif";
  location_f2 = new Image(190,50); location_f2.src = "images/location_f2.gif";
  testimonials_f2 = new Image(190,40); testimonials_f2.src = "images/testimonials_f2.gif";
  abouthome_f2 = new Image(190,40); abouthome_f2.src = "images/abouthome_f2.gif";
  design_f2 = new Image(190,52); design_f2.src = "images/design_f2.gif";
  fab_f2 = new Image(190,55); fab_f2.src = "images/fab_f2.gif";
  install_f2 = new Image(190,45); install_f2.src = "images/install_f2.gif";
  consult_f2 = new Image(190,55); consult_f2.src = "images/consult_f2.gif";
  continuing_f2 = new Image(190,61); continuing_f2.src = "images/continuing_f2.gif";
  servicesquarehome_f2 = new Image(190,56); servicesquarehome_f2.src = "images/servicesquarehome_f2.gif";
  }

