(function(){try{var O="2.1.3";var J=document.getElementsByTagName("head")[0];if(!window.PAGESETUP){throw"Edmunds UI Loader: PAGESETUP global variable is not defined"}if(typeof window.PAGESETUP!="object"){throw"Edmunds UI Loader: PAGESETUP global variable is not an object"}if(!PAGESETUP.files){PAGESETUP.files=[]}if(!PAGESETUP.loaded){PAGESETUP.loaded=false}if(!PAGESETUP.query_vars){PAGESETUP.query_vars={}}if(!PAGESETUP.default_libs){PAGESETUP.default_libs=[]}if(!PAGESETUP.jsdownloaded){PAGESETUP.jsdownloaded=0}if(!PAGESETUP.yuicdn){throw"Edmunds UI Loader: PAGESETUP requires a YUI CDN to be defined in PAGESETUP.yuicdn"}if(!PAGESETUP.edmuicdn){throw"Edmunds UI Loader: PAGESETUP requires a EDMUI CDN to be defined in PAGESETUP.edmuicdn"}var C=(navigator.userAgent.toLowerCase().indexOf("msie")!==-1);var E=(navigator.userAgent.match(/firefox\/3\./i)!=null);var K=(navigator.userAgent.toLowerCase().indexOf("blackberry")!==-1);if(PAGESETUP.loaded){return }PAGESETUP.loadedfiles={};function N(){if(PAGESETUP&&PAGESETUP.queue&&PAGESETUP.queue.noWait){if(PAGESETUP.queue.noWait[0]){PAGESETUP.queue.noWait.shift().call()}}}function M(){var R=arguments.callee;if(L.length){var Q=L.shift();Q=Q.replace(/\|/g,"/").replace(/\;/g,".");PAGESETUP.loadedfiles[Q]="loaded";if(Q.indexOf("http")!==0){var P=P||B("jsflag");if(Q.indexOf("edmui")!==-1){Q=Q.replace(/edmui/,PAGESETUP.edmuicdn)}else{if(Q.indexOf("yui")!==-1){Q=Q.replace(/yui/,PAGESETUP.yuicdn)}}if(!P&&Q.indexOf("utilities")===-1){Q=Q.replace(/\.js/,"-min.js")}else{if(P=="debug"&&Q.indexOf("utilities")===-1){Q=Q.replace(/\.js/,"-debug.js")}}}var S=document.createElement("script");S.type="text/javascript";if(C){S.src=Q;S.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"||this.status==304||this.status==404){R()}};J.appendChild(S)}else{if(S.async){S.async=false;S.src=Q;if(L.length<1){S.onload=function(){R()}}J.appendChild(S);if(L.length){R()}}else{S.src=Q;document.body.appendChild(S);if((E&&L.length)||(K)){R()}else{S.onload=function(){R()};S.onerror=function(){R()}}}}}else{PAGESETUP.loaded=true;if(PAGESETUP.execControls){PAGESETUP.execControls()}}}function B(R){if(!PAGESETUP.query_vars.length){var Q,S,T;T=window.location.search.substr(1,window.location.search.length);if(T.length<1){return""}Q=T.split("&");for(var P=0;P<Q.length;P++){S=Q[P].split("=");PAGESETUP.query_vars[S[0]]=S[1]}}return PAGESETUP.query_vars[R]}function D(Q){var T={};var R=[];var P=Q.length;for(var S=0;S<P;S++){if(!T[Q[S]]&&!T[A[Q[S]]]){R.push(Q[S]);T[Q[S]]=1}}T=null;return R}var A=PAGESETUP.combined_libs||{};var I=PAGESETUP.breakdown_libs||[];var H=B("jsflag");if(H=="full"||H=="debug"){var F=I.concat(PAGESETUP.files)}else{var F=PAGESETUP.default_libs.concat(PAGESETUP.files)}var L=D(F);N();M()}catch(G){throw new Error("EDMUI Loader Error: "+G)}})();
