OnTheWater

Canoes Plus Discount kayak Store


http://shared_files/jquery.menu-aim.jshttp://shared_files/jquery.megamenu.js 0) { var $subpageNavigation = $(‘#idxSubpageNavigationAlt’); if ($subpageNavigation.length == 0) { $subpageNavigation = $(‘#idxSubpageNavigation’); if ($subpageNavigation.length == 0) $subpageNavigation = $(‘]]>’); var placed = false, $placement = $(‘.PageTitle’); if ($placement.length > 0) { $placement.after($subpageNavigation); if ($(‘.PageImage ~ .PageTitle + #idxSubpageNavigation’).length == 1) $(‘.PageImage’).insertAfter(‘#idxSubpageNavigation’); placed = true; } if (!placed) { var selectors = [‘.PageIntroduction’, ‘.PageDescription’]; for (var n = 0; n 0) { $placement.before($subpageNavigation); if ($(‘.PageImage ~ #idxSubpageNavigation + ‘+selectors[n]).length == 1) $(‘.PageImage’).insertAfter(‘#idxSubpageNavigation’); placed = true; break; } } } if (!placed) { var selectors = [‘#PageContainer1’, ‘#PageContainer11’]; for (var n = 0; n 0) { $placement.append($subpageNavigation); break; } } } } $subpageNavigation .width(‘auto’) .removeClass(‘GC28 GC32’) .append(”); $branch.find(‘> li > ul, i[class=icon-], li.see-all’).remove(); $branch.find(‘> li’) .on(‘mouseover’, function(){tf.navOvr(this, ”, GCNum[‘subhover’]);if(tf.autoText)tf.autoText.localApply(this.parentNode);}) .on(‘mouseout’, function(){tf.navOut(this, ”, GCNum[‘sub’]);if(tf.autoText)tf.autoText.localApply(this.parentNode);}) .addClass(‘idx’+idxNum+’Sub’) .find(‘> a’) .on(‘mouseover’, function(){tf.navOvr(this, ”, ”);}) .on(‘mouseout’, function(){tf.navOut(this, ”, ”);}) .addClass(‘idx’+idxNum+’Sub’) ; var mh = 0; $branch.find(‘> li > a > img’).each(function(){ var hasImg = !!$(this).attr(‘src’); if (!hasImg) $(this).hide(); mh = Math.max(mh, $(this).height() || $(this).css(‘max-height’) || parseFloat($(this).attr(‘height’))); }); var prop = (mh ? ‘height:’+mh+’px;’ : ”); $branch.find(‘> li > a’).each(function(){ if ($(this).find(‘> img’).length > 0) $(this).find(‘> img’).wrap(”); else $(this).prepend(”); $(this).addClass(‘SubPageNavigationBox’).find(‘> span’).addClass(‘SubPageNavigationTitle’).wrap(”); }); $(‘.idx’+idxNum+’Submenu’).empty().append($branch); $(window).on(‘load resize’, function () { var $container = $(‘.idx’+idxNum+’Submenu > ul’), $items = $(‘li’, $container); var outerSpace = $items.outerWidth(true) – $items.width(); var maxAvailableWidth = $container.css(‘width’,’auto’).width(); var maxColumns = 8, itemMaxWidth = 260, w = 0; for (var n = 1; n ul[class=idx]’, $(this)) .sfMegaMenu({ ‘submenuDirection’:’below’, ‘layout’:’base’, ‘showImages’:false, ‘iconOpenRight’:’icon-arrow-right3′, ‘iconOpenDown’:’icon-arrow-down3′, ‘iconNoImage’:’icon-image’, ‘iconPin’:’icon-pushpin’, ‘idxNum’:idxNum, ‘onLoad’:function() { var $idxSlider = $(‘#Index1 > .idx1List’); $(‘> li’, $idxSlider).last().clone().appendTo($idxSlider).children().remove(); function setIdxSlider() { $idxSlider.parent().width(‘100%’).css(‘float’,’none’); $idxSlider .on(‘cellSelect’, function(){ var flkty = $(this).data(‘flickity’); if (flkty) { if (flkty.selectedIndex == $(this).data(‘selectedIndex’)) return; if ($(this).data(‘translateX’) == $(‘.flickity-slider’, this).css(‘transform’)) { if (flkty.selectedIndex > $(this).data(‘selectedIndex’)) flkty.selectedIndex = $(this).data(‘selectedIndex’); else if (flkty.selectedIndex li’, this).last(), shifted = $(‘.flickity-slider’, this).css(‘transform’).match(/matrix((.+))/) || $(‘.flickity-slider’, this).css(‘transform’).match(/matrix3d((.+))/), shiftedpx = 0; if (shifted && shifted.length > 1) shiftedpx = parseFloat((shifted[1].split(‘, ‘)[12]) || (shifted[1].split(‘, ‘)[4])); if (parseFloat($last.css(‘left’)) + $last.outerWidth(true) 619) { var w = 0, wContainer = ($idxSlider.parent().outerWidth(true)||$idxSlider.outerWidth(true))+1; $(‘> li, .flickity-slider > li’, $idxSlider).each(function(){ w += $(this).outerWidth(true); $(this).css(‘height’,”); if($(this).outerHeight()>0)$(this).outerHeight($(this).outerHeight()); }); if (w-1 > wContainer) { setIdxSlider(); $idxSlider.flickity(‘resize’); setTimeout(function(){$idxSlider.flickity(‘reposition’);}, 200); } else if (w li > a > span’).addClass(‘vcenter’); }); });

Read more from this Story