﻿// superfish
(function($) { $.fn.superfish = function(op) { var sf = $.fn.superfish, c = sf.c, $arrow = $(['<span class="', c.arrowClass, '"> &#187;</span>'].join('')), over = function() { var $$ = $(this), menu = getMenu($$); clearTimeout(menu.sfTimer); $$.showSuperfishUl().siblings().hideSuperfishUl() }, out = function() { var $$ = $(this), menu = getMenu($$), o = sf.op; clearTimeout(menu.sfTimer); menu.sfTimer = setTimeout(function() { o.retainPath = ($.inArray($$[0], o.$path) > -1); $$.hideSuperfishUl(); if (o.$path.length && $$.parents(['li.', o.hoverClass].join('')).length < 1) { over.call(o.$path) } }, o.delay) }, getMenu = function($menu) { var menu = $menu.parents(['ul.', c.menuClass, ':first'].join(''))[0]; sf.op = sf.o[menu.serial]; return menu }, addArrow = function($a) { $a.addClass(c.anchorClass).append($arrow.clone()) }; return this.each(function() { var s = this.serial = sf.o.length; var o = $.extend({}, sf.defaults, op); o.$path = $('li.' + o.pathClass, this).slice(0, o.pathLevels).each(function() { $(this).addClass([o.hoverClass, c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass) }); sf.o[s] = sf.op = o; $('li:has(ul)', this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over, out).each(function() { if (o.autoArrows) addArrow($('>a:first-child', this)) }).not('.' + c.bcClass).hideSuperfishUl(); var $a = $('a', this); $a.each(function(i) { var $li = $a.eq(i).parents('li'); $a.eq(i).focus(function() { over.call($li) }).blur(function() { out.call($li) }) }); o.onInit.call(this) }).each(function() { var menuClasses = [c.menuClass]; if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass); $(this).addClass(menuClasses.join(' ')) }) }; var sf = $.fn.superfish; sf.o = []; sf.op = {}; sf.IE7fix = function() { var o = sf.op; if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity != undefined) this.toggleClass(sf.c.shadowClass + '-off') }; sf.c = { bcClass: 'sf-breadcrumb', menuClass: 'sf-js-enabled', anchorClass: 'sf-with-ul', arrowClass: 'sf-sub-indicator', shadowClass: 'sf-shadow' }; sf.defaults = { hoverClass: 'sfHover', pathClass: 'overideThisToUse', pathLevels: 1, delay: 800, animation: { opacity: 'show' }, speed: 'normal', autoArrows: true, dropShadows: true, disableHI: false, onInit: function() { }, onBeforeShow: function() { }, onShow: function() { }, onHide: function() { } }; $.fn.extend({ hideSuperfishUl: function() { var o = sf.op, not = (o.retainPath === true) ? o.$path : ''; o.retainPath = false; var $ul = $(['li.', o.hoverClass].join(''), this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility', 'hidden'); o.onHide.call($ul); return this }, showSuperfishUl: function() { var o = sf.op, sh = sf.c.shadowClass + '-off', $ul = this.addClass(o.hoverClass).find('>ul:hidden').css('visibility', 'visible'); sf.IE7fix.call($ul); o.onBeforeShow.call($ul); $ul.animate(o.animation, o.speed, function() { sf.IE7fix.call($ul); o.onShow.call($ul) }); return this } }) })(jQuery);
// bgiframe for superfish
(function($) { $.fn.bgIframe = $.fn.bgiframe = function(s) { if ($.browser.msie && /6.0/.test(navigator.userAgent)) { s = $.extend({ top: 'auto', left: 'auto', width: 'auto', height: 'auto', opacity: true, src: 'javascript:false;' }, s || {}); var prop = function(n) { return n && n.constructor == Number ? n + 'px' : n }, html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + s.src + '"' + 'style="display:block;position:absolute;z-index:-1;' + (s.opacity !== false ? 'filter:Alpha(Opacity=\'0\');' : '') + 'top:' + (s.top == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')' : prop(s.top)) + ';' + 'left:' + (s.left == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')' : prop(s.left)) + ';' + 'width:' + (s.width == 'auto' ? 'expression(this.parentNode.offsetWidth+\'px\')' : prop(s.width)) + ';' + 'height:' + (s.height == 'auto' ? 'expression(this.parentNode.offsetHeight+\'px\')' : prop(s.height)) + ';' + '"/>'; return this.each(function() { if ($('> iframe.bgiframe', this).length == 0) this.insertBefore(document.createElement(html), this.firstChild) }) } return this } })(jQuery);
// supersubs for superfish
; (function($) { $.fn.supersubs = function(options) { var opts = $.extend({}, $.fn.supersubs.defaults, options); return this.each(function() { var $$ = $(this); var o = $.meta ? $.extend({}, opts, $$.data()) : opts; var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({ 'padding': 0, 'position': 'absolute', 'top': '-999em', 'width': 'auto' }).appendTo($$).width(); $('#menu-fontsize').remove(); $ULs = $$.find('ul'); $ULs.each(function(i) { var $ul = $ULs.eq(i); var $LIs = $ul.children(); var $As = $LIs.children('a'); var liFloat = $LIs.css('white-space', 'nowrap').css('float'); var emWidth = $ul.add($LIs).add($As).css({ 'float': 'none', 'width': 'auto' }).end().end()[0].clientWidth / fontsize; emWidth += o.extraWidth; if (emWidth > o.maxWidth) { emWidth = o.maxWidth } else if (emWidth < o.minWidth) { emWidth = o.minWidth } emWidth += 'em'; $ul.css('width', emWidth); $LIs.css({ 'float': liFloat, 'width': '100%', 'white-space': 'normal' }).each(function() { var $childUl = $('>ul', this); var offsetDirection = $childUl.css('left') !== undefined ? 'left' : 'right'; $childUl.css(offsetDirection, emWidth) }) }) }) }; $.fn.supersubs.defaults = { minWidth: 9, maxWidth: 25, extraWidth: 0} })(jQuery);
// galleria code
eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(5($){4 q;q=$.2l.7=5(k){6(!q.1U()){R N}$.1A(q.1e);4 l={Z:\'.22\',P:E,13:E,1i:5(a,b,c){},1C:5(a){}};4 m=$.11(l,k);1d(4 i 28 m){6(i){$.7[i]=m[i]}}4 n=($(m.Z).X(m.Z))?$(m.Z):3(D.16(\'1m\')).2x(r);4 o=$(D.16(\'1m\')).x(\'1L\');4 p=$(D.16(\'1g\')).x(\'1f\');n.x(\'22\').12(o).12(p);R r.1G(5(){$(r).x(\'7\');$(r).1F(\'K\').1G(5(i){4 b=$(r);4 c=$.2j?$.11({},m,b.2i()):m;c.13=$(r).X(\':2h-T\')?N:c.13;4 d=$(r).Q(\'a\').X(\'a\')?$(r).Q(\'a\'):N;4 e=$(r).1F(\'G\').C(\'O\',\'V\');4 f=d?d.9(\'1o\'):e.9(\'1c\');4 g=d?d.9(\'19\'):e.9(\'19\');4 j=20 1Z();6(c.P&&(M.8.t&&M.8.t.Y(/\\#/,\'\')==f)){b.I(\'.B\').U(\'B\');b.x(\'B\')}$(j).2s(5(){$(r).9(\'1O\',e.9(\'1O\'));4 a=d?d.Q(\'G\').x(\'1N 1M\').C(\'O\',\'V\'):e.2m(E).x(\'1N\').C(\'O\',\'V\');6(d){d.2k(a)}6(!a.1K(\'1M\')){4 w=1h.1J(e.v()/e.A()*b.A());4 h=1h.1J(e.A()/e.v()*b.v());6(w<h){a.C({A:\'1I\',v:b.v(),1H:-(h-b.A())/2})}s{a.C({v:\'1I\',A:b.A(),1E:-(w-b.v())/2})}}s{M.1D(5(){a.C({1E:-(a.v()-b.v())/2,1H:-(a.A()-b.A())/2})},1)}a.9(\'J\',f);a.9(\'19\',g);a.1B(5(){$.7.S(f)});a.L(5(){$(r).x(\'L\')},5(){$(r).U(\'L\')});b.L(5(){b.x(\'L\')},5(){b.U(\'L\')});b.1z(a);a.C(\'O\',\'2g\');c.1C(3(a));6(b.1K(\'B\')){$.7.S(f)}e.1y()}).1x(5(){b.2f(\'<1g 2e="1x" 1w="2d:2c">2b 2a 29: \'+f+\'</1g>\')}).9(\'1c\',f)})})};q.1v=5(a){R $(a).X(\':1u-T\')?$(a).I(\':1t-T\'):$(a).1k()};q.1s=5(a){R $(a).X(\':1t-T\')?$(a).I(\':1u-T\'):$(a).1r()};q.1U=5(){$(\'1R\').12($(D.16(\'1m\')).9(\'1q\',\'1l\').C({v:\'1p\',A:\'1p\',O:\'V\'}));4 a=($(\'#1l\').v()!=1)?N:E;$(\'#1l\').1y();R a};q.1e=5(a){4 b=$(\'.1L\');4 c=$(\'.7 G[J="\'+a+\'"]\');6(a){6($.7.P){M.8=M.8.1o.Y(/\\#.*/,\'\')+\'#\'+a}c.14(\'K\').I(\'.B\').U(\'B\');c.14(\'K\').x(\'B\');4 d=$(20 1Z()).9(\'1c\',a).x(\'27\');b.1X().12(d);b.I(\'.1f\').26(c.9(\'19\'));$.7.1i(d,b.I(\'.1f\'),c);6($.7.13){d.C(\'25\',\'24\').1B(5(){$.7.1k()})}}s{b.I().23().1X();$(\'.7 K.B\').U(\'B\')}$.7.1a=a};$.11({7:{1a:\'\',1i:5(){},S:5(a){6($.7.P){$.21(a)}s{q.1e(a)}},1k:5(){4 a=$(q.1v($(\'.7 G[J="\'+$.7.1a+\'"]\').14(\'K\'))).Q(\'G\').9(\'J\');$.7.S(a)},1r:5(){4 a=$(q.1s($(\'.7 G[J="\'+$.7.1a+\'"]\').14(\'K\'))).Q(\'G\').9(\'J\');$.7.S(a)}}})})(3);3.11({z:18,u:18,1A:5(a){3.u=a;4 b=8.t;3.z=b;6(3.H.1b){6(3.z===\'\'){3.z=\'#\'}$("1R").1z(\'<1Y 1q="17" 1w="O: V;"></1Y>\');4 c=$("#17")[0];4 d=c.1n.D;d.1W();d.1V();d.8.t=b}s 6($.H.10){3.y=[];3.y.F=P.F;3.15=[];3.W=E}3.u(b.Y(/^#/,\'\'));2u(3.1T,2t)},1Q:5(a){3.y.1P(a);3.15.F=0;r.W=E},1T:5(){6(3.H.1b){4 a=$("#17")[0];4 b=a.2r||a.1n.D;4 c=b.8.t;6(c!=3.z){8.t=c;3.z=c;3.u(c.Y(/^#/,\'\'))}}s 6($.H.10){6(!3.1j){4 d=P.F-3.y.F;6(d){3.W=N;4 i;6(d<0){1d(i=0;i<1h.2q(d);i++){3.15.2p(3.y.2o())}}s{1d(i=0;i<d;i++){3.y.1P(3.15.2n())}}4 e=3.y[3.y.F-1];6(e!==18){3.z=8.t;3.u(e)}}s 6(3.y[3.y.F-1]===18&&!3.W){6(D.1S.2v(\'#\')>=0){3.u(D.1S.2w(\'#\')[1])}s{c=8.t;3.u(\'\')}3.W=E}}}s{c=8.t;6(c!=3.z){3.z=c;3.u(c.Y(/^#/,\'\'))}}},21:5(a){4 b;6(3.H.10){b=a}s{b=\'#\'+a;8.t=b}3.z=b;6(3.H.1b){4 c=$("#17")[0];4 d=c.1n.D;d.1W();d.1V();d.8.t=b;3.u(a)}s 6(3.H.10){3.1j=E;r.1Q(a);4 e=5(){3.1j=N};M.1D(e,2y);3.u(a);8.t=b}s{3.u(a)}}});', 62, 159, '|||jQuery|var|function|if|galleria|location|attr||||||||||||||||||this|else|hash|historyCallback|width||addClass|historyBackStack|historyCurrentHash|height|active|css|document|true|length|img|browser|siblings|rel|li|hover|window|false|display|history|find|return|activate|child|removeClass|none|isFirst|is|replace|insert|safari|extend|append|clickNext|parents|historyForwardStack|createElement|jQuery_history|undefined|title|current|msie|src|for|onPageLoad|caption|span|Math|onImage|dontCheck|next|css_test|div|contentWindow|href|1px|id|prev|previousSelector|first|last|nextSelector|style|error|remove|prepend|historyInit|click|onThumb|setTimeout|marginLeft|children|each|marginTop|auto|ceil|hasClass|galleria_wrapper|noscale|thumb|alt|push|historyAddHistory|body|URL|historyCheck|hasCSS|close|open|empty|iframe|Image|new|historyLoad|galleria_container|andSelf|pointer|cursor|text|replaced|in|image|loading|Error|red|color|class|html|block|only|data|meta|replaceWith|fn|clone|shift|pop|unshift|abs|contentDocument|load|100|setInterval|indexOf|split|insertBefore|200'.split('|'), 0, {}))
function highlightCurrentLink() { var currentUrl = location.href; currentUrl = currentUrl.replace(location.search, ''); var containsAspx = currentUrl.indexOf(".aspx") != -1; var containsCustom = currentUrl.substring(0, 5) == "Custom"; if (containsCustom) { var customHeaderElement = document.getElementById("nav_search_custom_header"); customHeaderElement.className = "currentpage" } var isProduct = currentUrl.indexOf("-C") != -1 || currentUrl.indexOf("-P") != -1; if (isProduct) { var productHeaderElement = document.getElementById("nav_products_header"); productHeaderElement.className = "currentpage" } var mainNavDiv = typeof div; mainNavDiv = document.getElementById("nav"); var allHrefsInMainDiv = mainNavDiv.getElementsByTagName("a"); for (var i = allHrefsInMainDiv.length - 1; i >= 0; i--) { var currentLink = typeof DispHTMLAnchorElement; currentLink = allHrefsInMainDiv[i]; if (currentLink.href == currentUrl || (currentUrl.indexOf("Default.aspx", 0) == -1 && currentUrl.indexOf("default.aspx", 0) == -1 && !containsAspx)) { currentLink.className += " currentpage"; break } } }