<!-- 
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 = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
function handaway(menu) {
if (jscr) {
menu.style.cursor = "default";}}

function menuover(menu, textcolor, backcolor) {
if (jscr) {
menu.style.Color = textcolor;
menu.style.backgroundColor = backcolor;
menu.style.cursor = "url(images/ice.cur)";}}
function menuaway(menu, textcolor, backcolor) {
if (jscr) {
menu.style.Color = textcolor;
menu.style.backgroundColor = backcolor;
menu.style.cursor = "default";}}

function backover(menu, image) {
if (jscr) {
menu.style.backgroundImage = "url(images/"+image+")";
menu.style.cursor = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
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 = "url(images/ice.cur)";}}
function zahlaway(menu, color) {
if (jscr) {
menu.style.borderColor = color;
menu.style.cursor = "default";}}

function thumb_over(bild, color) {
if (jscr) {
bild.style.borderColor = color;}}
function thumb_away(bild, color) {
if (jscr) {
bild.style.borderColor = color;}}

function artikelover(id, color) {
if (jscr) {
document.getElementById("td"+id).style.borderStyle = "solid";
document.getElementById("td"+id).style.borderColor = color;
document.getElementById("td"+id).style.cursor = "url(images/ice.cur)";
document.getElementById("artikel"+id).style.display = "block";
//slidedown("artikel"+id, 0);
}}
function artikelaway(id, color) {
if (jscr) {
document.getElementById("td"+id).style.borderStyle = "dashed";
document.getElementById("td"+id).style.borderColor = color;
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.png)";
menu.style.cursor = "url(images/ice.cur)";}}
function warenaway(menu) {
if (jscr) {
menu.style.backgroundImage = "url(images/warenkorb.png)";
menu.style.cursor = "default";}}

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));
  }
}
//-->
