<!--
window.addEventListener?window.addEventListener("load",SimpleSwapSetup,false):window.attachEvent("onload",SimpleSwapSetup);
function SimpleSwap(el,which) {
  el.src=el.getAttribute(which || "origsrc");
}
function SimpleSwapSetup() {
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image -
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;

    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");

    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}


function mmLoadMenus() {
  if (window.mm_menu_0219163003_0) return;
  //                                                                                               font      mo font   bg color  mo color
window.mm_menu_0219163003_0 = new Menu("root",126,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	mm_menu_0219163003_0.addMenuItem("Welcome","location='/welcome.html'");
	mm_menu_0219163003_0.addMenuItem("Visit&nbsp;Our&nbsp;Facility","location='/our_facility.html'");
	mm_menu_0219163003_0.addMenuItem("Quality&nbsp;&amp;&nbsp;Value","location='/quality_value.html'");
	mm_menu_0219163003_0.addMenuItem("FAQs","location='/faqs.html'");
	mm_menu_0219163003_0.addMenuItem("Downloads","location='/downloads.html'");
	mm_menu_0219163003_0.addMenuItem("Contact&nbsp;Us","window.open('/emailus.html', '_self');");
	mm_menu_0219163003_0.addMenuItem("Financing&nbsp;Options","location='/financing.html'");
	mm_menu_0219163003_0.addMenuItem("Links","location='/links.html'");
	mm_menu_0219163003_0.hideOnMouseOut=true;
	mm_menu_0219163003_0.menuBorder=0;
	mm_menu_0219163003_0.menuLiteBgColor='#ffffff';
	mm_menu_0219163003_0.menuBorderBgColor='#555555';
	mm_menu_0219163003_0.bgColor='#776d5a';

//window.mm_menu_0219163105_1 = new Menu("root",173,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	//mm_menu_0219163105_1.addMenuItem("<b>Castlebrook Buildings</b>","location='/gallery_custom_buildings.html'");
	//mm_menu_0219163105_1.addMenuItem("Raised&nbsp;Center&nbsp;Aisle","location='/rca.html'");
	//mm_menu_0219163105_1.addMenuItem("Shedrow","location='/shdrw.html'");
	//mm_menu_0219163105_1.addMenuItem("Gable/Gambrel","location='/gable.html'");
	//mm_menu_0219163105_1.addMenuItem("Round&nbsp;Pens&nbsp;&amp;&nbsp;Riding&nbsp;Arenas","location='/roundpen.html'");
	//mm_menu_0219163105_1.addMenuItem("Custom Buildings","location='/gallery_custom_buildings.html'");
	//mm_menu_0219163105_1.addMenuItem("Equestrian&nbsp;Centers","location='/eqcenters.html'");
	//mm_menu_0219163105_1.addMenuItem("Additional&nbsp;Structures","location='/gallery_additional_structures.html'");
	//mm_menu_0219163105_1.addMenuItem("Hardie Panels","location='/hardie.html'");
	//mm_menu_0219163105_1.addMenuItem("Barn&nbsp;Features","location='/barnfeats.html'");
	//mm_menu_0219163105_1.addMenuItem("Accessories","location='/acc.html'");
	//mm_menu_0219163105_1.hideOnMouseOut=true;
	//mm_menu_0219163105_1.menuBorder=0;
	//mm_menu_0219163105_1.menuLiteBgColor='#ffffff';
	//mm_menu_0219163105_1.menuBorderBgColor='#555555';
	//mm_menu_0219163105_1.bgColor='#90846e';

//window.mm_menu_0311103856_2 = new Menu("root",126,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	//mm_menu_0311103856_2.addMenuItem("Take&nbsp;A&nbsp;Virtual&nbsp;Tour","location='/barntour.html'");
	//mm_menu_0311103856_2.hideOnMouseOut=true;
	//mm_menu_0311103856_2.menuBorder=0;
	//mm_menu_0311103856_2.menuLiteBgColor='#ffffff';
	//mm_menu_0311103856_2.menuBorderBgColor='#555555';
	//mm_menu_0311103856_2.bgColor='#90846e';

window.mm_menu_0219163347_3 = new Menu("root",126,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	mm_menu_0219163347_3.addMenuItem("Specials","location='/specials.php'");
	mm_menu_0219163347_3.addMenuItem("Trade&nbsp;Shows","location='/trade_shows.php'");
	mm_menu_0219163347_3.hideOnMouseOut=true;
	mm_menu_0219163347_3.menuBorder=0;
	mm_menu_0219163347_3.menuLiteBgColor='#ffffff';
	mm_menu_0219163347_3.menuBorderBgColor='#555555';
	mm_menu_0219163347_3.bgColor='#90846e';

//window.mm_menu_0219163417_4 = new Menu("root",136,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	//mm_menu_0219163417_4.addMenuItem("Luxury Stall/Stall Front","window.open('/stallfront.html', '_self');");
	//mm_menu_0219163417_4.hideOnMouseOut=true;
	//mm_menu_0219163417_4.menuBorder=0;
	//mm_menu_0219163417_4.menuLiteBgColor='#ffffff';
	//mm_menu_0219163417_4.menuBorderBgColor='#555555';
	//mm_menu_0219163417_4.bgColor='#90846e';

window.mm_menu_0311103646_5 = new Menu("root",173,20,"Verdana, Arial, Helvetica, sans-serif",10,"#160100","#731611","#ac9d83","#cabba0","left","middle",5,1,250,0,0,true,true,true,0,false,false);
	mm_menu_0311103646_5.addMenuItem("Raised&nbsp;Center&nbsp;Aisle","location='/gallery_rca.html'");
	mm_menu_0311103646_5.addMenuItem("Shedrow","location='/gallery_shedrow.html'");
	mm_menu_0311103646_5.addMenuItem("Gable/Gambrel","location='/gallery_gable.html'");
	mm_menu_0311103646_5.addMenuItem("Round&nbsp;Pens","location='/gallery_round_pens.html'");
	mm_menu_0311103646_5.addMenuItem("Arenas","location='/gallery_arenas.html'");
	mm_menu_0311103646_5.addMenuItem("Custom Buildings","location='/gallery_custom_buildings.html'");
	mm_menu_0311103646_5.addMenuItem("Equestrian&nbsp;Centers","location='/gallery_equestrian_centers.html'");
	mm_menu_0311103646_5.addMenuItem("Additional&nbsp;Structures","location='/gallery_additional_structures.html'");
	mm_menu_0311103646_5.addMenuItem("Hardie Panels","location='/gallery_hardie_panel.html'");
	mm_menu_0311103646_5.addMenuItem("Castlebrook Buildings","location='/gallery_additional_structures.html'");
	mm_menu_0311103646_5.addMenuItem("Accessories","location='/gallery_accessories.html'");
	mm_menu_0311103646_5.addMenuItem("Specifications","location='/specifications.html'");
	mm_menu_0311103646_5.hideOnMouseOut=true;
	mm_menu_0311103646_5.menuBorder=0;
	mm_menu_0311103646_5.menuLiteBgColor='#ffffff';
	mm_menu_0311103646_5.menuBorderBgColor='#555555';
	mm_menu_0311103646_5.bgColor='#90846e';

	mm_menu_0311103646_5.writeMenus();
} // mmLoadMenus()

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->
