        var config = new function() {
            this.linkCode = 'Search';
            this.campaign = '2474';
            this.ccmid = '20558';
            this.orgUnit = '3';
            this.searchalias = 'stripbooks';
            this.defaultTag= 'wwwkinderbu0b-21';
	    this.protocol= window.location.protocol;
            this.mediaServerPrefix = this.protocol === 'https:' ? 'https://images-na.ssl-images-amazon.com' : 'http://rcm-images.amazon.com';
            this.amazonURL= this.protocol + '//www.amazon.de/';
            this.logoImageURL = this.mediaServerPrefix + '/images/G/03/associates/build-links/searchbox-logo-126x32.gif';
            this.goButtonURL = this.mediaServerPrefix + '/images/G/03/associates/build-links/ap-search-go-btn.gif';
            this.recordImpressionURL = this.protocol + '//www.assoc-amazon.de';
            this.logoHeight ='36';
            this.logoWidth = '126';
         };
        function getQueryParams() {
            var queryParams = new Array();
            var currentURL = document.location.href;
            if (currentURL) {
                var pathParameters = currentURL.split("?");
                if(pathParameters[1]) {
                    var nameValuePairs = pathParameters[1].split("&");
                    for (var i = 0; i < nameValuePairs.length; i++) {
                        var nameValue = nameValuePairs[i].split("=");
                        var name = nameValue[0];
                        queryParams[name] = nameValue[1];
                    }
                }
            }
            return queryParams;
        }
 
        function getTag() {
            var queryParams = getQueryParams();
            return queryParams["t"] ? queryParams["t"] : config.defaultTag;
        }
 
       function drawLogo() {
            document.write("<a href='" + config.amazonURL + "?&tag=" + getTag()
                    + "&camp=" + config.campaign + "&creative=" + config.ccmid + "&linkCode=" + config.linkCode +"&' target='_top'>"
                    + "<img src='" + config.logoImageURL +"' "
                    + "height='" +config.logoHeight + "' width='" + config.logoWidth + "' alt='Amazon Logo'/></a>");
        }
 
        function writeFields() {
            document.write("<form action='" + config.amazonURL + "s/' method='get' name='search' target='_top'>");
            document.write("<input type='hidden' name='tag' value='" + getTag() + "'/>");
            document.write("<input type='hidden' name='creative' value='" + config.ccmid + "'/>");
            document.write("<input type='hidden' name='campaign' value='" + config.campaign + "'/>");
            document.write("<input type='hidden' name='link_code' value='" + config.linkCode + "'/>");
            document.write("<input type='hidden' name='search-alias' value='" + config.searchalias + "'/>");
        }
 
        function recordImpression() {
            document.write("<img style='display:none ; border: medium none ; width: 1px; height: 1px;' "
                    + "src='" + config.recordImpressionURL + "/e/ir?o=" + config.orgUnit + "&t=" + getTag() + "&l=" + config.linkCode + "&camp=" + config.campaign
                    + "&creative=" + config.ccmid + "'/>");
         }
 
        function drawGoButton() {
            document.write("<input id='button' type='image' value='Go' name='Submit' src='" + config.goButtonURL + "' alt='[Go]'/>");
        }