//  ----------------------------------------------------------
//  Created by:     Matt Rehm
//  Creation date:  27.04.2009
//  ----------------------------------------------------------
try {
  hs.graphicsDir      = '/mimg/jslib/highslide/graphics/'; 
  hs.outlineType      = null;
  hs.fadeInOut        = true;
  hs.headingEval      = null;
  hs.wrapperClassName = 'colored-border';
  hs.dimmingOpacity   = 0.20;
  hs.dimmingDuration  = 0;
} catch(e) {}
function evalKeyForSubmit(event) {  
  if (event && (event.which == 13 || event.keyCode == 13))   {
    qsuche();
    return false;
  } else {  
    return true;  
  }
}  
function qsuche() {
  if (document.getElementById('nav_schnellsuche').value == "" || document.getElementById('nav_schnellsuche').value == "Schnellsuche") {
     alert('Bitte geben Sie einen Suchbegriff ein!');
     document.getElementById('nav_schnellsuche').focus();
     return;
  }
  var url   = '/suche.ahtml?act=suchen&stichwort=';
      url  += escape(document.getElementById('nav_schnellsuche').value);
  self.location.href = url;
}
function oo_wk(add) {
  var zeit = new Date();
  var url  = "/pcgi/wk.cgi";
  if ( add > "" && add != null ) {
    url += '?' + add + "&T=" + zeit.getTime();
  } else {
    url += '?T=' + zeit.getTime();
  }
  self.location.href = url;
}
function slide(pos,typ) {
// /dzo/static_kats/302/88_302.gif
  var bild = '/dzo/static_kats/30' + typ + '/88_30' + typ + '.gif';
  for (i=1;i<=pos;i++) {
    var position = 'vote' + i;
    document.getElementById(position).src = bild;
  }
}
function oo_window(seite) {
  var fenster = window.open(seite, "PDF", "width=730,height=690,left=100,top=10,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes");
  try { fenster.focus(); } catch(e) {}
}
function OO_show_more(obj, hoehe) {
  var e = document.getElementById(obj);
  if (!e.id) return false;
  var target_id = e.id.replace(/_klappe/g, '');
  var el = document.getElementById(target_id);
  if (!el.id) return false;
  if (hoehe > 0) { 
    if (el.style.overflow == 'auto') {
      el.style.height = hoehe + 'px';
      el.style.overflow = 'hidden';
      e.innerHTML = 'mehr &gt;&gt;';
    } else {
      el.style.height = 'auto';
      el.style.overflow = 'auto';
      e.innerHTML = '&lt;&lt; schlie&szlig;en';
    }
    return true;
  }
  if (el.style.display == 'block') { 
    e.innerHTML = 'Mehr Infos &gt;&gt;';
    el.style.display = 'none';
  } else {
    el.style.height = 'auto';
    e.innerHTML = '&lt;&lt; Schlie&szlig;en';
    el.style.display = 'block';
  }
  return true;
};
function show_cart_list(typ) {
  if ( $('#cartinfolong').length < 1 ) return;
  if ( typ == 'open' ) {
    var zeit = new Date();
    $("#cartinfoshort").load('/cgi-bin/cartinfo.cgi?TX' + zeit.getTime());
    $("#cartinfolong").load('/cgi-bin/cartinfo.cgi?type=long&TX=' + zeit.getTime());
    $("#cartbtn_dn").css('display', 'none');
    $("#cartbtn_up").css('display', 'block');
    $("#cartinfolong").css('display', 'block');
  } else {
    $("#cartinfoshort").css('display', 'block');
    $("#cartbtn_dn").css('display', 'block');
    $("#cartbtn_up").css('display', 'none');
    $("#cartinfolong").css('display', 'none');
  }
  //07.03.2011
}
  function oo_textilsuche(inintial) {	
    var url  = '/pcgi/a.cgi?layout=738&act=suchen';
        url += '&titel=' + escape(inintial) + '&NKLN=14_B';
     self.location.href = url;
  }
  function oo_klappen(nummer) {	
    if (nummer < 1) return;
    var divid = 'textil_'+nummer;
    if (document.getElementById(divid)) {
      if (document.getElementById(divid).style.display != 'block') {
        document.getElementById(divid).style.display = 'block';
        window.location.hash='#TL_'+nummer;
      } else {
        document.getElementById(divid).style.display = 'none';
      }
    }
  }
//  ----------------------------------------------------------

//generated by OrderOnline
