function MM_preloadImages(){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];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)
x.oSrc=x.src;x.src=a[i+2];}}
function popupWindowHelpSearch(url){window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=600,height=300,screenX=150,screenY=150,top=150,left=150')}
function popupProductsImageWindow(url){window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=200,height=200,screenX=150,screenY=150,top=150,left=150')}
function popupCuponWindow(url){window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=330,screenX=150,screenY=150,top=150,left=150')}
function rowOverGBEffect(object){if(object.className=='moduleRowGB')object.className='moduleRowOverGB';if(object.className=='categorieRowGB')object.className='categorieRowOverGB';}
function rowOutGBEffect(object){if(object.className=='moduleRowOverGB')object.className='moduleRowGB';if(object.className=='categorieRowOverGB')object.className='categorieRowGB';}
function replaaceImage(imagePath,imageRes){document.images.productImage.src=imagePath;bigImageRes=imageRes;}
function replaceIcon(imgobj){var tpl=""+document.getElementById("bdir").value+"img/";if(document.images.view1){document.images.view1.src=tpl+'1.gif';}
if(document.images.view2){document.images.view2.src=tpl+'2.gif';}
if(document.images.view3){document.images.view3.src=tpl+'3.gif';}
if(document.images.view4){document.images.view4.src=tpl+'4.gif';}
if(document.images.view5){document.images.view5.src=tpl+'5.gif';}
eval("document.images. "+imgobj+".src = '"+tpl+imgobj+"-on.gif'");}
function expand_form(id,bildname,tauschbild){if(document.getElementById(id).style.display='none'){document.getElementById(id).style.display='block';}
document.images[bildname].src=tauschbild;}
function hide_form(id,bildname,tauschbild){if(document.getElementById(id).style.display='block'){document.getElementById(id).style.display='none';}
document.images[bildname].src=tauschbild;}
function rowOverEffect(object){if(object.className=='moduleRow')object.className='moduleRowOver';}
function rowOutEffect(object){if(object.className=='moduleRowOver')object.className='moduleRow';}
(function($){$.extend({smoothAnchors:function(speed,easing,redirect){speed=speed||"fast";easing=easing||null;redirect=(redirect===true||redirect==null)?true:false;$("a").each(function(i){var url=$(this).attr("href");if(url){if(url.indexOf("#")!=-1&&url.indexOf("#")==0){var aParts=url.split("#",2);var anchor=$("a[name='"+aParts[1]+"']");if(anchor){$(this).click(function(){if($(document).height()-anchor.offset().top>=$(window).height()||anchor.offset().top>$(window).height()||$(document).width()-anchor.offset().left>=$(window).width()||anchor.offset().left>$(window).width()){$('html, body').animate({scrollTop:anchor.offset().top,scrollLeft:anchor.offset().left},speed,easing,function(){if(redirect){window.location=url}});}
return false;});}}}});}});})(jQuery);$(document).ready(function(){$.smoothAnchors("slow","swing",false);});
