// JavaScript Document
<!--
var tab_select='tabs_1';

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { 
  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_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_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 click_tab(tabid) {
	document.getElementById('tabs_1').src='/images/site/tabs_1.jpg';
	document.getElementById('tabs_2').src='/images/site/tabs_2.jpg';
	document.getElementById('tabs_3').src='/images/site/tabs_3.jpg';
	document.getElementById('tabs_4').src='/images/site/tabs_4.jpg';
	document.getElementById('tabs_5').src='/images/site/tabs_5.jpg';
	hide_bubble('configlistlayer1');
	hide_bubble('partslistlayer1'); 
	hide_bubble('filterlistlayer1'); 
	hide_bubble('doclistlayer1');
	hide_bubble('videolistlayer1');
	tab_select=tabid;
	if (tabid == 'tabs_1'){
	show_bubble('configlistlayer1');
	document.getElementById('tabs_1').src='/images/site/tabs_1_over.jpg';
	}
	
	if (tabid == 'tabs_2'){
	show_bubble('partslistlayer1');
	document.getElementById('tabs_2').src='/images/site/tabs_2_over.jpg';	
	}
	
	if (tabid == 'tabs_3'){
	show_bubble('filterlistlayer1');
	document.getElementById('tabs_3').src='/images/site/tabs_3_over.jpg';	
	}
	
	if (tabid == 'tabs_4'){
	show_bubble('doclistlayer1');
	document.getElementById('tabs_4').src='/images/site/tabs_4_over.jpg';	
	}
	
	if (tabid == 'tabs_5'){
	show_bubble('videolistlayer1');
	document.getElementById('tabs_5').src='/images/site/tabs_5_over.jpg';	
	}
}

function tab_restore(tabover) {
	if (tabover == tab_select) {
	document.getElementById(tabover).src='/images/site/' + tabover + '_over.jpg';
	}else{
	document.getElementById(tabover).src='/images/site/' + tabover + '.jpg';
	}
}


function click_bubble_sav(divid) {
	if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
    }else{
      document.getElementById(divid).style.display = 'none';
    }
}

function show_bubble(divid) {

	if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
       }
}

function hide_bubble(divid) {
	 document.getElementById(divid).style.display = 'none';
}

var popupwin=0;
function vid_popup(v_path) {
popupwin = open(v_path, 'popupwin', 'height=500,width=550,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,menubar=no');
}

var popupmls=0;
function mls_popup(v_path) {
popupmls = open(v_path, 'popupwin', 'height=600,width=800,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,menubar=no');
}

var popupmap=0;
function map_popup(v_path) {
popupmap = open(v_path, 'popupwin', 'height=700,width=860,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,menubar=no');
}

var popupflyer=0;
function flyer_popup(v_path) {
popupflyer = open(v_path, 'popupwin', 'height=600,width=800,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,menubar=no');
}

function menuover(obj, state){
if (state=='on'){
    obj.style.background = '#FFFFFF';
}else{
    obj.style.background = '#DFE7EA';
}
}




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/nav_about_us_over.jpg','/images/nav_communities_over.jpg','/images/nav_homes_over.jpg','/images/nav_retail_over.jpg','/images/nav_office_over.jpg','/images/nav_industrial_over.jpg','/images/nav_brighton_found_over.jpg','/images/nav_contact-us_over.jpg');

//-->