d #FFFFFF"}); //$("#mainAREA").load("http://www.berkshomes.com/COMMUNITIES/BLH/CONTENT/slideshow.html?v=17"); //$("#mainAREA").css({"background-color": "#22323d"}); }, 2000); NHdisable(); bkgrndResize(); setTimeout(function() { bkgrndResize(); }, 200); $(window).resize(function() { bkgrndResize(); }); $("#commHeadBAR").load('http://www.berkshomes.com/COMMUNITIES/BLH/CONTENT/commHeadBAR.html?v=17'); }); var WEBhref = window.location.href; var COMMpath = WEBhref.split('/'); if(4 < COMMpath.length) { var commNAME = COMMpath[4]; console.log(WEBhref); } $.ajax({ url: "http://www.berkshomes.com/COMMUNITIES/" + commNAME + "/CONTENT/images", success: function(data){ $(data).find("a:contains(.jpg)").each(function(){ var images = $(this).attr('href'); $('').appendTo("#gallery"); }); } }); setTimeout(function() { $("#gallery img").load(function() { $("#picPreloader").fadeOut(); // picRESIZE(); }); }, 100); setTimeout(function(){ $('#gallery img:gt(0)').hide(); setInterval(function(){ $('#gallery img:first').fadeOut(2000) .next('img').fadeIn(2000) .end().appendTo('#gallery'); }, 4000); }, 100); }, 1000); });