/** * @author Sergey Nikitin (mrnix@ya.ru) * @link www.mrnix.ru * @date 12.02.2011 * @requires jQuery * * Description: * pxgradient is a jQuery plugin that paints text in gradient colors by pixel * * Usage: * $(selector).pxgradient(options); * * options is an object contents configuraton paramenters: * {Number} step - Step Color. The smaller the number, the greater the load. Default: 10 * {Array} colors - array of hex colors. Default: ["#ffcc00", "#cc0000", "#000000"]; * {String} dir - gradient direction. "x" - horizontal, "y" - vertical */ (function($){ jQuery.fn.pxgradient=function(options){ var options=jQuery.extend({ step:10, colors:["#ffcc00","#cc0000","#000000"], dir:"h" },options); options.RGBcolors=[]; for(var i=0;i'+pxg_source+''); pxg.find(".pxg-source").css({ "visibility":"hidden" }); pxg.append(''); pxg_set=jQuery(".pxg-set",pxg); pxg_text = pxg.find(".pxg-source"); pxg_w=pxg_text.width(); pxg_h=pxg_text.height(); pxg_text.hide(); pxg.addClass("sn-pxg"); if(options.dir=="x") { blocksize=pxg_w; } else if(options.dir=="y") { blocksize=pxg_h; } fullsteps=Math.floor(blocksize/options.step); allsteps=fullsteps; laststep=(blocksize-(fullsteps*options.step)); if(laststep>0){ allsteps++; } pxg_set.css({ width:pxg_w, height:pxg_h }); offleft=0; if(options.dir == "x"){ for(var i=0;i'+pxg_source+''); offleft=offleft+options.step; } } else if(options.dir=="y"){ for(var i=0;i'+pxg_source+''); offleft=offleft+options.step; } } } }); function hex2Rgb(hex){ if('#'==hex.substr(0,1)){ hex=hex.substr(1); } if (3==hex.length){ hex=hex.substr(0,1)+hex.substr(0,1)+hex.substr(1,1)+hex.substr(1,1)+hex.substr(2,1)+hex.substr(2,1); } return [parseInt(hex.substr(0,2),16),parseInt(hex.substr(2,2),16),parseInt(hex.substr(4,2),16)]; } function rgb2Hex(rgb){ var s = '0123456789abcdef'; return '#'+s.charAt(parseInt(rgb[0]/16))+s.charAt(rgb[0]%16)+s.charAt(parseInt(rgb[1]/16))+s.charAt(rgb[1]%16)+s.charAt(parseInt(rgb[2]/16))+s.charAt(rgb[2]%16); } function getColor(off,blocksize){ var fLeft=(off>0)?(off/blocksize):0; for (var i=0;i0)?((i-1)/(options.colors.length-1)):0; if(fLeft==fStopPosition){ return options.colors[i]; } else if(fLeft _liSum) { _lastSection = _sectionWidth - _liSum; } } } if (_autoSlide) { _timerSlide = setTimeout(function(){ autoSlide(_autoSlide); }, _autoSlide); jQuery(_options.scrollElParent,_this).hover(function(){ clearTimeout(_timerSlide); }, function(){ _timerSlide = setTimeout(function(){ autoSlide(_autoSlide) }, _autoSlide); }); } // click button 'Next' jQuery(_options.btNext,_this).bind('click',function(){ jQuery(_options.btPrev,_this).removeClass('prev-'+_options.disableClass); if (!_options.circleSlide) { if (_margin + _step > _liSum - _gWidth - _options.innerMargin) { if (_margin != _liSum - _gWidth - _options.innerMargin) { _margin = _liSum - _gWidth + _options.innerMargin; jQuery(_options.btNext,_this).addClass('next-'+_options.disableClass); _f2 = 0; } } else { _margin = _margin + _step; if (_margin == _liSum - _gWidth - _options.innerMargin) { jQuery(_options.btNext,_this).addClass('next-'+_options.disableClass);_f2 = 0; } } } else { if (_margin + _step > _liSum - _gWidth + _options.innerMargin) { if (_margin != _liSum - _gWidth + _options.innerMargin) { _margin = _liSum - _gWidth + _options.innerMargin; } else { _f2 = 1; _margin = -_options.innerMargin; } } else { _margin = _margin + _step; _f2 = 0; } } jQuery(_options.scrollElParent,_this).animate({marginLeft: -_margin+"px"}, {queue:false,duration: _options.duration }); if (_timerSlide) { clearTimeout(_timerSlide); _timerSlide = setTimeout(function(){ autoSlide(_options.autoSlide) }, _options.autoSlide); } if (_options.slideNum && !_options.step) jQuery.fn.galleryScroll.numListActive(_margin,jQuery(_options.slideNum, _this),_gWidth,_lastSection); if (jQuery.isFunction(_options.funcOnclick)) { _options.funcOnclick.apply(_this); } return false; }); // click button 'Prev' var _f2 = 1; jQuery(_options.btPrev, _this).bind('click',function(){ jQuery(_options.btNext,_this).removeClass('next-'+_options.disableClass); if (_margin - _step >= -_step - _options.innerMargin && _margin - _step <= -_options.innerMargin) { if (_f2 != 1) { _margin = -_options.innerMargin; _f2 = 1; } else { if (_options.circleSlide) { _margin = _liSum - _gWidth + _options.innerMargin; f=1;_f2=0; } else { _margin = -_options.innerMargin } } } else if (_margin - _step < -_step + _options.innerMargin) { _margin = _margin - _step; f=0; } else {_margin = _margin - _step;f=0;}; if (!_options.circleSlide && _margin == _options.innerMargin) { jQuery(this).addClass('prev-'+_options.disableClass); _f2=0; } if (!_options.circleSlide && _margin == -_options.innerMargin) jQuery(this).addClass('prev-'+_options.disableClass); jQuery(_options.scrollElParent,_this).animate({marginLeft: -_margin + "px"}, {queue:false, duration: _options.duration}); if (_options.slideNum && !_options.step) jQuery.fn.galleryScroll.numListActive(_margin,jQuery(_options.slideNum, _this),_gWidth,_lastSection); if (_timerSlide) { clearTimeout(_timerSlide); _timerSlide = setTimeout(function(){ autoSlide(_options.autoSlide) }, _options.autoSlide); } if (jQuery.isFunction(_options.funcOnclick)) { _options.funcOnclick.apply(_this); } return false; }); if (_liSum <= _gWidth) { jQuery(_options.btPrev,_this).addClass('prev-'+_options.disableClass).unbind('click'); jQuery(_options.btNext,_this).addClass('next-'+_options.disableClass).unbind('click'); } // auto slide function autoSlide(autoSlideDuration){ //web.archive.orghttp://if/ (_options.circleSlide) { jQuery(_options.btNext,_this).trigger('click'); //} }; // Number list jQuery.fn.galleryScroll.numListCreate = function(_elNumList, _liSumWidth, _width, _section){ var _numListElC = ''; var _num = 1; var _difference = _liSumWidth + _section; while(_difference > 0) { _numListElC += '
  • '+_num+'
  • '; _num++; _difference = _difference - _width; } jQuery(_elNumList).html('
      '+_numListElC+'
    '); }; jQuery.fn.galleryScroll.numListActive = function(_marginEl, _slideNum, _width, _section){ if (_slideNum) { jQuery('a',_slideNum).removeClass('active'); var _activeRange = _width - _section-1; var _n = 0; if (_marginEl != 0) { while (_marginEl > _activeRange) { _activeRange = (_n * _width) -_section-1 + _options.innerMargin; _n++; } } var _a = (_activeRange+_section+1 + _options.innerMargin)/_width - 1; jQuery('a',_slideNum).eq(_a).addClass('active'); } }; if (_options.slideNum && !_options.step) { jQuery.fn.galleryScroll.numListCreate(jQuery(_options.slideNum, _this), _liSum, _gWidth,_lastSection); jQuery.fn.galleryScroll.numListActive(_margin, jQuery(_options.slideNum, _this),_gWidth,_lastSection); numClick(); }; function numClick() { jQuery(_options.slideNum, _this).find('a').click(function(){ jQuery(_options.btPrev,_this).removeClass('prev-'+_options.disableClass); jQuery(_options.btNext,_this).removeClass('next-'+_options.disableClass); var _indexNum = jQuery(_options.slideNum, _this).find('a').index(jQuery(this)); _margin = (_step*_indexNum) - _options.innerMargin; f=0; _f2=0; if (_indexNum == 0) _f2=1; if (_margin + _step > _liSum) { _margin = _margin - (_margin - _liSum) - _step + _options.innerMargin; if (!_options.circleSlide) jQuery(_options.btNext, _this).addClass('next-'+_options.disableClass); } jQuery(_options.scrollElParent,_this).animate({marginLeft: -_margin + "px"}, {queue:false, duration: _options.duration}); if (!_options.circleSlide && _margin==0) jQuery(_options.btPrev,_this).addClass('prev-'+_options.disableClass); jQuery.fn.galleryScroll.numListActive(_margin, jQuery(_options.slideNum, _this),_gWidth,_lastSection); if (_timerSlide) { clearTimeout(_timerSlide); _timerSlide = setTimeout(function(){ autoSlide(_options.autoSlide) }, _options.autoSlide); } return false; }); }; jQuery(window).resize(function(){ _gWidth = jQuery(_options.holderList,_this).width(); _liWidth = jQuery(_options.scrollEl,_this).outerWidth(true); _liSum = jQuery(_options.scrollEl,_this).length * _liWidth; if (!_options.step) _step = _gWidth; else _step = _options.step*_liWidth; if (_options.slideNum && !_options.step) { var _lastSection = 0; var _sectionWidth = 0; while(_sectionWidth < _liSum) { _sectionWidth = _sectionWidth + _gWidth; if(_sectionWidth > _liSum) { _lastSection = _sectionWidth - _liSum; } }; jQuery.fn.galleryScroll.numListCreate(jQuery(_options.slideNum, _this), _liSum, _gWidth,_lastSection); jQuery.fn.galleryScroll.numListActive(_margin, jQuery(_options.slideNum, _this),_gWidth,_lastSection); numClick(); }; //web.archive.orghttp://if/ (_margin == _options.innerMargin) jQuery(this).addClass(_options.disableClass); if (_liSum - _gWidth < _margin - _options.innerMargin) { if (!_options.circleSlide) jQuery(_options.btNext, _this).addClass('next-'+_options.disableClass); jQuery(_options.scrollElParent,_this).animate({marginLeft: -(_liSum - _gWidth + _options.innerMargin) + "px"}, {queue:false, duration: _options.duration}); }; }); }); } // main promo // fade function initMainPromoFade() { // options var _mprSpeed = 600; // 400 msec, slide animation speed var _mprAutoslide = 7000; // 7 sec autoslide $('div.promo-gallery').each(function () { if (!$(this).hasClass('promo-gallery-impl')) { var _holder = $(this); var _slicer = $('div.slicer', _holder); var _node = $('div.node', _slicer); var _item = $('div.item', _node); $('.promo-gallery-pager', _holder).css({ zIndex: 5 }); var _thumbs = $('.promo-gallery-pager a', _holder); if (_item.length>1 && _thumbs.length==_item.length) { var _mprAnimated = false; var _mprW = parseInt(_slicer.width()); var _mprActive = 0; var _mprPrev = _mprActive; _thumbs.removeClass('current'); _thumbs.eq(_mprActive).addClass('current'); function resetMainPromo() { _mprW = parseInt(_slicer.width()); _item.each(function () { $(this).css({ width: _mprW }); }); } resetMainPromo(); $(window).resize(function () { resetMainPromo(); }); var itemHeight = []; _item.each(function(i) { $(this).css({ position: 'absolute', left: 0, top: 0, zIndex: 2 }); itemHeight[i] = parseInt(_item.outerHeight()); if(i!=_mprActive) { $(this).css({ left: -7777, zIndex: 1, opacity: 0 }); } }); _slicer.css({ height: itemHeight[_mprActive] }); // animation function mprAnimate(){ _thumbs.removeClass('current'); _thumbs.eq(_mprActive).addClass('current'); _item.eq(_mprPrev) .css({ zIndex: 2 }); _item.eq(_mprPrev) .animate({ opacity: 0 }, { duration: _mprSpeed, complete: function() { _item.eq(_mprPrev).css({ left: -7777, zIndex: 1 }) } }); _item.eq(_mprActive) .css({ zIndex: 1, left: 0, top: 0 }); _item.eq(_mprActive) .animate({ opacity: 1 }, { duration: _mprSpeed, complete: function() { if($.browser.msie) { _item.eq(_mprActive).css({ opacity: 'auto' }); } } }); _slicer.animate({ height: itemHeight[_mprActive] }, { duration: _mprSpeed, complete: function () { _mprAnimated = false; } }); } // click thumb _thumbs.click(function () { if (!_mprAnimated && !$(this).hasClass('current')) { _mprAnimated = true; _mprPrev = _mprActive; _mprActive = _thumbs.index(this); mprAnimate(); } return false; }); if($.browser.msie) { $('.page-lb').css('position', 'static'); $('.page-lb').css('position', 'absolute'); } if(_mprAutoslide) { var _mprTimer = false; function mprAutoslide() { if (!_mprAnimated) { _mprAnimated = true; _mprPrev = _mprActive; if(_mprActive<_thumbs.length-1) { _mprActive++; } else { _mprActive = 0; } mprAnimate(); _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); } } _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); _holder.hover(function() { if(_mprTimer) { clearTimeout(_mprTimer); _mprTimer = null; } }, function() { _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); }); } } } _holder.addClass('promo-gallery-impl'); }); } // slide function initMainPromo() { // options var _mprSpeed = 400; // 400 msec, slide animation speed var _mprAutoslide = 7000; // 7 sec autoslide $('div.promo-gallery').each(function () { if (!$(this).hasClass('promo-gallery-impl')) { var _holder = $(this); var _slicer = $('div.slicer', _holder); var _node = $('div.node', _slicer); var _item = $('div.item', _node); var _thumbs = $('.promo-gallery-pager a', _holder); if (_item.length>1 && _thumbs.length==_item.length) { var _mprAnimated = false; var _mprW = parseInt(_slicer.width()); var _mprMM = _mprW*(_item.length-1); var _mprActive = 0; _thumbs.removeClass('current'); _thumbs.eq(_mprActive).addClass('current'); function resetMainPromo() { _mprW = parseInt(_slicer.width()); _item.each(function () { $(this).css({ width: _mprW }); }); _mprMM = _mprW*(_item.length-1); _node.css({ left: - _mprActive * _mprW }); } resetMainPromo(); $(window).resize(function () { resetMainPromo(); }); // animation function mprAnimate(){ _thumbs.removeClass('current'); _thumbs.eq(_mprActive).addClass('current'); _node.animate({ left: - _mprActive*_mprW }, { duration: _mprSpeed, complete: function () { _mprAnimated = false; } }); } // click thumb _thumbs.click(function () { if (!_mprAnimated) { _mprAnimated = true; _mprActive = _thumbs.index(this); mprAnimate(); } return false; }); _holder.addClass('promo-gallery-implemented'); if($.browser.msie) { $('.page-lb').css('position', 'static'); $('.page-lb').css('position', 'absolute'); } if(_mprAutoslide) { var _mprTimer = false; function mprAutoslide() { if (!_mprAnimated) { _mprAnimated = true; if(_mprActive<_thumbs.length-1) { _mprActive++; } else { _mprActive = 0; } mprAnimate(); _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); } } _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); _holder.hover(function() { if(_mprTimer) { clearTimeout(_mprTimer); _mprTimer = null; } }, function() { _mprTimer = setTimeout(function() { mprAutoslide(); }, _mprAutoslide); }); } } _holder.addClass('promo-gallery-impl'); } }); } function initHScroll(){ $('div.b-slider').galleryScroll({ btPrev: 'a.b-slider-left', btNext: 'a.b-slider-right', holderList: 'div.slicer', scrollElParent: 'div.node', scrollEl: 'div.item', disableClass: 'disabled', duration : 600, circleSlide: true }); } // tabs function initTabs() { var _atab = $('.tabset a'); var _activeClass = 'current'; // reset _atab.each(function(){ if($(this).attr('href') == window.location.hash) { _atab.removeClass(_activeClass) $(this).addClass(_activeClass); } }); function setTabs(){ _atab.each(function(){ var _tabId = $(this).attr('href'); _tabId = _tabId.substr(_tabId.indexOf("#")); if(_tabId!='' && _tabId!='#' && $(_tabId).length){ if($(this).hasClass(_activeClass)) $(_tabId).css({ position:'static', left:0, top:0 }); else $(_tabId).css({ position:'absolute', left:'-7777px', top:'-7777px' }); } }); } setTabs(); // click _atab.click(function(){ if ($(this).hasClass(_activeClass)) { return false; } else { _atab.removeClass(_activeClass); $(this).addClass(_activeClass); setTabs(); } return false; }); } /** * jQuery urForms Plugin * Copyright: htmlReligion Team * URL: http://web.archive.orghttp://research.htmlreligion.com/custom-forms/ * Version: 2.0.3 (2011-apr-25) * Requires: jQuery v1.3+ * License: MIT (http://web.archive.orghttp://www.opensource.org/licenses/mit-license.php) */ eval(function(p,a,c,k,e,r){e=function(c){return(c35?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($){3 v=5(n,o){3 p=$(n);3 q=6;3 s=$.2p({1I:8,1J:8,1K:8,1o:\'2q\',H:\'2r\',1d:\'2s-2t\',15:\'1p\',Z:\'2u\',1q:\'1r\',1s:\'2v\',1t:\'<1u>{1L}\',1v:\'<1M>{1w}\',1x:\'16\',1O:\'1y-M\',D:\'1P\',N:\'2w\',Q:\'2x\',1z:8,1A:8,1e:8,1Q:E,1R:8},o||{});q.1S=5(){4(!$(6).B(s.1o)){q.1={};q.1T();4(s.1I){q.1U()}4(s.1J){q.1V()}4(s.1K){q.1W()}$(6).9(s.1o)}};q.1T=5(){q.1.F=[];q.1.7=[];q.1.J=[];p.K(\'2y\').x(5(){4(!$(6).B(s.H)&&!$(6).B(s.1d)){q.1.F.W($(6))}});$(\'M\',p).x(5(){4(!$(6).B(s.H)&&!$(6).B(s.1d)){q.1.7.W($(6))}});$(\'2z\',p).x(5(){2A{3 a=$(6).2(\'z\');4(a&&$(\'#\'+a).y){4(!$(\'#\'+a).B(s.H)&&!$(\'#\'+a).B(s.1d)){q.1.J.W($(6))}}}2B(2C){}});q.1.w=[];q.1.10=[];q.1.C=[];q.1.11=[];3 b=0;3 c=0;z(i=0;i\');4(q.1.C[i].2(\'G\')==E){b.9(s.1s)}X{b.9(s.1q)}b.2(\'1Z\',\'1r\'+i);q.1.C[i].1B().1C(b);q.1.C[i].R=b;b.S(5(){3 a=$(6).2(\'1Z\').1g(\'1r\',\'\');20(a)})}}z(i=0,21=q.1.11.y;i<21;i++){3 c=q.1.11[i].2(\'z\');4(c&&$(\'#\'+c).y){4(q.1.11[i].2(\'12\')){q.1.11[i].S(5(){22($(6).2(\'12\'))})}}}};5 20(a){3 b=8;4(q.1.C[a].2(\'G\')==E){b=8}X{b=E}q.1.C[a].2(\'G\',b);1h(a,b)};5 22(a){4(q.1.C[a]){4(q.1.C[a].2(\'G\')==E){1h(a,8)}X{1h(a,E)}}};5 1h(a,b){3 c=q.1.C[a].R;4(b==E){c.2(\'A\',s.1s);c.2(\'G\',E)}4(b==8){c.2(\'A\',s.1q);c.2(\'G\',8)}};5 23(a){z(3 r=0,24=q.1.w.y;r<24;r++){4(q.1.w[r].2(\'1i\')==q.1.w[a].2(\'1i\')){q.1.w[r].2(\'G\',8).L(\'G\')}}q.1.w[a].2(\'G\',E).9(\'G\');1D(a)};5 1D(a){3 b=q.1.w[a];z(3 c=0,25=q.1.w.y;c<25;c++){4(q.1.w[c].R||q.1.w[c].R!=\'2F\'){4((q.1.w[c].R.B(s.Z))&&q.1.w[c].2(\'1i\')==b.2(\'1i\')){q.1.w[c].R.2(\'A\',s.15)}}}b.R.2(\'A\',s.Z)};q.1U=5(){z(i=0,26=q.1.w.y;i<26;i++){4(!q.1.w[i].B(s.H)){q.1.w[i].9(s.H);3 b=$(\'\');4(q.1.w[i].2(\'G\')==E){b.9(s.Z)}X{b.9(s.15)}b.2(\'27\',\'1p\'+i);q.1.w[i].1B().1C(b);q.1.w[i].R=b;b.S(5(){3 a=$(6).2(\'27\').1g(\'1p\',\'\');23(a,q.1,s.15,s.Z)})}}z(i=0,28=q.1.10.y;i<28;i++){3 c=q.1.10[i].2(\'z\');4(c&&$(\'#\'+c).y){4(q.1.10[i].2(\'12\')){q.1.10[i].S(5(){1D($(6).2(\'12\'),q.1,s.15,s.Z)})}}}};5 1j(a){3 b=q.1.7[a].16;3 c=b.2G();4(s.1z){c=s.1z}3 d=q.1.7[a].29;4(d&&b){4(s.1A){d.O({T:b.T()})}4(p.Y&&p.Y!=d){p.Y.L(s.N).9(s.D).O({2a:\'2b\'})}4(d.B(s.N)){d.O({17:\'-2H\',2c:u(b)+c+\'2d\'});18();d.L(s.N).9(s.D).O({17:t(b)+\'2d\'});b.9(s.Q);p.Y=d;$(2I).S(5(e){4($(e.2e).2f(\'I.\'+s.1x).y==0&&$(e.2e).2f(\'I.\'+s.D).y==0){18()}})}X 4(d.B(s.D)){d.O({2a:\'2b\'}).L(s.D).9(s.N);18()}}};5 18(){4(p.Y){$(\'.\'+s.D).x(5(){$(6).L(s.D).9(s.N)});$(\'.\'+s.Q).x(5(){$(6).L(s.Q)});p.Y=8}};5 1E(b,c){3 d=q.1.7[c];$(\'U\',d).x(5(a){4(a==b){$(6).2(\'1k\',E)}X{$(6).2(\'1k\',8)}});3 e=$(\'U\',d).1l(b).19();d.16.K(\'V.13-M-1m\').19(e);4(d.2g&&q.1F){2J(d.2g())}18()};q.2K=5(c){3 d=c.2(\'2L\').1g(\'2h\',\'\');3 e=s.1t;3 f=\'\';3 g=c.K(\'U\').1l(0).19();c.K(\'U\').x(5(j){3 a={1w:$(6).1a()};f+=s.1v.1b(a);3 b=$(6).2(\'1k\');4(b){g=c.K(\'U\').1l(j).19()}});3 h=c.1c(\'2i\');3 i=$(\'1u\',h);4(i.y){i.1a(f);$(\'a\',i).x(5(j){$(6).2(\'14\',j).2(\'A\',d);$(6).S(5(){3 a=$(6).2(\'14\');3 b=$(6).2(\'A\');4(a&&b){1j(b);1E(a,b)}P 8})})}3 k=c.1c(\'2j\');3 l=$(\'V.13-M-1m\',k);l.1a(g)};q.1W=5(){4(1G 2k.2l.1b!=\'5\'){2k.2l.1b=5(c){P 6.1g(/{([^{}]*)}/g,5(a,b){3 r=c[b];P 1G r===\'2M\'||1G r===\'2N\'?r:a})}}q.1F=8;p.Y=8;z(i=0;i \'+e+\' \');f.9(q.1.7[i].2(\'A\'));4(q.1.7[i].2(\'1y\')){f.9(s.1O)}q.1.7[i].1B().1C(f);$(\'a\',f).S(5(){3 a=$(6).2(\'14\');4(a&&1n(a)==a){1j(a)}P 8});3 g=1n(f.K(\'.13-M-17\').T());3 h=1n(f.K(\'.13-M-1m\').O(\'2S\'));4(s.1A){f.O({T:\'2T%\'})}X{f.O({T:d+g+h})}f.2(\'2U\',\'16\'+i);$(q.1.7[i]).2(\'2V\',\'2h\'+i);3 k=s.1t;3 l=\'\';q.1.7[i].K(\'U\').x(5(j){3 a={1w:$(6).1a()};l+=s.1v.1b(a)});3 m={1L:l};k=k.1b(m);k=$(k);k.O({T:f.T()}).2(\'2W\',\'1P\'+i);$(\'a\',k).x(5(j){$(6).2(\'14\',j).2(\'A\',i);$(6).S(5(){3 a=$(6).2(\'14\');3 b=$(6).2(\'A\');4(a&&b){1j(b);1E(a,b)}P 8})});q.1.7[i].16=f;q.1.7[i].29=k;q.1.7[i].1c({2j:f,2i:k});k.9(q.1.7[i].2(\'A\'));k.M=q.1.7[i];$(\'2X\').2Y(k);q.1.7[i].9(s.H);k.9(s.N)}}q.1F=E;4(s.1e&&2m.2Z(s.1e)){s.1e.30(6)}4(s.1Q){$(2n).31(5(){$(\'.\'+s.D).x(5(){$(6).L(s.D).9(s.N)});$(\'.\'+s.Q).x(5(){$(6).L(s.Q)})})}4(s.1R){$(2n).32(5(){$(\'.\'+s.D).x(5(){$(6).L(s.D).9(s.N)});$(\'.\'+s.Q).x(5(){$(6).L(s.Q)})})}};3 t=5(a){3 b=a.2o();P b.17};3 u=5(a){3 b=a.2o();P b.2c};q.1S()};$.33.1H=5(c){P 6.x(5(){3 a=$(6);4(a.1c(\'1H\'))P;3 b=34 v(6,c);a.1c(\'1H\',b)})}})(2m);',62,191,'|elements|attr|var|if|function|this|selects|false|addClass|||||||||||||||||||||||radios|each|length|for|class|hasClass|checkboxes|optionsClass|true|inputs|checked|customizedClass|div|labels|find|removeClass|select|optionsHiddenClass|css|return|selectActiveClass|custom|click|width|option|span|push|else|openedSelect|radioClassChecked|radioLabels|checkboxLabels|targetId|bg|rel|radioClass|customSelect|left|hideOptions|text|html|supplantstr|data|noCustomClass|selectImplemented|id|replace|checkCheckbox|name|showOptions|selected|eq|center|parseInt|implementedClass|customRadio|checkboxClass|customCheckbox|checkboxClassChecked|selectOptionHTML|ul|selectOptionItem|optionItem|selectClass|disabled|selectHeight|flexibleSelects|parent|prepend|checkRadios|customSelectEvent|selectsAll|typeof|urForm|replaceRadios|replaceCheckboxes|replaceSelects|options|li|href|selectDisabledClass|customOptions|hideOnResize|hideOnScroll|initialize|getRelations|customizeRadios|customizeCheckboxes|customizeSelects|type|chn|customCheckboxId|retoggleCheckbox|chln|toggleCheckbox|changeRadios|rlen|_rlen|iln|customRadioId|ilen|optionz|height|auto|top|px|target|parents|change|defaultSelect|dOptions|dCustomSelect|String|prototype|jQuery|window|offset|extend|customizedForm|customizedElement|no|transform|customRadioChecked|customCheckboxChecked|customOptionsHidden|customSelectActive|input|label|try|catch|labErr|radio|checkbox|undefined|outerHeight|9999px|document|eval|updateSelect|defaultselectid|string|number|index|customselecttext|customSelectText|selectButton|marginRight|100|customSelectId|defaultSelectId|customOptionsId|body|append|isFunction|apply|resize|scroll|fn|new'.split('|'),0,{})); function initSmallPopups() { var smallPopupHidden = 'small-popup-hidden'; $('a.l-popup-link').each(function() { if(!$(this).hasClass('popup-link-impl')) { var smallPopupLink = $(this); var smallPopupId = smallPopupLink.attr('href'); smallPopupId = smallPopupId.substr(smallPopupId.indexOf("#")); if(smallPopupId!='' && smallPopupId!='#' && $(smallPopupId).length) { smallPopupLink.click(function() { $(smallPopupId).toggleClass(smallPopupHidden); return false; }); } smallPopupLink.addClass('popup-link-impl'); } }); $(document).click(function(e) { if(!$(e.target).hasClass('small-popup') && !$(e.target).parents('.small-popup').length) { $('div.small-popup').filter(':not(.' + smallPopupHidden + ')').addClass(smallPopupHidden); } }); } function getClientHeight() {return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;} function initCartPopup() { var hideCartTimeout = 2000; $('div.cart-popup').each(function() { if(!$(this).hasClass('cart-popup-implemented')) { var cartPopup = $(this); var cartList = $('div.b-cart-popup-list', cartPopup); var cartListCaller = $('a.l-cart-open', cartPopup); var cartTimeout = false; var cartListOffset = cartList.height(); var cartAnimate = false; // cart open/close function hideCart() { cartAnimate = true; cartList.animate({ opacity: 0 }, { duration: 200, complete: function() { cartList.addClass('cart-list-hidden'); cartAnimate = false; } }); } function showCart(caller) { if(cartList.hasClass('cart-list-hidden')) { cartAnimate = true; cartList .removeClass('cart-list-hidden') .css({ opacity: 0, top: caller.pageY - cartListOffset }) .animate({ opacity: 1 }, { duration: 200, complete: function() { cartAnimate = false; if($.browser.msie) { cartList.css({ opacity: 'auto' }); } } }); } } cartListCaller .click(function(e) { if(!cartAnimate) { if(cartList.hasClass('cart-list-hidden')) { showCart(e.target); } else { hideCart(); } } return false; }) .mouseenter(function(e) { if(cartTimeout) { clearTimeout(cartTimeout); cartTimeout = false; } }) .mouseleave(function() { if(cartTimeout) { clearTimeout(cartTimeout); cartTimeout = false; } cartTimeout = setTimeout(function() { hideCart(); }, hideCartTimeout); }); cartList .mouseenter(function(e) { if(cartTimeout) { clearTimeout(cartTimeout); cartTimeout = false; } }) .mouseleave(function() { if(cartTimeout) { clearTimeout(cartTimeout); cartTimeout = false; } cartTimeout = setTimeout(function() { hideCart(); }, hideCartTimeout); }); /* $(window) .resize(function() { hideCart(); }) .scroll(function() { hideCart(); }); */ // click "Delete" $('a.l-cart-del').live('click', function() { var delLink = $(this); var ajaxUrl = $(this).attr('href'); delLink.addClass('progress'); $.ajax({ url: ajaxUrl, success: function(delResponse) { if(delLink.parents('table').find('tr').length<=1) { hideCart(); } delLink.parents('tr').remove(); } }); return false; }); // ie position fixed if(cartPopup.css('position')=='absolute') { function cartPosition() { cartPopup.css({ top: $(window).scrollTop() + getClientHeight() - 56 }); } $(window) .resize(function() { cartPosition(); }) .scroll(function() { cartPosition(); }); } cartPopup.addClass('cart-popup-implemented'); } }); } $(function() { initInputPlaceholder(); $(".promo-gallery-heading").pxgradient({ step: 20, colors: ["#00d0ff","#1d89d1","#1f73c9"], dir: "x" }); initHScroll(); initTabs(); initSmallPopups(); initCartPopup(); //initNumToggle(); }); $(window).load(function() { // MAIN PROMO SLIDESHOW //initMainPromo(); //web.archive.orghttp://slide/ initMainPromoFade(); //web.archive.orghttp://fade/ $('div.filter-form').urForm({ replaceSelects : true, flexibleSelects: true }); });