if (typeof(HWS) == "undefined") var HWS = {}; if (typeof(HWS.Banner) == "undefined") HWS.Banner = function(id,height,width,lnkNext) { this.next = function() { document.body.style.cursor = "wait"; var script = document.createElement("script"); script.type = "text/javascript"; script.src = lnkNext + "&itemid=" + this.ItemId + "&id=" + id; document.getElementsByTagName("head")[0].appendChild(script); } this.showProduct = function(product) { this.ProductLink1.href = product.Url; this.ProductLink1.style.top = ((height - product.ImageHeight) / 2) + "px"; this.ProductImg.src = product.ImageUrl; this.Div1.style.width = (width - product.ImageWidth) + "px"; this.Div1.style.left = product.ImageWidth + "px"; this.ProductLink2.href = product.Url; this.ProductLink2.innerHTML = product.Description; this.Div2.style.width = (width - product.ImageWidth) + "px"; this.Div2.style.left = product.ImageWidth + "px"; this.ItemId = product.Id; } this.drawBanner = function(url,description) { var div = document.getElementById(id); if(div == null) { var instance = this; setTimeout(function() { instance.drawBanner(); }, 5); return; } //div.style.border = "1px solid Black"; this.ProductLink1 = document.createElement("a"); this.ProductLink1.target = "_blank"; this.ProductLink1.style.position = "absolute"; this.ProductLink1.style.left = "5px"; div.appendChild(this.ProductLink1); this.ProductImg = document.createElement("img"); this.ProductImg.style.border = "none"; this.ProductLink1.appendChild(this.ProductImg); this.Div1 = document.createElement("div"); this.Div1.style.fontSize = "12px"; //this.Div1.style.border = "1px solid black"; this.Div1.style.position = "relative"; this.Div1.style.height = (height - 18) + "px"; this.Div1.style.overflow = "hidden"; div.appendChild(this.Div1); this.ProductLink2 = document.createElement("a"); this.ProductLink2.target = "_blank"; this.Div1.appendChild(this.ProductLink2); this.Div2 = document.createElement("div"); this.Div2.style.fontSize = "8px"; //this.Div2.style.border = "1px solid black"; this.Div2.style.position = "relative"; this.Div2.style.height = "18px"; this.Div2.style.lineHeight = "18px"; this.Div2.style.whiteSpace = "nowrap"; this.Div2.verticalAlign = "bottom"; div.appendChild(this.Div2); var lnk = document.createElement("a"); lnk.href = "javascript:HWS." + id + ".next();"; lnk.innerHTML = ">>"; lnk.title = "next product"; this.Div2.appendChild(lnk); lnk = document.createElement("a"); lnk.target = "_blank"; lnk.href = url; lnk.innerHTML = description; lnk.style.paddingLeft = "4px"; this.Div2.appendChild(lnk); } document.write(""); document.write("
"); } HWS.bnr16434 = new HWS.Banner('bnr16434',79,200,'http://hondos.org/shop/bannerjs.aspx?loc=3&bnid=498238'); HWS.bnr16434.drawBanner("http://shop.hondos.org?loc=3","Hondos Shop"); HWS.bnr16434.showProduct({"Description":"Technische Analyse der Finanzmärkte. Inkl. Workbook. Grundlagen, Strategien, Methoden, Anwendungen","Id":1,"ImageHeight":75,"ImageUrl":"http:\/\/ecx.images-amazon.com\/images\/I\/51FP1NJ8AZL._SL75_.jpg","ImageWidth":65,"Url":"http:\/\/shop.hondos.org\/shop\/details.aspx?loc=3&asin=3898790622"});