We use cookies and similar technologies to give you a personalised shopping experience, personalised advertising and to analyse our web traffic. Click ‘That’s ok’ if you’d like to allow all cookies. For more information, please see our Cookie Notice.
var mlast_scrool = 0;
var mscrooling = 57;
var mbottom = false;
$(function(){
$(document).scroll(mmenuscrool);
$( window ).resize(mmenuscrool);
mmenuscrool();
});
function mmenuscrool() {
if(document.getScroll()>=150 && $(window).width()>764){
$('.block-categories').css('position', 'fixed');
$('.block-categories').width($('.block-categories').parent().width());
if($(window).height()<$('.block-categories').height()){
if(mlast_scrooldocument.getScroll()) mscrooling += 20;
if(mscrooling>57) mscrooling = 57;
if(mscrooling<57-$('.block-categories').height()-100+$(window).height()) mscrooling = 57-$('.block-categories').height()-100+$(window).height();
}
if($(document).height()-document.getScroll()-$(window).height()<400){
mbottom = true;
mscrooling = 0-$('.block-categories').height()-100+($(document).height()-document.getScroll())-550;
}
else if(mbottom){
mbottom = false;
mscrooling = 57;
}
$('.block-categories').css('top', mscrooling+'px');
}
else{
$('.block-categories').css('position', 'static');
}
mlast_scrool = document.getScroll();
}
document.getScroll = function() {
if (window.pageYOffset != undefined) {
return pageYOffset;
} else {
var sy, d = document,
r = d.documentElement,
b = d.body;
sy = r.scrollTop || b.scrollTop || 0;
return sy;
}
}
// requires jquery
$(document).ready(function() {
(function() {
var showChar = 400;
var ellipsestext = "...";
$(".truncate").each(function() {
var content = $(this).html();
if (content.length > showChar) {
var c = content.substr(0, showChar);
var h = content;
var html =
'