var _lm_jqueryout=false;function _func_lm_bootstrap(){var c=true,b=true,e=true,a="";if(typeof(lm_siteId)==="undefined"){c=false}else{if(lm_siteId.length<36){c=false}}if(typeof(lm_testMode)==="undefined"){b=false}else{if(!(lm_testMode===false||lm_testMode===true)){b=false}}if(typeof(lm_options)==="undefined"){e=false}else{a="&options="+escape(lm_options)}if(!c||!b){alert("Unable to find lm_siteId and lm_testMode variables.\n\nPlease ensure you have copied the integration code correctly.");return}if(typeof(jQuery)=="undefined"){if(!_lm_jqueryout){_lm_jqueryout=true;var d="scr";document.write("<"+d+'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></'+d+"ipt>")}setTimeout("_func_lm_bootstrap()",50)}else{jQuery(function(){jQuery.extend({addCSS:function(g){if(document.createStyleSheet){document.createStyleSheet(g)}else{jQuery("head").append(jQuery("<link />").attr({rel:"stylesheet",type:"text/css",href:g}))}},addFormHtml:function(g){jQuery("#lm_bootstrap").after(jQuery(g))}});function f(){var g=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(g()+g()+"-"+g()+"-"+g()+"-"+g()+"-"+g()+g()+g())}jQuery.getScript("https://www.leadmagpie.com/Integration/Start?nocache="+f()+"&siteId="+lm_siteId+a)})}}_func_lm_bootstrap();
