// get rid of IE background image flicker
/**
 *	try {
 *  	document.execCommand("BackgroundImageCache", false, true);
 *	} catch(err) {}
*/ 
// image rollover code. function calls every image that has the class "swapImage". 
$(document).ready(function() {
	$.swapImage(".swapImage");
});
// drop down menu function
nav = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav1");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav3");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 } 
}
window.onload=nav;
//
$(document).ready(function(){
	$("#mrktCommercial").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_commercial.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktCommercial").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//
$(document).ready(function(){
	$("#mrktEducational").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_educational.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktEducational").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//
$(document).ready(function(){
	$("#mrktHeritage").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_heritage.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktHeritage").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//
$(document).ready(function(){
	$("#mrktHousing").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_housing.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktHousing").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//
$(document).ready(function(){
	$("#mrktResidential").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_residential.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktResidential").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//
$(document).ready(function(){
	$("#mrktRetail").mouseover(function () {
  	$("#mrktLoader").hide().load('architecture/market_overview_retail.php', function(){
			$(this).fadeIn(250);
			});
	});
	$("#mrktRetail").mouseout(function () {
  	$("#mrktLoader").hide();
		});
});
//


