
﻿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}('(B($){3 a=1S.1T.2r();$.1z={1U:(a.2s(/.+(?:2t|2u|2v|2w)[\\/: ]([\\d.]+)/)||[0,\'0\'])[1],1V:/1W/.S(a),1l:/1l/.S(a),1A:/1A/.S(a)&&!/1l/.S(a),1B:/1B/.S(a)&&!/(1X|1W)/.S(a)}})(1Y);(B($){$.T=(B(){3 f=B(b){$(E).2x($.2y($.2z(b),(B(){3 a={Q:E.Q(),1e:E.1e(),1m:E.1m(),13:E.13(),1Z:{},1n:E.1n()};1o(3 i=0,l=a.13.H;i<l;i++)a.1Z[a.13[i]]=E.1C(a.13[i]);D a}).1p(E)))};3 g=B(){f.1p($.T,\'20\')};3 h=B(){f.1p($.T,\'21\')};3 j=B(){3 a=C.I.L(\'#\');D a!=-1?1D(1q(C.I.P(a+1))):\'\'};3 k=B(){2A{1E.1a;D 1E}2B(e){D 22}};3 m=B(a,b){2(M.Z)a=b?(a.P(0,1)!=\'/\'?\'/\'+a:a):(a==\'\'?\'/\':a);D a};3 n=B(a,b){D(Y&&C.2C==\'2D:\')?(b?F.11(/\\?/,\'%2E\'):F.11(/%2F/,\'?\')):a;2G(\'\')};3 o=B(a){1o(3 i=0,l=a.1r.H,s;i<l;i++){2(a.1r[i].1F)1f=2H(a.1r[i].1F);2(s=o(a.1r[i]))D s}};3 q=B(){2(!1g){3 a=j();3 b=!(F==a);2(14&&J<23){2(15!=1b.H){15=1b.H;2(V 12[15-1]!=16)F=12[15-1];r()}}G 2(Y&&b){2(J<7)C.2I();G x.Q(a)}G 2(b){F=a;r()}}};3 r=B(){h();17(t,10)};3 t=B(){3 a=(C.1h+(/\\/$/.S(C.1h)?\'\':\'/\')+w.Q()).11(/\\/\\//,\'/\').11(/^\\/$/,\'\');3 b=22[M.18];2(V b==1s)b(a);G 2(V 1G!=16&&V 1G.24==1s)1G.24(a);G 2(V 25==1s)25(a)};3 u=B(){3 a=W.1c.1a;a.26();a.27(\'<1t><1u><X>\'+K.X+\'</X><28>3 \'+y+\' = "\'+j()+\'";</28></1u></1t>\');a.29()};3 v=B(){2(!1H){1H=N;$(\'a\').19(\'1I\',B(){D $(E).19(\'I\')});2(Y&&J<8){$(K.1J).2a(\'<2b 2c="\'+y+\'" 1F="2J:U;" 2K="0" 2L="0"></2b>\');W=K.2d(y);17(B(){$(W).2e(\'2M\',B(){3 a=W.1c;3 b=a.2f.I;F=(V a[y]!=16?a[y]:\'\');2(F!=j()){r();C.1i=n(F,N)}});2(V W.1c[y]==16)u()},1v)}G 2(14){2(J<1K){$(K.1J).2a(\'<2g 2c="\'+y+\'" 2N="2O:2P;1E:-2Q;" 2R="2S"></2g>\');1w=K.2d(y)}2(V C[y]==16)C[y]={};2(V C[y][C.1h]!=16)12=C[y][C.1h].O(\',\')}17(B(){g();h();t()},1);2(Y&&J>=8)K.1J.2T=q;G 2h(q,1v);$(\'a\').19(\'I\',B(){D $(E).19(\'1I\')}).2U(\'1I\');$(\'a[1L*=T:]\').T()}};3 w={2i:B(){3 a=C.I;2(a.L(\'#\')!=-1)a=a.P(0,a.L(\'#\'));2(a.P(a.H-1)==\'/\')a=a.P(0,a.H-1);D a},Z:B(){D M.Z},R:B(){D M.R},18:B(){D M.18},X:B(){D K.X},Q:B(){2(!1d)D 2V;D 1q(m(n(F,U),U))},1e:B(){3 a=E.Q();D(a.L(\'?\')!=-1)?a.O(\'?\')[0]:a},1m:B(){3 a=E.1e();3 b=a.O(\'/\');2(a.P(0,1)==\'/\'||a.H==0)b.2j(0,1);2(a.P(a.H-1,1)==\'/\')b.2j(b.H-1,1);D b},1n:B(){3 a=E.Q();3 b=a.L(\'?\');D(b!=-1&&b<a.H)?a.P(b+1):\'\'},1C:B(a){3 b=E.Q();3 c=b.L(\'?\');2(c!=-1){b=b.P(c+1);3 d=b.O(\'&\');3 p,i=d.H;2k(i--){p=d[i].O(\'=\');2(p[0]==a)D p[1]}}},13:B(){3 a=E.Q();3 b=a.L(\'?\');3 c=[];2(b!=-1){a=a.P(b+1);2(a!=\'\'&&a.L(\'=\')!=-1){3 d=a.O(\'&\');3 i=0;2k(i<d.H){c.1M(d[i].O(\'=\')[0]);i++}}}D c}};3 x={Z:B(a){M.Z=a},R:B(a){M.R=a},18:B(a){M.18=a},X:B(a){17(B(){2l=K.X=a;2(1N&&W&&W.1c&&W.1c.1a){W.1c.1a.X=a;1N=U}2(!1x&&1O)C.11(C.I.L(\'#\')!=-1?C.I:C.I+\'#\');1x=U},1v)},Q:B(a){a=1D(1q(m(a,N)));2(a==\'/\')a=\'\';2(F==a)D;1x=N;F=a;1g=N;r();12[1b.H]=F;2(14){2(M.R){C[y][C.1h]=12.2W();15=1b.H+1;2(J<1K){2(C.2m==\'\'){1w.2X=\'#\'+F;1w.2Y()}}G 2(J<23||F==\'\'){3 b=K.2Z(\'30\');b.31(\'2n\',N,N);3 c=K.32(\'a\');c.I=\'#\'+F;c.33(b)}G{C.1i=\'#\'+F}}G{C.11(\'#\'+F)}}G 2(F!=j()){2(M.R)C.1i=\'#\'+n(F,N);G C.11(\'#\'+F)}2((Y&&J<8)&&M.R){17(u,1v)}2(14)17(B(){1g=U},1);G 1g=U}};3 y=\'34\',1s=\'B\',16=\'2o\',1j=$.1z,J=2p($.1z.1U),1O=1j.1B,Y=1j.1A,1P=1j.1l,14=1j.1V,1d=U,1y=k(),K=1y.1a,1b=1y.R,C=1y.2f,2h=35,17=36,1q=37,1D=38,1Q=1S.1T,W,1w,1f,2l=K.X,15=1b.H,1g=U,1H=U,1x=N,1N=N,12=[],39={},F=j(),1k={},M={R:N,Z:N};2(Y)J=2p(1Q.P(1Q.L(\'3a\')+4));1d=(1O&&J>=1)||(Y&&J>=6)||(1P&&J>=9.5)||(14&&J>=3b);2(1d){1o(3 i=1;i<15;i++)12.1M(\'\');12.1M(j());2(Y&&C.1i!=j())C.1i=\'#\'+n(j(),N);2(1P)R.3c=\'1X\';o(1a);3 z=1f.L(\'?\');2(1f&&z>-1){3 A,2q=1f.P(z+1).O(\'&\');1o(3 i=0,p;p=2q[i];i++){A=p.O(\'=\');2(/^(R|Z)$/.S(A[0])){M[A[0]]=(3d(A[1])?/^(N|3e)$/i.S(A[1]):(3f(A[1])!=0))}2(/^18$/.S(A[0]))M[A[0]]=A[1]}}$(v)}G 2((!1d&&C.I.L(\'#\')!=-1)||(14&&J<1K&&C.I.L(\'#\')!=-1&&C.2m!=\'\')){K.26();K.27(\'<1t><1u><3g 3h-3i="3j" 3k="0;3l=\'+C.I.P(0,C.I.L(\'#\'))+\'" /></1u></1t>\');K.29()}G{t()}$.1R((\'20,21\').O(\',\'),B(i,c){1k[c]=B(a,b){$($.T).2e(c,b||a,b&&a);D E}});$.1R((\'2i,Z,R,18,X,Q\').O(\',\'),B(i,b){1k[b]=B(a){2(V a!=\'2o\'){2(1d)x[b](a);D $.T}G{D w[b]()}}});$.1R((\'1e,1m,1n,1C,13\').O(\',\'),B(i,b){1k[b]=B(a){D w[b](a)}});D 1k})();$.3m.T=B(b){$(E).2n(B(){3 a=b?b.1p(E):/T:/.S($(E).19(\'1L\'))?$(E).19(\'1L\').O(\'T:\')[1].O(\' \')[0]:$(E).19(\'I\').11(/^#/,\'\');$.T.Q(a);D U})}}(1Y));',62,209,'||if|var||||||||||||||||||||||||||||||||||function|_l|return|this|_value|else|length|href|_version|_d|indexOf|_opts|true|split|substr|value|history|test|address|false|typeof|_iframe|title|_msie|strict||replace|_stack|parameterNames|_safari|_length|UNDEFINED|_st|tracker|attr|document|_h|contentWindow|_supported|path|_url|_silent|pathname|hash|_browser|_api|opera|pathNames|queryString|for|call|_dc|childNodes|FUNCTION|html|head|50|_form|_justset|_t|browser|msie|mozilla|parameter|_ec|top|src|pageTracker|_loaded|xref|body|418|rel|push|_juststart|_mozilla|_opera|_agent|each|navigator|userAgent|version|safari|webkit|compatible|jQuery|parameters|init|change|window|523|_trackPageview|urchinTracker|open|write|script|close|append|iframe|id|getElementById|bind|location|form|_si|baseURL|splice|while|_title|search|click|undefined|parseFloat|params|toLowerCase|match|rv|it|ra|ie|trigger|extend|Event|try|catch|protocol|file|3F|253F|alert|String|reload|javascript|width|height|load|style|position|absolute|9999px|method|get|onhashchange|removeAttr|null|toString|action|submit|createEvent|MouseEvents|initEvent|createElement|dispatchEvent|jQueryAddress|setInterval|setTimeout|decodeURI|encodeURI|_listeners|MSIE|312|navigationMode|isNaN|yes|parseInt|meta|http|equiv|refresh|content|url|fn'.split('|'),0,{}))
(function($){$.fn.jcarousel=function(o){return this.each(function(){new $jc(this,o);});};var defaults={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:'normal',easing:'swing',auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:'<div></div>',buttonPrevHTML:'<div></div>',buttonNextEvent:'click',buttonPrevEvent:'click',buttonNextCallback:null,buttonPrevCallback:null};$.jcarousel=function(e,o){this.options=$.extend({},defaults,o||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?'width':'height';this.lt=!this.options.vertical?'left':'top';var skin='',split=e.className.split(' ');for(var i=0;i<split.length;i++){if(split[i].indexOf('jcarousel-skin')!=-1){$(e).removeClass(split[i]);var skin=split[i];break;}}
if(e.nodeName=='UL'||e.nodeName=='OL'){this.list=$(e);this.container=this.list.parent();if(this.container.hasClass('jcarousel-clip')){if(!this.container.parent().hasClass('jcarousel-container'))
this.container=this.container.wrap('<div></div>');this.container=this.container.parent();}else if(!this.container.hasClass('jcarousel-container'))
this.container=this.list.wrap('<div></div>').parent();}else{this.container=$(e);this.list=$(e).find('>ul,>ol,div>ul,div>ol');}
if(skin!=''&&this.container.parent()[0].className.indexOf('jcarousel-skin')==-1)
this.container.wrap('<div class=" '+skin+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass('jcarousel-clip'))
this.clip=this.list.wrap('<div></div>').parent();this.buttonPrev=$('.jcarousel-prev',this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null)
this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev();this.buttonPrev.addClass(this.className('jcarousel-prev'));this.buttonNext=$('.jcarousel-next',this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null)
this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev();this.buttonNext.addClass(this.className('jcarousel-next'));this.clip.addClass(this.className('jcarousel-clip'));this.list.addClass(this.className('jcarousel-list'));this.container.addClass(this.className('jcarousel-container'));var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var li=this.list.children('li');var self=this;if(li.size()>0){var wh=0,i=this.options.offset;li.each(function(){self.format(this,i++);wh+=self.dimension(this,di);});this.list.css(this.wh,wh+'px');if(!o||o.size===undefined)
this.options.size=li.size();}
this.container.css('display','block');this.buttonNext.css('display','block');this.buttonPrev.css('display','block');this.funcNext=function(){self.next();};this.funcPrev=function(){self.prev();};this.funcResize=function(){self.reload();};if(this.options.initCallback!=null)
this.options.initCallback(this,'init');this.setup();};var $jc=$.jcarousel;$jc.fn=$jc.prototype={jcarousel:'0.2.3'};$jc.fn.extend=$jc.extend=$.extend;$jc.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked)
return;this.list.css(this.lt,this.pos(this.options.offset)+'px');var p=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(p,false);$(window).unbind('resize',this.funcResize).bind('resize',this.funcResize);},reset:function(){this.list.empty();this.list.css(this.lt,'0px');this.list.css(this.wh,'10px');if(this.options.initCallback!=null)
this.options.initCallback(this,'reset');this.setup();},reload:function(){if(this.tail!=null&&this.inTail)
this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null)
this.options.reloadCallback(this);if(this.options.visible!=null){var self=this;var di=Math.ceil(this.clipping()/this.options.visible),wh=0,lt=0;$('li',this.list).each(function(i){wh+=self.dimension(this,di);if(i+1<self.first)
lt=wh;});this.list.css(this.wh,wh+'px');this.list.css(this.lt,-lt+'px');}
this.scroll(this.first,false);},lock:function(){this.locked=true;this.buttons();},unlock:function(){this.locked=false;this.buttons();},size:function(s){if(s!=undefined){this.options.size=s;if(!this.locked)
this.buttons();}
return this.options.size;},has:function(i,i2){if(i2==undefined||!i2)
i2=i;if(this.options.size!==null&&i2>this.options.size)
i2=this.options.size;for(var j=i;j<=i2;j++){var e=this.get(j);if(!e.length||e.hasClass('jcarousel-item-placeholder'))
return false;}
return true;},get:function(i){return $('.jcarousel-item-'+i,this.list);},add:function(i,s){var e=this.get(i),old=0,add=0;if(e.length==0){var c,e=this.create(i),j=$jc.intval(i);while(c=this.get(--j)){if(j<=0||c.length){j<=0?this.list.prepend(e):c.after(e);break;}}}else
old=this.dimension(e);e.removeClass(this.className('jcarousel-item-placeholder'));typeof s=='string'?e.html(s):e.empty().append(s);var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var wh=this.dimension(e,di)-old;if(i>0&&i<this.first)
this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-wh+'px');this.list.css(this.wh,$jc.intval(this.list.css(this.wh))+wh+'px');return e;},remove:function(i){var e=this.get(i);if(!e.length||(i>=this.first&&i<=this.last))
return;var d=this.dimension(e);if(i<this.first)
this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+d+'px');e.remove();this.list.css(this.wh,$jc.intval(this.list.css(this.wh))-d+'px');},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail)
this.scrollTail(false);else
this.scroll(((this.options.wrap=='both'||this.options.wrap=='last')&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll);},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail)
this.scrollTail(true);else
this.scroll(((this.options.wrap=='both'||this.options.wrap=='first')&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll);},scrollTail:function(b){if(this.locked||this.animating||!this.tail)
return;var pos=$jc.intval(this.list.css(this.lt));!b?pos-=this.tail:pos+=this.tail;this.inTail=!b;this.prevFirst=this.first;this.prevLast=this.last;this.animate(pos);},scroll:function(i,a){if(this.locked||this.animating)
return;this.animate(this.pos(i),a);},pos:function(i){if(this.locked||this.animating)
return;if(this.options.wrap!='circular')
i=i<1?1:(this.options.size&&i>this.options.size?this.options.size:i);var back=this.first>i;var pos=$jc.intval(this.list.css(this.lt));var f=this.options.wrap!='circular'&&this.first<=1?1:this.first;var c=back?this.get(f):this.get(this.last);var j=back?f:f-1;var e=null,l=0,p=false,d=0;while(back?--j>=i:++j<i){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c[back?'before':'after'](e);}
c=e;d=this.dimension(e);if(p)
l+=d;if(this.first!=null&&(this.options.wrap=='circular'||(j>=1&&(this.options.size==null||j<=this.options.size))))
pos=back?pos+d:pos-d;}
var clipping=this.clipping();var cache=[];var visible=0,j=i,v=0;var c=this.get(i-1);while(++visible){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c.length==0?this.list.prepend(e):c[back?'before':'after'](e);}
c=e;var d=this.dimension(e);if(d==0){return 0;}
if(this.options.wrap!='circular'&&this.options.size!==null&&j>this.options.size)
cache.push(e);else if(p)
l+=d;v+=d;if(v>=clipping)
break;j++;}
for(var x=0;x<cache.length;x++)
cache[x].remove();if(l>0){this.list.css(this.wh,this.dimension(this.list)+l+'px');if(back){pos-=l;this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-l+'px');}}
var last=i+visible-1;if(this.options.wrap!='circular'&&this.options.size&&last>this.options.size)
last=this.options.size;if(j>last){visible=0,j=last,v=0;while(++visible){var e=this.get(j--);if(!e.length)
break;v+=this.dimension(e);if(v>=clipping)
break;}}
var first=last-visible+1;if(this.options.wrap!='circular'&&first<1)
first=1;if(this.inTail&&back){pos+=this.tail;this.inTail=false;}
this.tail=null;if(this.options.wrap!='circular'&&last==this.options.size&&(last-visible+1)>=1){var m=$jc.margin(this.get(last),!this.options.vertical?'marginRight':'marginBottom');if((v-m)>clipping)
this.tail=v-clipping-m;}
while(i-->first)
pos+=this.dimension(this.get(i));this.prevFirst=this.first;this.prevLast=this.last;this.first=first;this.last=last;return pos;},animate:function(p,a){if(this.locked||this.animating)
return;this.animating=true;var self=this;var scrolled=function(){self.animating=false;if(p==0)
self.list.css(self.lt,0);if(self.options.wrap=='both'||self.options.wrap=='last'||self.options.size==null||self.last<self.options.size)
self.startAuto();self.buttons();self.notify('onAfterAnimation');};this.notify('onBeforeAnimation');if(!this.options.animation||a==false){this.list.css(this.lt,p+'px');scrolled();}else{var o=!this.options.vertical?{'left':p}:{'top':p};this.list.animate(o,this.options.animation,this.options.easing,scrolled);}},startAuto:function(s){if(s!=undefined)
this.options.auto=s;if(this.options.auto==0)
return this.stopAuto();if(this.timer!=null)
return;var self=this;this.timer=setTimeout(function(){self.next();},this.options.auto*1000);},stopAuto:function(){if(this.timer==null)
return;clearTimeout(this.timer);this.timer=null;},buttons:function(n,p){if(n==undefined||n==null){var n=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='first')||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=='first')&&this.options.size!=null&&this.last>=this.options.size)
n=this.tail!=null&&!this.inTail;}
if(p==undefined||p==null){var p=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='last')||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=='last')&&this.options.size!=null&&this.first==1)
p=this.tail!=null&&this.inTail;}
var self=this;this.buttonNext[n?'bind':'unbind'](this.options.buttonNextEvent,this.funcNext)[n?'removeClass':'addClass'](this.className('jcarousel-next-disabled')).attr('disabled',n?false:true);this.buttonPrev[p?'bind':'unbind'](this.options.buttonPrevEvent,this.funcPrev)[p?'removeClass':'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled',p?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=n)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){self.options.buttonNextCallback(self,this,n);});this.buttonNext[0].jcarouselstate=n;}
if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=p)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){self.options.buttonPrevCallback(self,this,p);});this.buttonPrev[0].jcarouselstate=p;}},notify:function(evt){var state=this.prevFirst==null?'init':(this.prevFirst<this.first?'next':'prev');this.callback('itemLoadCallback',evt,state);if(this.prevFirst!==this.first){this.callback('itemFirstInCallback',evt,state,this.first);this.callback('itemFirstOutCallback',evt,state,this.prevFirst);}
if(this.prevLast!==this.last){this.callback('itemLastInCallback',evt,state,this.last);this.callback('itemLastOutCallback',evt,state,this.prevLast);}
this.callback('itemVisibleInCallback',evt,state,this.first,this.last,this.prevFirst,this.prevLast);this.callback('itemVisibleOutCallback',evt,state,this.prevFirst,this.prevLast,this.first,this.last);},callback:function(cb,evt,state,i1,i2,i3,i4){if(this.options[cb]==undefined||(typeof this.options[cb]!='object'&&evt!='onAfterAnimation'))
return;var callback=typeof this.options[cb]=='object'?this.options[cb][evt]:this.options[cb];if(!$.isFunction(callback))
return;var self=this;if(i1===undefined)
callback(self,state,evt);else if(i2===undefined)
this.get(i1).each(function(){callback(self,this,i1,state,evt);});else{for(var i=i1;i<=i2;i++)
if(i!==null&&!(i>=i3&&i<=i4))
this.get(i).each(function(){callback(self,this,i,state,evt);});}},create:function(i){return this.format('<li></li>',i);},format:function(e,i){var $e=$(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-'+i));$e.attr('jcarouselindex',i);return $e;},className:function(c){return c+' '+c+(!this.options.vertical?'-horizontal':'-vertical');},dimension:function(e,d){var el=e.jquery!=undefined?e[0]:e;var old=!this.options.vertical?el.offsetWidth+$jc.margin(el,'marginLeft')+$jc.margin(el,'marginRight'):el.offsetHeight+$jc.margin(el,'marginTop')+$jc.margin(el,'marginBottom');if(d==undefined||old==d)
return old;var w=!this.options.vertical?d-$jc.margin(el,'marginLeft')-$jc.margin(el,'marginRight'):d-$jc.margin(el,'marginTop')-$jc.margin(el,'marginBottom');$(el).css(this.wh,w+'px');return this.dimension(el);},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-$jc.intval(this.clip.css('borderLeftWidth'))-$jc.intval(this.clip.css('borderRightWidth')):this.clip[0].offsetHeight-$jc.intval(this.clip.css('borderTopWidth'))-$jc.intval(this.clip.css('borderBottomWidth'));},index:function(i,s){if(s==undefined)
s=this.options.size;return Math.round((((i-1)/s)-Math.floor((i-1)/s))*s)+1;}});$jc.extend({defaults:function(d){return $.extend(defaults,d||{});},margin:function(e,p){if(!e)
return 0;var el=e.jquery!=undefined?e[0]:e;if(p=='marginRight'&&$.browser.safari){var old={'display':'block','float':'none','width':'auto'},oWidth,oWidth2;$.swap(el,old,function(){oWidth=el.offsetWidth;});old['marginRight']=0;$.swap(el,old,function(){oWidth2=el.offsetWidth;});return oWidth2-oWidth;}
return $jc.intval($.css(el,p));},intval:function(v){v=parseInt(v);return isNaN(v)?0:v;}});})(jQuery);gCjs.namespace("harrods.block");gCjs.harrods.block.brandPage=function(id){this._container=$("#"+id);}
var a=gCjs.harrods.block.brandPage;a.prototype.init=function(){gCjs.log(this._container);var _self=this;this.link_name;$("#brands_tabs").tabs();$.address.change(function(event){if(event.value!='/'){_self.action=event.pathNames[0];_self.letter=event.parameters.letter;_self.name=event.parameters.name;_self.department=event.parameters.department;_self[_self.action]();}else{$.address.value('/SearchByName');$.address.title($.address.title().split(' | ')[0]+' | Search by name');}});this.getBrandDepartments();this.autoComplete();this.brandsSearch();}
a.prototype.SearchByName=function(){var _self=this;var theTitle=$('a[rel=address:/'+this.action+']');var enterName='Please enter a brand name in the search field.';if(this.name==undefined&&this.department==undefined){$.address.title($.address.title().split(' | ')[0]+' | '+theTitle.text());$("#brands_tabs > li:first a").click();$("#brand_name").focus().val('');$("#brands_list > li").remove();}else if(this.name==''&&this.department!=undefined){$.address.title($.address.title().split(' | ')[0]+' | '+theTitle.text());$('#brands_tabs').tabs({selected:0});$('#viewAtoZ').hide();if($(".brands_preview > .notice").text()!=enterName){$(".brands_preview > .notice").append(enterName).show();$("#brand_name").focus();$("#brand_name").focus().val('');$("#brands_list > li").remove();}else{$("#brand_name").focus();}}else if(this.name!=undefined&&this.department!=undefined){$('#brands_tabs').tabs({selected:0});$('#viewAtoZ').hide();$("#brand_name").val(this.name);$("#brands_departments").val(this.department);_self.brandsSearch2();}}
a.prototype.brandsSearch=function(){var _self=this;$("#submit_search_brand").click(function(){var thename=$("#brand_name").val();var thedepartment=$("#brands_departments").val();$.address.value('/SearchByName/?department='+thedepartment+'&letter=&name='+thename);return false;})}
a.prototype.brandsSearch2=function(){var _self=this;$.address.title($.address.title().split(' | ')[0]+' | Search for '+this.name);$(".brands_preview > .notice").text('');$("#brands_list > li").remove();$(".loader").show();gCjs.util.ServiceProxy.getService("BrandServices.asmx").call("BrandSearch",new gCjs.util.Delegate(this,_self.onBrandSearch),{searchText:this.name,department:this.department});return false;}
a.prototype.onBrandSearch=function(response){var _self=this;var searchText=$("#brand_name").val();if(response.d.length<1){$(".brands_preview > .notice").append('Sorry, no brand with the name: "'+searchText+'"').show();}else{for(var i in response.d){if(response.d[i].DetailPageUrl!=undefined){$("#brands_list").append('<li class="clearfix"><p>YOUR SELECTED BRAND</p><span class="brand_prev_name">'+response.d[i].DisplayName+'</span><div style="display:block;"><p class="prev_text">'+response.d[i].PreviewText+'</p><a href="'+response.d[i].DetailPageUrl+'" title="Find out more about '+response.d[i].DisplayName+'" class="find_more">FIND OUT MORE&nbsp;»</a><p class="enquiries"><strong>Harrods Store Enquiries:</strong><br />+44 (0) 20 7730 1234</p></div></li>');}else{$("#brands_list").append('<li class="clearfix"><p>YOUR SELECTED BRAND</p><span class="brand_prev_name">'+response.d[i].DisplayName+'</span><div style="display:block;"><p class="prev_text">'+response.d[i].PreviewText+'</p><p class="enquiries"><strong>Harrods Store Enquiries:</strong><br />+44 (0) 20 7730 1234</p></div></li>');}}
_self.sendOmnitureData();}
$(".loader").hide();}
a.prototype.viewAtoZ=function(){var theTitle=$('a[rel=address:/'+this.action+']');$.address.title($.address.title().split(' | ')[0]+' | '+theTitle.text());$('#brands_tabs').tabs({selected:1});$('#SearchByName').hide();$(".atoz_lists > p").text('');$(".atoz_lists > .loader").hide();$(".brands_preview > .notice").text('');$("#brands_list > li").remove();$('.brands_atoz').remove();if($('.jcarousel-skin-tango').length>0){$('.jcarousel-skin-tango').remove();}
$(".brands_atoz_list > li > a").removeClass('active');}
a.prototype.autoComplete=function(){$("#brand_name").autocomplete("/UIServices/CommonServices.asmx/GetAutoCompleteData",{extraParams:{"dataFor":'"BRANDS"'}}).focus();}
a.prototype.getFeaturedBrands=function(){gCjs.util.ServiceProxy.getService("BrandServices.asmx").call("GetFeaturedBrands",new gCjs.util.Delegate(this,this.onFeaturedBrands),{});}
a.prototype.onFeaturedBrands=function(response){for(var i in response.d){$("#FeaturedBrands > ul").append('<li><a href="'+response.d[i].DetailPageUrl+'"><img src="'+response.d[i].ImageUrl+'" alt="'+response.d[i].DisplayName+'" /></a></li>');}}
a.prototype.getBrandDepartments=function(){gCjs.util.ServiceProxy.getService("BrandServices.asmx").call("GetBrandDepartments",new gCjs.util.Delegate(this,this.onBrandDepartments),{});}
a.prototype.onBrandDepartments=function(response){for(var i in response.d){$("#brands_departments").append('<option value="'+response.d[i].Value+'">'+response.d[i].Text+'</option>');}}
a.prototype.atozSearch=function(){var _self=this;$('#brands_tabs').tabs({selected:1});$('#SearchByName').hide();$.address.title($.address.title().split(' | ')[0]+' | Search by name starting with '+this.letter);$('a[rel=address:/atozSearch/?department=ALL&letter='+this.letter+'&name=]').addClass('active');$('a[rel=address:/atozSearch/?department=ALL&letter='+this.letter+'&name=]').parent('li').siblings('li').children('a').removeClass('active');$(".atoz_lists > p").remove();$(".brands_preview > .notice").text('');$("#brands_list > li").remove();$('.brands_atoz').remove();gCjs.util.ServiceProxy.getService("BrandServices.asmx").call("BrandSearch",new gCjs.util.Delegate(this,_self.onatozSearch),{searchText:this.letter,department:'ALL'});$('.jcarousel-skin-tango').hide();$(".atoz_lists > .loader").show();return false;}
a.prototype.onatozSearch=function(response){var _self=this;if(response.d.length==0){$('.jcarousel-skin-tango').remove();$(".atoz_lists").append('<p>Sorry, no brand starting with the letter: "'+this.letter+'"</p>')}else{this.listLetter=response.d[0].DisplayName.substr(0,1).toUpperCase();var k=1;var jc=1;$('.jcarousel-skin-tango').remove();var brands_atoz=$('<ul class="brands_atoz jcarousel-skin-tango" id="brand_carousel"></ul>');var brands_atoz_in;$(".atoz_lists").append(brands_atoz);for(var i in response.d){if(k==1){brands_atoz_in=$('<ul class="brands_atoz_in"></ul>');}
var li=$('<li><a href="#atozResultSearch/?department='+this.department+'&letter='+this.listLetter+'&name='+response.d[i].DisplayName+'" rel="address:/atozResultSearch/?department='+this.department+'&letter='+this.listLetter+'&name='+response.d[i].DisplayName+'">'+response.d[i].DisplayName+'</a></li>');brands_atoz_in.append(li);if(k==7){var li2=$('<li></li>').append(brands_atoz_in)
brands_atoz.append(li2);k=1;jc++;}else{k++;}}
var li1=$('<li></li>').append(brands_atoz_in)
brands_atoz.append(li1);if(jc>=6){$("#brand_carousel").jcarousel();$(".jcarousel-next").text('Next');$(".jcarousel-prev").text('Prev');}}
$(".loader").hide();if(this.name!=''){_self.atozResultSearch2();}}
a.prototype.atozResultSearch=function(){var _self=this;if(this.listLetter==this.letter){_self.atozResultSearch2();}else{_self.atozSearch();}}
a.prototype.atozResultSearch2=function(){var _self=this;$('#brands_tabs').tabs({selected:1});$('#SearchByName').hide();$.address.title($.address.title().split(' | ')[0]+' | Search for '+this.name);$('a[rel=address:/atozSearch/?department=ALL&letter='+this.letter+'&name=]').addClass('active');$('a[rel=address:/atozSearch/?department=ALL&letter='+this.letter+'&name=]').parent('li').siblings('li').children('a').removeClass('active');$('.brands_atoz_in').children('li').children('a').removeClass('active');$('.brands_atoz_in').children('li').children('a[rel=address:/atozResultSearch/?department='+this.department+'&letter='+this.listLetter+'&name='+this.name+']').addClass('active');var searchText=$('a[rel=address:/atozResultSearch/?name='+this.name+']').text();$(".brands_preview > .notice").text('');$("#brands_list > li").remove();$(".brands_preview > .loader").show();gCjs.util.ServiceProxy.getService("BrandServices.asmx").call("BrandSearch",new gCjs.util.Delegate(this,_self.onatozResultSearch),{searchText:this.name,department:'ALL'});return false;}
a.prototype.onatozResultSearch=function(response){var _self=this;if(response.d.length<1){$("#brands_list > .notice").append('Sorry, no brand with the name: "'+this.name+'"');}else{for(var i in response.d){if(response.d[i].DetailPageUrl!=undefined){$("#brands_list").append('<li class="clearfix"><p>YOUR SELECTED BRAND</p><span class="brand_prev_name">'+response.d[i].DisplayName+'</span><div style="display:block;"><p class="prev_text">'+response.d[i].PreviewText+'</p><a href="'+response.d[i].DetailPageUrl+'" title="Find out more about '+response.d[i].DisplayName+'" class="find_more">FIND OUT MORE&nbsp;»</a><p class="enquiries"><strong>Harrods Store Enquiries:</strong><br />+44 (0) 20 7730 1234</p></div></li>');}else{$("#brands_list").append('<li class="clearfix"><p>YOUR SELECTED BRAND</p><span class="brand_prev_name">'+response.d[i].DisplayName+'</span><div style="display:block;"><p class="prev_text">'+response.d[i].PreviewText+'</p><p class="enquiries"><strong>Harrods Store Enquiries:</strong><br />+44 (0) 20 7730 1234</p></div></li>');}}
_self.sendOmnitureData();}
$(".loader").hide();}
a.prototype.sendOmnitureData=function(){s.pageName=this.name+":BrandInfoPage";var s_code=s.t();if(s_code)document.write(s_code);}
gCjs.register("block_brandPage",a);
