
	var head= document.getElementsByTagName('head')[0];
	var script= document.createElement('script');
	script.type= 'text/javascript';
	script.src= 'http://lacstorage.leadsandcontacts.com/scripts/mybuyingbuddy2.2_min.js';
	head.appendChild(script);
	
function MBBv3_LoadWidgets(){
	var data = new Object();
	if (jQuery.mbburl.param("mbbagent")){ data.agent_id = jQuery.mbburl.param("mbbagent"); }
	if (data.agent_id){ setAgentRefer(data.agent_id); }
	if (jQuery('#MBBv3_FeaturedPanel').length){ showFeaturedPanel(); }
	if (jQuery('#MBBv3_Flex').length) { showFlexWidget(); }
	if (jQuery('.MBBv3_Flex').length) { showFlexWidget(); }
	if (jQuery('#MBBv3_QuickSearch').length){ showQuickSearch(); }
	if (jQuery('#MBBv3_SearchForm').length) { showSearchForm(); }
	if (jQuery('#MBBv3_LoginPanel').length) { showLoginPanel(); }
	if (jQuery('#MBBv3_ListingResults').length) { showListingResults(); }
	if (jQuery('#MBBv3_InteractiveMap').length){ showInteractiveMap(); }
	if (jQuery('#MBBv3_SearchResults').length) { showSearchResults(); }
	if (jQuery('#MBBv3_Brokers').length){ showBrokers(); }
	if (jQuery('#MBBv3_ContactUs').length){ showContactUs(); }
	if (jQuery('#MBBv3_LcForm').length){ showLcForm(); }
	if (jQuery('#MBBv3_SearchDetails').length) { showSearchDetails(); }
}
function MBBv3_ReloadWidgets(){
	if (jQuery('#MBBv3_SearchForm').length) { showSearchForm(); }
	if (jQuery('#MBBv3_SearchDetails').length) { showSearchDetails(); }
	if (jQuery('#MBBv3_LoginPanel').length) { showLoginPanel(); }
	if (jQuery('#MBBv3_ListingResults').length) { showListingResults(); }
}
// GA Tracking for MBB2
  var _gaq = _gaq || [];
  _gaq.push(['mbb2._setAccount', 'UA-25057557-3']);
  _gaq.push(['mbb2._setDomainName', 'mbb2.com']);
  _gaq.push(['mbb2._trackPageview']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

(function() {
  // Log all jQuery AJAX requests to Google Analytics
  jQuery(document).ajaxSend(function(event, xhr, settings){
    if (typeof _gaq !== "undefined" && _gaq !== null) {
      _gaq.push(['mbb2._trackPageview', settings.url]);
    }
  });
});
