function loadScript(testVar,callback){if(typeof(eval(testVar))!="undefined"){callback()}else{window.setTimeout(function(){window.loadScript(testVar,callback)},100)}}(function(){if(typeof(window.jQuery)=="undefined"||(typeof(window.jQuery)=="undefined"&&jQuery.fn.jquery!="1.3.2")){var a=document.getElementsByTagName("script");for(i=0;i<a.length;i++){source=a[i].getAttribute("src");if(source!=null&&typeof(source)!="undefined"&&source.indexOf("zfpcalculator")!=-1){var c=source}}calcUrl=c.split("zfpcalculator");var b=document.createElement("script");b.setAttribute("src",calcUrl[0]+"javascripts/jquery-1.3.2-min.js");b.setAttribute("type","text/javascript");document.body.appendChild(b)}loadScript("window.jQuery",jQueryLoaded)})();function jQueryLoaded(){scriptSrc=$("script[src*=zfpcalculator.js]").attr("src");calcUrl=scriptSrc.split("zfpcalculator");var a={};a.widget_url=calcUrl[0];if($("script[src*=zfp_calculator_controller]").length<=0){$("head").append('<link rel="stylesheet" href="'+calcUrl[0]+'css/reset.css" type="text/css" />');$("head").append('<link rel="stylesheet" href="'+calcUrl[0]+'css/style.css" type="text/css" />');$("head").append('<link rel="stylesheet" href="'+calcUrl[0]+'css/selectbox.css" type="text/css" />');if($.browser.msie&&(parseFloat($.browser.version)<7)){$("head").append('<link rel="stylesheet" href="'+calcUrl[0]+'/css/ie6.css" type="text/css" />')}if($.browser.msie&&(parseFloat($.browser.version)==7)){$("head").append('<link rel="stylesheet" href="'+calcUrl[0]+'/css/ie7.css" type="text/css" />')}if($.browser.msie&&(parseFloat($.browser.version)==8)){true}var b=scriptSrc.substring(scriptSrc.indexOf("?")+1,scriptSrc.length).split("&");$.each(b,function(){p=this.split("=");a[p[0]]=p[1]});if(typeof(a.clientid)=="undefined"){a.clientid="zerofootprint"}$.getScript(a.widget_url+"clients/"+a.clientid+"/javascripts/config.js",function(){$("script[src*=zfpcalculator.js]").clientConfig(a);if(typeof(a.calcstyle)=="undefined"){style="style.css"}else{style=a.calcstyle}$("head").append('<link rel="stylesheet" href="'+a.widget_url+"clients/"+a.clientid+"/css/"+style+'" type="text/css" />');if(typeof(a.pcm_url)=="undefined"){a.pcm_url="http://widget.zerofootprint.net:8080"}$.getScript(calcUrl[0]+"/javascripts/typewatch-min.js");$.getScript(calcUrl[0]+"/javascripts/selectbox.js");$.getScript(calcUrl[0]+"/javascripts/zfp_calculator_controller.js",function(){$("script[src*=zfpcalculator.js]").zfpCalculator(a)})});if($.browser.msie&&(parseFloat($.browser.version)<7)){$.getScript(calcUrl[0]+"/javascripts/DD_belatedPNG_0.0.7a-min.js",function(){DD_belatedPNG.fix(".about, .back, .calculation, .homes_equivalent, .loading_screen, .loading_screen h1, .welcome_screen, .welcome_details, .welcome_details h2 img, .cars_equivalent, .get_started, .explore_calculation, .done_calculation, .offset_all, .client_logo, .powered_by, .stack_header, .stack_header h1, .stack_layout, .category_list, .detail, .navigate_previous, .navigate_list, .navigate_next, .navigate_explore")})}}};
