/*
var ebApiLoader = {
	loadScript : function (url,el,as) {
		var ebj = document.createElement('script'); ebj.type = 'text/javascript'; ebj.async = as;
		ebj.src = ebProtocol + url;
		if (el == 'body' && typeof(document.body) != 'object') { el = 'head' }
		var b = document.getElementsByTagName(el); b[0].appendChild(ebj, b);
	},
	loadCSS : function (url) {
		var ebj = document.createElement('link'); ebj.type = 'text/css'; ebj.rel = 'stylesheet'; ebj.media = 'all';
		ebj.href =ebProtocol + url;
		var b = document.getElementsByTagName('head'); b[0].appendChild(ebj, b);
	},
	onReady : function (fn,i) {
		if (typeof(LazyLoad) != 'object') {
			if (i < 50) { setTimeout(function(){ebApiLoader.onReady(fn,++i)},200) }
		} else {
			fn.call();
		}
	},
	loadApp : function() {
		if (ebNoConflict) {
			jQuery.noConflict();
		}
		jQuery(document).ready(function () {
			ebApiLoader.loadScript(ebDomain+'api/tools/search/v1.app.js','body',true);
		});
	}
}, ebDomain = 'fachhaendlersuche.eurobaustoff.de/', ebNoConflict = false, ebProtocol = (document.location.protocol == 'https:' ? 'https:' : 'http:')+'//';

if (typeof(jQuery) != 'function') {
	var ebNoConflict = true, jQuery = null, LazyLoad = false;
	ebApiLoader.loadScript(ebDomain+'api/js/lazyload.min.js','head',true);
	ebApiLoader.onReady(function() { LazyLoad.js(ebProtocol + 'ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', ebApiLoader.loadApp) },0);
	//ebApiLoader.loadScript('ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js','head',true);
} else {
	ebApiLoader.loadApp();	
}
//ebApiLoader.onReady(ebApiLoader.loadApp,0);
ebApiLoader.loadCSS(ebDomain+'api/css/search.v1.css');
*/

if (typeof(ebApiConfig) != 'object') {
	var ebApiConfig = {};	
}
if (typeof(ebApiConfig.tools) != 'array') {
	ebApiConfig.tools = [];	
}
ebApiConfig.tools.push('search');

document.write('<script type="text/javascript" src="http://fachhaendler.eurobaustoff.de/api/tools/loader.js"></script>');
