contacthomeo=new Image;
contacthomeo.src="/images/contacthomeo.gif"
formso=new Image;
formso.src="/images/formso.gif"
careero=new Image;
careero.src="/images/careero.gif"
abouto=new Image;
abouto.src="/images/abouto.gif"
neighborhoodo=new Image;
neighborhoodo.src="/images/neighborhoodo.gif"
planso=new Image;
planso.src="/images/planso.gif"
condoo=new Image;
condoo.src="/images/condoo.gif"
inventoryo=new Image;
inventoryo.src="/images/inventoryo.gif"
financingo=new Image;
financingo.src="/images/financingo.gif"
homeo=new Image;
homeo.src="/images/homeo.gif"
companyo=new Image;
companyo.src="/images/companyo.gif"
commitmento=new Image;
commitmento.src="/images/commitmento.gif"
featureso=new Image;
featureso.src="/images/featureso.gif"
designo=new Image;
designo.src="/images/designo.gif"
faqo=new Image;
faqo.src="/images/faqo.gif"
contacto=new Image;
contacto.src="/images/contacto.gif"
standardo=new Image;
standardo.src="/images/standardo.gif"
storyo=new Image;
storyo.src="/images/2storyo.gif"
multilevelo=new Image;
multilevelo.src="/images/multilevelo.gif"
rancho=new Image;
rancho.src="/images/rancho.gif"
mastero=new Image;
mastero.src="/images/mastero.gif"
northwesto=new Image;
northwesto.src="/images/northwesto.gif"
northeasto=new Image;
northeasto.src="/images/northeasto.gif"
southeasto=new Image;
southeasto.src="/images/southeasto.gif"
southwesto=new Image;
southwesto.src="/images/southwesto.gif"
innovationo=new Image;
innovationo.src="/images/innovationo.gif"
warrantieso=new Image;
warrantieso.src="/images/warrantieso.gif"
tourso=new Image;
tourso.src="/images/tourso.gif"

contacthome=new Image;
contacthome.src="/images/contacthome.gif"
forms=new Image;
forms.src="/images/forms.gif"
career=new Image;
career.src="/images/career.gif"
about=new Image;
about.src="/images/about.gif"
neighborhood=new Image;
neighborhood.src="/images/neighborhood.gif"
plans=new Image;
plans.src="/images/plans.gif"
condo=new Image;
condo.src="/images/condo.gif"
inventory=new Image;
inventory.src="/images/inventory.gif"
financing=new Image;
financing.src="/images/financing.gif"
home=new Image
home.src="/images/home.gif"
company=new Image;
company.src="/images/company.gif"
commitment=new Image;
commitment.src="/images/commitment.gif"
features=new Image;
features.src="/images/features.gif"
design=new Image;
design.src="/images/design.gif"
faq=new Image;
faq.src="/images/faq.gif"
contact=new Image;
contact.src="/images/contact.gif"
standard=new Image;
standard.src="/images/standard.gif"
story=new Image;
story.src="/images/2story.gif"
multilevel=new Image;
multilevel.src="/images/multilevel.gif"
ranch=new Image;
ranch.src="/images/ranch.gif"
master=new Image;
master.src="/images/master.gif"
northwest=new Image;
northwest.src="/images/northwest.gif"
northeast=new Image;
northeast.src="/images/northeast.gif"
southeast=new Image;
southeast.src="/images/southeast.gif"
southwest=new Image;
southwest.src="/images/southwest.gif"
innovation=new Image;
innovation.src="/images/innovation.gif"
warranties=new Image;
warranties.src="/images/warranties.gif"
tours=new Image;
tours.src="/images/tours.gif"

function rollOver(imgName,imgNewImage) {
  document.images[imgName].src = eval(imgNewImage + ".src");
}

dropMenus = new Array('contacthome','about','plans','inventory','features');

function dropShow(menu) {
  if (document.all) {
    document.all[menu+'Drop'].style.visibility = 'visible';
  } else if (document.getElementById) {
    document.getElementById(menu+'Drop').style.visibility = 'visible';
  }
  for (n=0; n<dropMenus.length; n++) {
    if (dropMenus[n] != menu && menu != 'features') {
      if (document.all) {
        document.all[dropMenus[n]+'Drop'].style.visibility = 'hidden';
      } else if (document.getElementById) {
        document.getElementById(dropMenus[n]+'Drop').style.visibility = 'hidden';
      }
    }
  }
}

function dropHide() {
  for (n=0; n<dropMenus.length; n++) {
    if (document.all) {
      document.all[dropMenus[n]+'Drop'].style.visibility = 'hidden';
    } else if (document.getElementById) {
      document.getElementById(dropMenus[n]+'Drop').style.visibility = 'hidden';
    }
  }
}

function hiLight(flashName, spot) {
  document[flashName].TGotoLabel('/', spot);
}

function changePage(newLoc) {
  nextPage = newLoc.options[newLoc.selectedIndex].value;
  if (nextPage != "") {
    document.location.href = nextPage;
  }
}

function popUp(file, orientation) {
  if (orientation == "portrait") {
    dimension = "width";
  } else {
    dimension = "height";
  }
  popWindow = window.open(file,"popWindow","scrollbars=yes,"+ dimension +"=505");
  popWindow.focus();
}

function tour(model) {
  urlbase = EXPONENT.URL_FULL;
  tourWindow = window.open(urlbase+"tour/index.php?house="+model,"popWindow","scrollbars=no, width=750, height=522");
  tourWindow.focus();
}

function presentFlash(flashSource, bgColor, width, height, flashVars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+ width +'" height="'+ height +'" id="'+ flashSource +'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="/images/'+ flashSource +'.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="'+ bgColor +'">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="opaque">');
	document.write('<param name="flashvars" value="'+ flashVars +'">');
	document.write('<embed src="'+EXPONENT.URL_FULL+'themes/rockfordtheme/flash/'+flashSource +'.swf" flashvars="'+ flashVars +'" menu="false" wmode="opaque" quality="high" bgcolor="'+ bgColor +'" width="'+ width +'" height="'+ height +'" name="'+ flashSource +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}
