<!-- 
var jscr = false;
var opera = false;
if (navigator.appName.substring(0,9) == "Microsoft" &&
parseInt(navigator.appVersion) >= 4 ) jscr = true;
if (navigator.appName.substring(0.8) == "Netscape" &&
parseInt(navigator.appVersion) >= 3 ) jscr = true;
if (navigator.userAgent.indexOf('Opera') != -1) opera = true;

function gifover(bild) {
if (jscr) {
document.getElementById(bild).src = "images/" + bild + "-over.gif";
document.getElementById(bild).style.cursor = "pointer";}}
function gifaway(bild) {
if (jscr) {
document.getElementById(bild).src = "images/" + bild + ".gif";
document.getElementById(bild).style.cursor = "default";}}

function pngover(bild) {
if (jscr) {
document.getElementById(bild).src = "images/" + bild + "-over.png";
document.getElementById(bild).style.cursor = "pointer";}}
function pngaway(bild) {
if (jscr) {
document.getElementById(bild).src = "images/" + bild + ".png";
document.getElementById(bild).style.cursor = "default";}}

function trashover(bild) {
if (jscr) {
document.getElementById(bild).src = "images/trashcan-over.png";
document.getElementById(bild).style.cursor = "pointer";}}
function trashaway(bild) {
if (jscr) {
document.getElementById(bild).src = "images/trashcan.png";
document.getElementById(bild).style.cursor = "default";}}

function editover(bild) {
if (jscr) {
document.getElementById(bild).src = "images/edit-over.png";
document.getElementById(bild).style.cursor = "pointer";}}
function editaway(bild) {
if (jscr) {
document.getElementById(bild).src = "images/edit.png";
document.getElementById(bild).style.cursor = "default";}}

function handover(menu) {
if (jscr) {
menu.style.cursor = "pointer";}}
function handaway(menu) {
if (jscr) {
menu.style.cursor = "default";}}

function backover(menu, image) {
if (jscr) {
menu.style.backgroundImage = "url(images/"+image+")";
menu.style.cursor = "pointer";}}
function backaway(menu, image) {
if (jscr) {
menu.style.backgroundImage = "url(images/"+image+")";
menu.style.cursor = "default";}}

function colorover(menu, color) {
if (jscr) {
menu.style.backgroundColor = color;
menu.style.cursor = "pointer";}}
function coloraway(menu, color) {
if (jscr) {
menu.style.backgroundColor = color;
menu.style.cursor = "default";}}

function zahlover(menu, color) {
if (jscr) {
menu.style.borderColor = color;
menu.style.cursor = "pointer";}}
function zahlaway(menu) {
if (jscr) {
menu.style.borderColor = "#666666";
menu.style.cursor = "default";}}

function thumb_over(bild, color) {
if (jscr) {
bild.style.borderColor = color;}}
function thumb_away(bild) {
if (jscr) {
bild.style.borderColor = "#CCCCCC";}}

function closeover(bild) {
if (jscr) {
document.getElementById(bild).src = "images/close-over.gif";
document.getElementById(bild).style.cursor = "pointer";}}
function closeaway(bild) {
if (jscr) {
document.getElementById(bild).src = "images/close.gif";
document.getElementById(bild).style.cursor = "default";}}

function artikelover(id) {
if (jscr) {
document.getElementById("td"+id).style.borderStyle = "solid";
document.getElementById("td"+id).style.cursor = "pointer";
document.getElementById("artikel"+id).style.display = "block";
//slidedown("artikel"+id, 0);
}}
function artikelaway(id) {
if (jscr) {
document.getElementById("td"+id).style.borderStyle = "dashed";
document.getElementById("td"+id).style.cursor = "default";
document.getElementById("artikel"+id).style.display = "none";
//slideup("artikel"+id, 0);
}}

function warenover(menu) {
if (jscr) {
menu.style.backgroundImage = "url(images/warenkorb-over.gif)";
menu.style.cursor = "pointer";}}
function warenclick(menu) {
if (jscr) {
menu.style.backgroundImage = "url(images/warenkorb-click.gif)";
menu.style.cursor = "pointer";
document.forms.order.submit();}}
function warenaway(menu) {
if (jscr) {
menu.style.backgroundImage = "url(images/warenkorb.gif)";
menu.style.cursor = "default";}}

function sideaktiv(aktiv) {
if (jscr) {
/*document.getElementById("side-news").style.display = "none";
document.getElementById("side-bestseller").style.display = "none";
document.getElementById("side-sale").style.display = "none";
document.getElementById(aktiv).style.display = "block";*/
if(document.getElementById("side-news").style.display != "none") slideendup("side-news");
if(document.getElementById("side-bestseller").style.display != "none") slideendup("side-bestseller");
if(document.getElementById("side-sale").style.display != "none") slideendup("side-sale");
slidedown(aktiv, 1);}}

var search_akt = 0;
var search_text = new Array();
var search_max = 0;

function submitsearch() {
if (jscr) {
if(search_akt != 0)
{
  document.stobern.search.value = search_text[search_akt];
  //document.getElementById("searchhelper").style.display = "none";
  slideup("searchhelper", 1);
}
document.forms.stobern.submit();}}

function hidesearch() {
if (jscr) {
document.stobern.search.focus();
//document.getElementById("searchhelper").style.display = "none";
slideup("searchhelper", 1);}}

function searchover(menu) {
if (jscr) {
if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
search_akt = parseInt(menu.replace("tds", ""));
document.getElementById(menu).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
document.getElementById(menu).style.cursor = "pointer";}}

function searchaway(menu) {
if (jscr) {
if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
search_akt = 0;
document.getElementById(menu).style.backgroundImage = "url(images/searchhelper-back.gif)";
document.getElementById(menu).style.cursor = "default";}}

function searchscroll(ev){
if (jscr)
{
  if(document.getElementById("searchhelper").style.display != "none")
  {
    if(!ev) ev = window.event; 
    var taste = ev.keyCode || ev.which;

    // ESC
    if(taste == 27)
    {
      hidesearch();
    }
    // Page Hoch
    else if(taste == 33)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt = search_akt - 10;
      if(search_akt < 1) search_akt = 1;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
    // Page Runter
    else if(taste == 34)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt = search_akt + 10;
      if(search_akt > search_max) search_akt = search_max;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
    // End
    else if(taste == 35)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt = search_max;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
    // Pos 1
    else if(taste == 36)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt = 1;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
    // Pfeil Hoch
    else if(taste == 38)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt--;
      if(search_akt < 1) search_akt = search_max;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
    // Pfeil Runter
    else if(taste == 40)
    {
      if(search_akt != 0) document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back.gif)";
      search_akt++;
      if(search_akt > search_max) search_akt = 1;
      document.getElementById("tds" + search_akt).style.backgroundImage = "url(images/searchhelper-back-over.gif)";
    }
  }
}}

function searchhelper(ev){
if (jscr)
{
  //document.getElementById("searchhelper").style.display = "none";
  if(document.stobern.search.value.length > 2)
  {
    if(!ev) ev = window.event; 
    var taste = ev.keyCode || ev.which;

    if((taste != 27) && (taste != 33) && (taste != 34) && (taste != 35) && (taste != 36) && (taste != 37) && (taste != 38) && (taste != 39) && (taste != 40))
    {
      search_akt = 0;
      search_max = 0;
      var found = 0;
      var height = 54;
      var NewHTML = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"450\"><tr><td height=\"18\" valign=\"middle\" align=\"left\" background=\"images/searchhelper-back.gif\"><font class=\"nsw08\">&nbsp;</font></td></tr><tr><td height=\"18\" valign=\"middle\" align=\"right\" background=\"images/searchhelper-back.gif\"><img id=\"searchclose\" border=\"0\" src=\"images/close.gif\" width=\"18\" height=\"12\" onMouseover=\"closeover('searchclose')\" onMouseout=\"closeaway('searchclose')\" onclick=\"hidesearch()\"></td></tr>\n";
      var expression = new RegExp(document.stobern.search.value, "i");
      
      for(var i=0; i < sstring.length; i++)
      {
        var erg = expression.exec(sstring[i]);
        if(erg != null)
        {
          found = 1;
          search_max++;
          search_text[search_max] = sstring[i];
          height += 18;
          NewHTML += "<tr><td id=\"tds" + search_max + "\" height=\"18\" valign=\"middle\" align=\"left\" style=\"background-image: url(images/searchhelper-back.gif)\" onMouseover=\"searchover('tds" + search_max + "')\" onMouseout=\"searchaway('tds" + search_max + "')\" onclick=\"submitsearch()\"><font class=\"ngr08\" style=\"margin: 0px 16px 0px 16px; width: 418px; overflow: hidden\"><nobr>" + sstring[i] + "</nobr></font></td></tr>\n";
        }
      }

      height += 18;
      NewHTML += "<tr><td height=\"18\" valign=\"middle\" align=\"left\" background=\"images/searchhelper-bot.png\"><font class=\"nsw08\">&nbsp;</font></td></tr></table>\n";
      if(found == 1)
      {
        document.getElementById("searchhelper").innerHTML = NewHTML;
        document.getElementById("searchhelper").style.height = height+"px";
        //document.getElementById("searchhelper").style.display = "block";
        slidedown("searchhelper", 1);
      }
      else if(document.getElementById("searchhelper").style.display != "none") slideup("searchhelper", 1);
    }
  }
  else if(document.getElementById("searchhelper").style.display != "none") slideup("searchhelper", 1);
}}

function enablemenu()
{
  if(document.all)
  {
    uls = document.getElementsByTagName('UL');
    for(i = 0; i < uls.length; i++)
    {
      if(uls[i].className == 'dropdown')
      {
        var lis = uls[i].getElementsByTagName('li');
        for(j = 0; j < lis.length; j++)
        {
          if(lis[j].lastChild.tagName == 'UL')
          {
              lis[j].onmouseover = function() { this.lastChild.style.display = 'block'; }
              lis[j].onmouseout = function() { this.lastChild.style.display = 'none'; }
}}}}}}

function setZoom(img, dir, width, height, margin, zIndex, delay) {
  setTimeout(function() {
    if(img.dir == dir) {
      img.style.width = width;
      img.style.height = height;
      img.style.margin = margin;
      img.style.zIndex = zIndex;
      img.parentNode.parentNode.style.zIndex = zIndex;
    }
  }, delay);
}

function larger(img, width, height) {
  img.dir = 'rtl';
  now = parseInt(img.style.zIndex);
  for(i = now+1; i <= 10; i++) {
    w = (width*(10+i))/20+'px';
    h = (height*(10+i))/20+'px';
    m = (-i)+'px 0 0 '+(-width*i/40)+'px';
    setZoom(img, 'rtl', w, h, m, i, 20*(i-now));
  }
}

function smaller(img, width, height) {
  img.dir = 'ltr';
  now = parseInt(img.style.zIndex);
  for(i = now-1; i >= 0; i--) {
    w = (width*(10+i))/20+'px';
    h = (height*(10+i))/20+'px';
    m = (-i)+'px 0 0 '+(-width*i/40)+'px';
    setZoom(img, 'ltr', w, h, m, i, 20*(now-i));
  }
}

function MM_preloadImages() 
{ //v3.0
if (jscr) {
  var d=document;
  if(d.images)
  {
    if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
	for(i=0; i<a.length; i++)
      if(a[i].indexOf("#")!=0)
	  {
	    d.MM_p[j]=new Image;
        d.MM_p[j++].src=a[i];
	  }
  }
  setTimeout(function() 
  {
    document.getElementById("preload").style.display = "none";
    document.getElementById("inhalt").style.display = "block";
  }, 500);
}}

nr = -1;
function banner() {
  nr = nr+1;
  if (nr == bannerurl.length) nr = 0;
  document.images.bannerbild.src = bannerbild[nr].src;
  document.getElementById("top_bot").innerHTML = bannertext[nr];
  window.setTimeout("banner()", 7000);}

function openlink() {
  if (document.images)
  top.location.href = bannerurl[nr];}
//-->