//mehr Angebote ein und ausblenden var mo="0"; function more(el){ if(!el)return false; var orgEl = el; while(el && (el=el.nextSibling) ) if( el.nodeType==1 ) break; if(!el||!el.style)return false; var bActive = el.style.display!="block"; el.style.display = bActive ? "block" : "none"; orgEl.className = bActive ? "active" : ""; return false } //Kategorien ein und ausblenden function showCatView(zeile) { zeile = document.getElementById(zeile); if (zeile.style.display == "none") { zeile.style.display = ""; document.getElementById('catViewLink').innerHTML = 'Weitere Kategorien ausblenden'; } else { zeile.style.display = "none"; document.getElementById('catViewLink').innerHTML = 'Weitere Kategorien einblenden'; } } //Tabs tabcontent.js function ddtabcontent(tabinterfaceid){ this.tabinterfaceid=tabinterfaceid this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") this.enabletabpersistence=true this.hottabspositions=[] this.currentTabIndex=0 this.subcontentids=[] this.revcontentids=[] this.selectedClassTarget="link" } ddtabcontent.getCookie=function(Name){ var re=new RegExp(Name+"=[^;]+", "i"); if (document.cookie.match(re)) //if cookie found return document.cookie.match(re)[0].split("=")[1] //return its value return "" } ddtabcontent.setCookie=function(name, value){ document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/) } ddtabcontent.prototype={ expandit:function(tabid_or_position){ this.cancelautorun() var tabref="" try{ if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) tabref=document.getElementById(tabid_or_position) else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) tabref=this.tabs[tabid_or_position] } catch(err){alert("Invalid Tab ID or position entered!")} if (tabref!="") this.expandtab(tabref) }, cycleit:function(dir, autorun){ if (dir=="next"){ var currentTabIndex=(this.currentTabIndex0)? this.currentTabIndex-1 : this.hottabspositions.length-1 } if (typeof autorun=="undefined") this.cancelautorun() this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]]) }, setpersist:function(bool){ this.enabletabpersistence=bool }, setselectedClassTarget:function(objstr){ this.selectedClassTarget=objstr || "link" }, getselectedClassTarget:function(tabref){ return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref }, urlparamselect:function(tabinterfaceid){ var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) return (result==null)? null : parseInt(RegExp.$1) }, expandtab:function(tabref){ var subcontentid=tabref.getAttribute("rel") var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : "" this.expandsubcontent(subcontentid) this.expandrevcontent(associatedrevids) for (var i=0; i500 && this.hottabspositions.length>1){ this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod) } } } //END Tabs //Merkzettel Funktion function setCookie(name, wert, domain, expires, path, secure){ var cook = name+"="+unescape(wert) cook += (domain) ? "; domain="+ domain : "" cook += (expires) ? "; expires="+expires : "" cook += (path) ? "; path="+path : "" cook += (secure) ? "; secure="+secure : "" document.cookie = cook } function eraseCookie(name, domain, path){ var ProduktAnzahl = 0; var cook = name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT" cook += (domain) ? "; domain="+domain : "" cook += (path) ? "; path="+path : "" document.cookie = cook } function getCookie(name){ var i=0 //Suchposition im Cookie var suche = name+"=" while (i-1) ? ende : document.cookie.length var cook = document.cookie.substring(i+suche.length, ende) return unescape(cook) } i++ } return "" } function checkCookie(){ setCookie("CookieTest", "OK") if (!getCookie("CookieTest")) return false else{ eraseCookie("CookieTest") return true } } function einfuegen(pid, deeplink, bild, titel, preis){ var ipid = getCookie("PID") + pid + "|" var ideeplink = getCookie("Deeplink") + deeplink + "|" var ibild = getCookie("Bild") + bild + "|" var ititel = getCookie("Titel") + titel + "|" var ipreis = getCookie("Preis") + preis + "|" setCookie("PID", ipid,"","Thu, 01-Jan-15 00:00:01 GMT","/") setCookie("Deeplink", ideeplink,"","Thu, 01-Jan-15 00:00:01 GMT","/") setCookie("Bild", ibild,"","Thu, 01-Jan-15 00:00:01 GMT","/") setCookie("Titel", ititel,"","Thu, 01-Jan-15 00:00:01 GMT","/") setCookie("Preis", ipreis,"","Thu, 01-Jan-15 00:00:01 GMT","/") if (!document.cookie) alert("Aktivieren Sie Cookies in Ihrem Browser!") else { var ipid = getCookie("PID") var ProduktAnzahl = 0 ipid.replace(/\|/g, function () { ProduktAnzahl++; }); document.getElementById("menge").innerHTML=ProduktAnzahl; alert("Artikel in Merkliste eingetragen!") } } function menge() { var ipid = getCookie("PID") var ProduktAnzahl = 0 ipid.replace(/\|/g, function () { ProduktAnzahl++; }); document.write(''+ProduktAnzahl+''); } /* hideAll, writeBrowseMore and showMore are used for the Browse page */ function hideAll(tagname, classname, viewValue) { var elements = document.getElementsByTagName(tagname); for (var i=0; i < elements.length; i++) { if (elements[i].className == classname) { elements[i].style.display=viewValue; } } } /* hideAll, writeBrowseMore and showMore are used for the Browse page */ function showMore(node) { var spanId = 'span_' + node; var moreId = 'more_' + node; document.getElementById(spanId).style.display='inline'; document.getElementById(moreId).style.display='none'; } /* hideAll, writeBrowseMore and showMore are used for the Browse page */ function writeBrowseMore(node) { document.write('  ERWETERTE SUCHE'); } /*--*/ //Tooltip Funktion var dhtmlgoodies_tooltip = false; var dhtmlgoodies_tooltipShadow = false; var dhtmlgoodies_shadowSize = 4; var dhtmlgoodies_tooltipMaxWidth = 200; var dhtmlgoodies_tooltipMinWidth = 100; var dhtmlgoodies_iframe = false; var tooltip_is_msie = (navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('opera')==-1 && document.all)?true:false; function showTooltip(e,tooltipTxt) { var bodyWidth = Math.max(document.body.clientWidth,document.documentElement.clientWidth) - 20; if(!dhtmlgoodies_tooltip){ dhtmlgoodies_tooltip = document.createElement('DIV'); dhtmlgoodies_tooltip.id = 'dhtmlgoodies_tooltip'; dhtmlgoodies_tooltipShadow = document.createElement('DIV'); dhtmlgoodies_tooltipShadow.id = 'dhtmlgoodies_tooltipShadow'; document.body.appendChild(dhtmlgoodies_tooltip); document.body.appendChild(dhtmlgoodies_tooltipShadow); if(tooltip_is_msie){ dhtmlgoodies_iframe = document.createElement('IFRAME'); dhtmlgoodies_iframe.frameborder='5'; dhtmlgoodies_iframe.style.backgroundColor='#FFFFFF'; dhtmlgoodies_iframe.src = '#'; dhtmlgoodies_iframe.style.zIndex = 100; dhtmlgoodies_iframe.style.position = 'absolute'; document.body.appendChild(dhtmlgoodies_iframe); } } dhtmlgoodies_tooltip.style.display='block'; dhtmlgoodies_tooltipShadow.style.display='block'; if(tooltip_is_msie)dhtmlgoodies_iframe.style.display='block'; var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop); if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; var leftPos = e.clientX + 10; dhtmlgoodies_tooltip.style.width = null; // Reset style width if it's set dhtmlgoodies_tooltip.innerHTML = tooltipTxt; dhtmlgoodies_tooltip.style.left = leftPos + 'px'; dhtmlgoodies_tooltip.style.top = e.clientY + 10 + st + 'px'; dhtmlgoodies_tooltipShadow.style.left = leftPos + dhtmlgoodies_shadowSize + 'px'; dhtmlgoodies_tooltipShadow.style.top = e.clientY + 10 + st + dhtmlgoodies_shadowSize + 'px'; if(dhtmlgoodies_tooltip.offsetWidth>dhtmlgoodies_tooltipMaxWidth){ /* Exceeding max width of tooltip ? */ dhtmlgoodies_tooltip.style.width = dhtmlgoodies_tooltipMaxWidth + 'px'; } var tooltipWidth = dhtmlgoodies_tooltip.offsetWidth; if(tooltipWidthbodyWidth){ dhtmlgoodies_tooltip.style.left = (dhtmlgoodies_tooltipShadow.style.left.replace('px','') - ((leftPos + tooltipWidth)-bodyWidth)) + 'px'; dhtmlgoodies_tooltipShadow.style.left = (dhtmlgoodies_tooltipShadow.style.left.replace('px','') - ((leftPos + tooltipWidth)-bodyWidth) + dhtmlgoodies_shadowSize) + 'px'; } if(tooltip_is_msie){ dhtmlgoodies_iframe.style.left = dhtmlgoodies_tooltip.style.left; dhtmlgoodies_iframe.style.top = dhtmlgoodies_tooltip.style.top; dhtmlgoodies_iframe.style.width = dhtmlgoodies_tooltip.offsetWidth + 'px'; dhtmlgoodies_iframe.style.height = dhtmlgoodies_tooltip.offsetHeight + 'px'; } } function hideTooltip() { dhtmlgoodies_tooltip.style.display='none'; dhtmlgoodies_tooltipShadow.style.display='none'; if(tooltip_is_msie)dhtmlgoodies_iframe.style.display='none'; }