﻿(function(a){a.fn.hoverIntent=function(j,k){var b={sensitivity:7,interval:100,timeout:0};b=a.extend(b,k?{over:j,out:k}:j);var d,e,f,g,c=function(a){d=a.pageX;e=a.pageY},i=function(j,h){h.hoverIntent_t=clearTimeout(h.hoverIntent_t);if(Math.abs(f-d)+Math.abs(g-e)<b.sensitivity){a(h).unbind("mousemove",c);h.hoverIntent_s=1;return b.over.apply(h,[j])}else{f=d;g=e;h.hoverIntent_t=setTimeout(function(){i(j,h)},b.interval)}},l=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);a.hoverIntent_s=0;return b.out.apply(a,[c])},h=function(h){var e=jQuery.extend({},h),d=this;if(d.hoverIntent_t)d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if(h.type=="mouseenter"){f=e.pageX;g=e.pageY;a(d).bind("mousemove",c);if(d.hoverIntent_s!=1)d.hoverIntent_t=setTimeout(function(){i(e,d)},b.interval)}else{a(d).unbind("mousemove",c);if(d.hoverIntent_s==1)d.hoverIntent_t=setTimeout(function(){l(e,d)},b.timeout)}};return this.bind("mouseenter",h).bind("mouseleave",h)}})(jQuery);$(document).ready(function(){$(".menu .has-childs").click(function(b){if($(b.target).parent().hasClass("has-childs")){var a=$(this).find(".submenu");$(this).toggleClass("child-opened");a.slideToggle("fast");return false}});InitMenu();$(".search-input input:text").click(function(){$(this).val("")});$(window).scroll(function(){var a=$("#menu-column"),c=a.data("original_top");if(!c){c=a.offset().top;a.data("original_top",c)}var b=a.data("original_margin_top");if(!b){b=a.css("margin-top");a.data("original_margin_top",b)}var d=28;if($(window).scrollTop()>c-d)a.css({position:"fixed","margin-top":d+7+"px"});else a.css({position:"static","margin-top":b})});function a(){var a="";$(".filter-box .active").each(function(){a+=$(this).attr("id")+","});jQuery.ajax({url:"/Ajax.aspx",data:"func=FilterEmployees&args="+a+"&empcontainerid="+$("#empcontainerid").val(),success:function(a){jQuery("div.workers").html(a)},error:function(){}})}if($("body").hasClass("start-page"))$(".box").hoverIntent(config);else if($("body").hasClass("specialities-page"))$(".detail-box .detail-box-content li").click(function(){if($(this).hasClass("active")){$(this).removeClass("active");$(".detail-box .detail-info").slideUp("fast")}else{window.location.hash="!id="+$(this).attr("id");jQuery.ajax({url:"/Ajax.aspx",data:"func=FilterSpecBranch&args="+$(this).attr("ID"),success:function(a){jQuery("div.detail-info").html(a)},error:function(){}});$(".detail-box .detail-box-content .active").removeClass("active");$(this).addClass("active");$(".detail-box .detail-info").slideDown("fast")}});else if($("body").hasClass("lawyers-page")){if($.browser.msie&&parseInt($.browser.version,10)<9)SlideWorkers();else RotateWorkers();$(".filter-box .filter-box-content li").click(function(){$(this).toggleClass("active");a()});$(".search-box  li").click(function(){$(this).addClass("active");$(".role-box li.active").removeClass("active");a()});$(".role-box  li").click(function(){$(".role-box li.active").removeClass("active");$(".search-box li.active").removeClass("active");$(this).addClass("active");a()})}else if($("body").hasClass("detail-page"))$(".specialities .speciality-row-header").click(function(){var a=$(this).parent(".speciality-row");if(a.hasClass("active")){a.removeClass("active");a.children(".speciality-desc").slideUp("fast")}else{$(".specialities .speciality-row.active .speciality-desc").slideUp("fast");$(".specialities .speciality-row.active").removeClass("active");a.addClass("active");a.children(".speciality-desc").slideDown("fast")}});else if($("body").hasClass("bankrupties-page")){$(".detail-info .detail-info-part-header").live("click",function(){var a=$(this).parent();if($(a).hasClass("active")){$(a).removeClass("active");$(a).find(".detail-info-part-desc").slideUp("fast")}else{window.location.hash="!id="+$(this).attr("id").split("bc")[1];$(".detail-info .detail-info-part.active .detail-info-part-desc").slideUp("fast");$(".detail-info .detail-info-part.active").removeClass("active");$(a).addClass("active");$(a).find(".detail-info-part-desc").slideDown("fast")}});if($.browser.msie&&parseInt($.browser.version,10)<9)SlideWorkers();else RotateWorkers()}else if($("body").hasClass("news-page"))$(".news-info-part").click(function(){if($(this).hasClass("active")){$(this).removeClass("active");$(this).next(".news-desc").slideUp("fast");$(this).find(".news-short-desc").slideDown("fast");$(this).find(".sign-plus-red").fadeOut();$(this).find(".sign-plus").fadeIn()}else{$(".news-info .active").next(".news-desc").slideUp("fast");$(".news-info .active .news-short-desc").slideDown("fast");$(".news-info .active .sign-plus-red").fadeOut();$(".news-info .active .sign-plus").fadeIn();$(".news-info .active").removeClass("active");$(this).addClass("active");$(this).find(".sign-plus").fadeOut();$(this).find(".sign-plus-red").fadeIn();$(this).find(".news-short-desc").slideUp("fast");$(this).next(".news-desc").slideDown("fast")}});else if($("body").hasClass("blog-page")){$(".blog-box .read-more").click(function(){var a=$(this).parents(".blog-with-comments");$(".blog-with-comments.opened").not(a).each(function(){$(this).find(".replay-box").slideUp("fast");$(this).find(".comment-box").slideUp("fast");$(this).toggleClass("opened")});if(a.length!=0){var c=a.children(".comment-box"),b=a.children(".replay-box");if(a.hasClass("opened")){b.length!=0&&b.slideUp("fast");c.length!=0&&c.slideUp("fast")}else if(c.length!=0){c.slideDown("fast");b=$(".replay-box");b.appendTo(a);b.slideDown("fast");jQuery.ajax({url:"/Ajax.aspx",data:"func=increaseblogviews&blogpostid="+a.attr("id"),success:function(){},error:function(){}})}else{b=$(".replay-box");b.appendTo(a);b.slideDown("fast")}}$(a).toggleClass("opened")});$(".comment-box .scroll-replay").live("click",function(){replay=$(".replay-box");$("html, body").animate({scrollTop:$(replay).offset().top},1e3)})}else if($("body").hasClass("quotes-page")){$(".quote-answer-short").click(function(){var a=$(this).next();$(this).toggleClass("active");if(a.is(":visible"))a.slideUp("fast");else a.slideDown("fast")});$(".quote-box .read-more").click(function(){var a=$(this).parents(".quote-with-comments");$(".quote-with-comments.opened").not(a).each(function(){$(this).find(".replay-box").slideUp("fast");$(this).find(".comment-box").slideUp("fast");$(this).toggleClass("opened")});if(a.length!=0){var c=a.children(".comment-box"),b=a.children(".replay-box");if(a.hasClass("opened")){b.length!=0&&b.slideUp("fast");c.length!=0&&c.slideUp("fast")}else if(c.length!=0){c.slideDown("fast");b=$(".replay-box");b.appendTo(a);b.slideDown("fast");jQuery.ajax({url:"/Ajax.aspx",data:"func=increasequoteviews&quoteid="+a.attr("id"),success:function(){},error:function(){}})}else{b=$(".replay-box");b.appendTo(a);b.slideDown("fast")}}$(a).toggleClass("opened")});$(".comment-box .scroll-replay").live("click",function(){replay=$(".replay-box");$("html, body").animate({scrollTop:$(replay).offset().top},1e3)})}});function InitMenu(){var a=$(".active .submenu");if(a){a.parent().toggleClass("child-opened");a.css("display","block")}}var config={over:hi_over,timeout:50,out:hi_out};function hi_over(){$(this).find("div.box-content").children(".btn-down").fadeOut();$(this).find("div.box-info").slideDown("fast")}function hi_out(){$(this).find("div.box-content").children(".btn-down").fadeIn();$(this).find("div.box-info").slideUp("fast")}function SlideWorkers(){$(".worker").live("mouseenter",function(){$(".worker-data",this).stop().animate({top:"0px",left:"0px"},{queue:false,duration:300})});$(".worker").live("mouseleave",function(){$(".worker-data",this).stop().animate({top:"123px",left:"123px"},{queue:false,duration:300})})}function RotateWorkers(){$(".worker").live("mouseenter",function(){$(this).find(".worker-flip").stop().rotate3Di("flip",150,{direction:"clockwise",sideChange:workerSideChange});$(this).find(".worker-data").stop().rotate3Di("flip",150,{direction:"clockwise",sideChange:workerSideChange})});$(".worker").live("mouseleave",function(){$(this).find(".worker-data").stop().rotate3Di("unflip",150,{sideChange:workerSideChange});$(this).find(".worker-flip").stop().rotate3Di("unflip",150,{sideChange:workerSideChange})})}function workerSideChange(a){if(a){$(this).parent().find(".worker-flip").show();$(this).parent().find(".worker-data").hide()}else{$(this).parent().find(".worker-flip").hide();$(this).parent().find(".worker-data").show()}}function getParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),b=d.exec(window.location.href);if(b==null)return"";else{decodedValue=decodeURIComponent(b[1].replace(/\+/g," "));return decodedValue!=""?decodedValue:" "}}(function(a){var q="2.99";if(a.support==undefined)a.support={opacity:!a.browser.msie};function c(c){a.fn.cycle.debug&&b(c)}function b(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.expr[":"].paused=function(a){return a.cyclePause};a.fn.cycle=function(f,g){var e={s:this.selector,c:this.context};if(this.length===0&&f!="stop"){if(!a.isReady&&e.s){b("DOM not ready, queuing slideshow");a(function(){a(e.s,e.c).cycle(f,g)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var j=k(this,f,g);if(j===false)return;j.updateActivePagerLink=j.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var p=a(this),o=j.slideExpr?a(j.slideExpr,this):p.children(),n=o.get();if(n.length<2){b("terminating; too few slides: "+n.length);return}var i=m(p,o,n,j,e);if(i===false)return;var l=i.continuous?10:h(n[i.currSlide],n[i.nextSlide],i,!i.backwards);if(l){l+=i.delay||0;if(l<10)l=10;c("first timeout: "+l);this.cycleTimeout=setTimeout(function(){d(n,i,0,!j.backwards)},l)}})};function k(e,c,g){if(e.cycleStop==undefined)e.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==String){switch(c){case"destroy":case"stop":var h=a(e).data("cycle.opts");if(!h)return false;e.cycleStop++;e.cycleTimeout&&clearTimeout(e.cycleTimeout);e.cycleTimeout=0;a(e).removeData("cycle.opts");c=="destroy"&&o(h);return false;case"toggle":e.cyclePause=e.cyclePause===1?0:1;i(e.cyclePause,g,e);return false;case"pause":e.cyclePause=1;return false;case"resume":e.cyclePause=0;i(false,g,e);return false;case"prev":case"next":var h=a(e).data("cycle.opts");if(!h){b('options not found, "prev/next" ignored');return false}a.fn.cycle[c](h);return false;default:c={fx:c}}return c}else if(c.constructor==Number){var f=c;c=a(e).data("cycle.opts");if(!c){b("options not found, can not advance slide");return false}if(f<0||f>=c.elements.length){b("invalid slide index: "+f);return false}c.nextSlide=f;if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}if(typeof g=="string")c.oneTimeFx=g;d(c.elements,c,1,f>=c.currSlide);return false}return c;function i(f,g,e){if(!f&&g===true){var c=a(e).data("cycle.opts");if(!c){b("options not found, can not resume");return false}if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}d(c.elements,c,1,!c.backwards)}}}function g(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function o(b){b.next&&a(b.next).unbind(b.prevNextEvent);b.prev&&a(b.prev).unbind(b.prevNextEvent);(b.pager||b.pagerAnchorBuilder)&&a.each(b.pagerAnchors||[],function(){this.unbind().remove()});b.pagerAnchors=null;b.destroy&&b.destroy(b)}function m(m,o,h,p,z){var c=a.extend({},a.fn.cycle.defaults,p||{},a.metadata?m.metadata():a.meta?m.data():{});if(c.autostop)c.countdown=c.autostopCount||h.length;var E=m[0];m.data("cycle.opts",c);c.$cont=m;c.stopCount=E.cycleStop;c.elements=h;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];!a.support.opacity&&c.cleartype&&c.after.push(function(){g(this,c)});c.continuous&&c.after.push(function(){d(h,c,0,!c.backwards)});j(c);!a.support.opacity&&c.cleartype&&!c.cleartypeNoBg&&f(o);m.css("position")=="static"&&m.css("position","relative");c.width&&m.width(c.width);c.height&&c.height!="auto"&&m.height(c.height);if(c.startingSlide)c.startingSlide=parseInt(c.startingSlide);else if(c.backwards)c.startingSlide=h.length-1;if(c.random){c.randomMap=[];for(var x=0;x<h.length;x++)c.randomMap.push(x);c.randomMap.sort(function(){return Math.random()-.5});c.randomIndex=1;c.startingSlide=c.randomMap[1]}else if(c.startingSlide>=h.length)c.startingSlide=0;c.currSlide=c.startingSlide||0;var k=c.startingSlide;o.css({position:"absolute",top:0,left:0}).hide().each(function(b){var d;if(c.backwards)d=k?b<=k?h.length+(b-k):k-b:h.length-b;else d=k?b>=k?h.length-(b-k):k-b:h.length-b;a(this).css("z-index",d)});a(h[k]).css("opacity",1).show();g(h[k],c);c.fit&&c.width&&o.width(c.width);c.fit&&c.height&&c.height!="auto"&&o.height(c.height);var C=c.containerResize&&!m.innerHeight();if(C){for(var s=0,r=0,y=0;y<h.length;y++){var t=a(h[y]),u=t[0],w=t.outerWidth(),v=t.outerHeight();if(!w)w=u.offsetWidth||u.width||t.attr("width");if(!v)v=u.offsetHeight||u.height||t.attr("height");s=w>s?w:s;r=v>r?v:r}s>0&&r>0&&m.css({width:s+"px",height:r+"px"})}c.pause&&m.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(i(c)===false)return false;var A=false;p.requeueAttempts=p.requeueAttempts||0;o.each(function(){var d=a(this);this.cycleH=c.fit&&c.height?c.height:d.height()||this.offsetHeight||this.height||d.attr("height")||0;this.cycleW=c.fit&&c.width?c.width:d.width()||this.offsetWidth||this.width||d.attr("width")||0;if(d.is("img")){var g=a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,f=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,h=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH==0&&this.cycleW==0&&!this.complete;if(g||f||h||e)if(z.s&&c.requeueOnImageNotLoaded&&++p.requeueAttempts<100){b(p.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(z.s,z.c).cycle(p)},c.requeueTimeout);A=true;return false}else b("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(A)return false;c.cssBefore=c.cssBefore||{};c.cssAfter=c.cssAfter||{};c.cssFirst=c.cssFirst||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};o.not(":eq("+k+")").css(c.cssBefore);a(o[k]).css(c.cssFirst);if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String)c.speed=a.fx.speeds[c.speed]||parseInt(c.speed);if(!c.sync)c.speed=c.speed/2;var D=c.fx=="none"?0:c.fx=="shuffle"?500:250;while(c.timeout-c.speed<D)c.timeout+=c.speed}if(c.easing)c.easeIn=c.easeOut=c.easing;if(!c.speedIn)c.speedIn=c.speed;if(!c.speedOut)c.speedOut=c.speed;c.slideCount=h.length;c.currSlide=c.lastSlide=k;if(c.random){if(++c.randomIndex==h.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else if(c.backwards)c.nextSlide=c.startingSlide==0?h.length-1:c.startingSlide-1;else c.nextSlide=c.startingSlide>=h.length-1?0:c.startingSlide+1;if(!c.multiFx){var B=a.fn.cycle.transitions[c.fx];if(a.isFunction(B))B(m,o,c);else if(c.fx!="custom"&&!c.multiFx){b("unknown transition: "+c.fx,"; slideshow terminating");return false}}var q=o[k];c.before.length&&c.before[0].apply(q,[q,q,c,true]);c.after.length&&c.after[0].apply(q,[q,q,c,true]);c.next&&a(c.next).bind(c.prevNextEvent,function(){return e(c,1)});c.prev&&a(c.prev).bind(c.prevNextEvent,function(){return e(c,0)});(c.pager||c.pagerAnchorBuilder)&&n(h,c);l(c,h);return c}function j(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function i(d){var e,g,f=a.fn.cycle.transitions;if(d.fx.indexOf(",")>0){d.multiFx=true;d.fxs=d.fx.replace(/\s*/g,"").split(",");for(e=0;e<d.fxs.length;e++){var h=d.fxs[e];g=f[h];if(!g||!f.hasOwnProperty(h)||!a.isFunction(g)){b("discarding unknown transition: ",h);d.fxs.splice(e,1);e--}}if(!d.fxs.length){b("No valid transitions named; slideshow terminating.");return false}}else if(d.fx=="all"){d.multiFx=true;d.fxs=[];for(p in f){g=f[p];f.hasOwnProperty(p)&&a.isFunction(g)&&d.fxs.push(p)}}if(d.multiFx&&d.randomizeEffects){var i=Math.floor(Math.random()*20)+30;for(e=0;e<i;e++){var j=Math.floor(Math.random()*d.fxs.length);d.fxs.push(d.fxs.splice(j,1)[0])}c("randomized fx sequence: ",d.fxs)}return true}function l(b,c){b.addSlide=function(h,g){var d=a(h),e=d[0];if(!b.autostopCount)b.countdown++;c[g?"unshift":"push"](e);b.els&&b.els[g?"unshift":"push"](e);b.slideCount=c.length;d.css("position","absolute");d[g?"prependTo":"appendTo"](b.$cont);if(g){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&f(d);b.fit&&b.width&&d.width(b.width);b.fit&&b.height&&b.height!="auto"&&d.height(b.height);e.cycleH=b.fit&&b.height?b.height:d.height();e.cycleW=b.fit&&b.width?b.width:d.width();d.css(b.cssBefore);(b.pager||b.pagerAnchorBuilder)&&a.fn.cycle.createPagerAnchor(c.length-1,e,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(d);else d.hide()}}a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)};function d(f,b,j,l){if(j&&b.busy&&b.manualTrump){c("manualTrump in go(), stopping active transition");a(f).stop(true,true);b.busy=0}if(b.busy){c("transition active, ignoring new tx request");return}var i=b.$cont[0],g=f[b.currSlide],e=f[b.nextSlide];if(i.cycleStop!=b.stopCount||i.cycleTimeout===0&&!j)return;if(!j&&!i.cyclePause&&!b.bounce&&(b.autostop&&--b.countdown<=0||b.nowrap&&!b.random&&b.nextSlide<b.currSlide)){b.end&&b.end(b);return}var o=false;if((j||!i.cyclePause)&&b.nextSlide!=b.currSlide){o=true;var m=b.fx;g.cycleH=g.cycleH||a(g).height();g.cycleW=g.cycleW||a(g).width();e.cycleH=e.cycleH||a(e).height();e.cycleW=e.cycleW||a(e).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length)b.lastFx=0;m=b.fxs[b.lastFx];b.currFx=m}if(b.oneTimeFx){m=b.oneTimeFx;b.oneTimeFx=null}a.fn.cycle.resetState(b,m);b.before.length&&a.each(b.before,function(c,a){if(i.cycleStop!=b.stopCount)return;a.apply(e,[g,e,b,l])});var p=function(){b.busy=0;a.each(b.after,function(c,a){if(i.cycleStop!=b.stopCount)return;a.apply(e,[g,e,b,l])})};c("tx firing("+m+"); currSlide: "+b.currSlide+"; nextSlide: "+b.nextSlide);b.busy=1;if(b.fxFn)b.fxFn(g,e,b,p,l,j&&b.fastOnEvent);else if(a.isFunction(a.fn.cycle[b.fx]))a.fn.cycle[b.fx](g,e,b,p,l,j&&b.fastOnEvent);else a.fn.cycle.custom(g,e,b,p,l,j&&b.fastOnEvent)}if(o||b.nextSlide==b.currSlide){b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==f.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex];if(b.nextSlide==b.currSlide)b.nextSlide=b.currSlide==b.slideCount-1?0:b.currSlide+1}else if(b.backwards){var k=b.nextSlide-1<0;if(k&&b.bounce){b.backwards=!b.backwards;b.nextSlide=1;b.currSlide=0}else{b.nextSlide=k?f.length-1:b.nextSlide-1;b.currSlide=k?0:b.nextSlide+1}}else{var k=b.nextSlide+1==f.length;if(k&&b.bounce){b.backwards=!b.backwards;b.nextSlide=f.length-2;b.currSlide=f.length-1}else{b.nextSlide=k?0:b.nextSlide+1;b.currSlide=k?f.length-1:b.nextSlide-1}}}o&&b.pager&&b.updateActivePagerLink(b.pager,b.currSlide,b.activePagerClass);var n=0;if(b.timeout&&!b.continuous)n=h(f[b.currSlide],f[b.nextSlide],b,l);else if(b.continuous&&i.cyclePause)n=10;if(n>0)i.cycleTimeout=setTimeout(function(){d(f,b,0,!b.backwards)},n)}a.fn.cycle.updateActivePagerLink=function(d,c,b){a(d).each(function(){a(this).children().removeClass(b).eq(c).addClass(b)})};function h(d,e,a,f){if(a.timeoutFn){var b=a.timeoutFn.call(d,d,e,a,f);while(a.fx!="none"&&b-a.speed<250)b+=a.speed;c("calculated timeout: "+b+"; speed: "+a.speed);if(b!==false)return b}return a.timeout}a.fn.cycle.next=function(a){e(a,1)};a.fn.cycle.prev=function(a){e(a,0)};function e(b,f){var e=f?1:-1,c=b.elements,i=b.$cont[0],g=i.cycleTimeout;if(g){clearTimeout(g);i.cycleTimeout=0}if(b.random&&e<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=c.length-2;else if(b.randomIndex==-1)b.randomIndex=c.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else{b.nextSlide=b.currSlide+e;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=c.length-1}else if(b.nextSlide>=c.length){if(b.nowrap)return false;b.nextSlide=0}}var h=b.onPrevNextEvent||b.prevNextClick;a.isFunction(h)&&h(e>0,b.nextSlide,c[b.nextSlide]);d(c,b,1,f);return false}function n(c,b){var d=a(b.pager);a.each(c,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,c,b)});b.updateActivePagerLink(b.pager,b.startingSlide,b.activePagerClass)}a.fn.cycle.createPagerAnchor=function(g,k,h,j,b){var f;if(a.isFunction(b.pagerAnchorBuilder)){f=b.pagerAnchorBuilder(g,k);c("pagerAnchorBuilder("+g+", el) returned: "+f)}else f='<a href="#">'+(g+1)+"</a>";if(!f)return;var e=a(f);if(e.parents("body").length===0){var i=[];if(h.length>1){h.each(function(){var b=e.clone(true);a(this).append(b);i.push(b[0])});e=a(i)}else e.appendTo(h)}b.pagerAnchors=b.pagerAnchors||[];b.pagerAnchors.push(e);e.bind(b.pagerEvent,function(h){h.preventDefault();b.nextSlide=g;var f=b.$cont[0],c=f.cycleTimeout;if(c){clearTimeout(c);f.cycleTimeout=0}var e=b.onPagerEvent||b.pagerClick;a.isFunction(e)&&e(b.nextSlide,j[b.nextSlide]);d(j,b,1,b.currSlide<g)});!/^click/.test(b.pagerEvent)&&!b.allowPagerClickBubble&&e.bind("click.cycle",function(){return false});b.pauseOnPagerHover&&e.hover(function(){b.$cont[0].cyclePause++},function(){b.$cont[0].cyclePause--})};a.fn.cycle.hopsFromLast=function(c,e){var d,a=c.lastSlide,b=c.currSlide;if(e)d=b>a?b-a:c.slideCount-a;else d=b<a?a-b:a+c.slideCount-b;return d};function f(d){c("applying clearType background-color hack");function b(a){a=parseInt(a).toString(16);return a.length<2?"0"+a:a}function e(d){for(;d&&d.nodeName.toLowerCase()!="html";d=d.parentNode){var c=a.css(d,"background-color");if(c&&c.indexOf("rgb")>=0){var e=c.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(c&&c!="transparent")return c}return"#ffffff"}d.each(function(){a(this).css("background-color",e(this))})}a.fn.cycle.commonReset=function(d,c,b,g,f,e){a(b.elements).not(d).hide();if(typeof b.cssBefore.opacity=="undefined")b.cssBefore.opacity=1;b.cssBefore.display="block";if(b.slideResize&&g!==false&&c.cycleW>0)b.cssBefore.width=c.cycleW;if(b.slideResize&&f!==false&&c.cycleH>0)b.cssBefore.height=c.cycleH;b.cssAfter=b.cssAfter||{};b.cssAfter.display="none";a(d).css("zIndex",b.slideCount+(e===true?1:0));a(c).css("zIndex",b.slideCount+(e===true?0:1))};a.fn.cycle.custom=function(k,l,b,m,n,c){var h=a(k),i=a(l),e=b.speedIn,d=b.speedOut,g=b.easeIn,f=b.easeOut;i.css(b.cssBefore);if(c){if(typeof c=="number")e=d=c;else e=d=1;g=f=null}var j=function(){i.animate(b.animIn,e,g,function(){m()})};h.animate(b.animOut,d,f,function(){h.css(b.cssAfter);!b.sync&&j()});b.sync&&j()};a.fn.cycle.transitions={fade:function(d,c,b){c.not(":eq("+b.currSlide+")").css("opacity",0);b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.cssBefore.opacity=0});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return q};a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!a.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);(function(a){var b={direction:function(a){return a<0?-1:1},degrees:function(a){return Math.floor(Math.abs(a))%360},scale:function(a){return(1-a%180/90)*(a>=180?-1:1)}};a.fx.step.rotate3Di=function(c){direction=b.direction(c.now);degrees=b.degrees(c.now);scale=b.scale(degrees);if(c.options&&typeof c.options.sideChange!="undefined"){if(c.options.sideChange){var d=a(c.elem).data("rotate3Di.prevScale");if(scale*d<=0){c.options.sideChange.call(c.elem,scale>0||d<0);a(c.elem).data("rotate3Di.prevScale",a(c.elem).data("rotate3Di.prevScale")*-1)}}scale=Math.abs(scale)}a(c.elem).data("rotate3Di.degrees",direction*degrees);a(c.elem).css("transform","skew(0deg, "+direction*degrees+"deg) scale("+scale+", 1)")};var c=a.fx.prototype.cur;a.fx.prototype.cur=function(){if(this.prop=="rotate3Di"){var d=a(this.elem).css("transform");if(d){var b=d.match(/, (-?[0-9]+)deg\)/);return b&&b[1]?parseInt(b[1]):0}}return c.apply(this,arguments)};a.fn.rotate3Di=function(c,e,d){if(typeof e=="undefined")e=0;if(typeof d=="object")a.extend(d,{duration:e});else d={duration:e};if(c=="toggle")if(a(this).data("rotate3Di.flipped"))c="unflip";else c="flip";if(c=="flip"){a(this).data("rotate3Di.flipped",true);var f=-1;if(typeof d=="object"&&d.direction&&d.direction=="clockwise")f=1;c=f*180}else if(c=="unflip"){a(this).data("rotate3Di.flipped",false);c=0}var g=a(this).data("rotate3Di.degrees")||0;a(this).data("rotate3Di.prevScale",b.scale(b.degrees(g)));a(this).animate({rotate3Di:c},d)}})(jQuery);(function(a){function b(c){var b=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],a;while(a=b.shift())if(typeof c.style[a]!="undefined")return a;return"transform"}var c=a.fn.css;a.fn.css=function(d,e){if(typeof a.props.transform=="undefined"&&(d=="transform"||typeof d=="object"&&typeof d.transform!="undefined"))a.props.transform=b(this.get(0));if(a.props.transform!="transform")if(d=="transform"){d=a.props.transform;if(typeof e=="undefined"&&jQuery.style)return jQuery.style(this.get(0),d)}else if(typeof d=="object"&&typeof d.transform!="undefined"){d[a.props.transform]=d.transform;delete d.transform}return c.apply(this,arguments)}})(jQuery);eval(function(e,d,a,c,b,f){b=function(a){return(a<d?"":b(parseInt(a/d)))+((a=a%d)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(a--)f[b(a)]=c[a]||b(a);c=[function(a){return f[a]}];b=function(){return"\\w+"};a=1}while(a--)if(c[a])e=e.replace(new RegExp("\\b"+b(a)+"\\b","g"),c[a]);return e}("(6($){17.2m.27=6(b){4 c=b.2g||1j.22;5(!c&&b.J==Y)x F;j.A=$.2a({E:\"E\",1h:'21',1b:1T},b);5(b.C)j.C.1O(b.C);4 q=b.J!=Y?b.J.K().X(/[\\s,\\+\\.]+/):j.V(c,j.C);5(q&&q.1y(\"\")){j.1v(q);x F.G(6(){4 a=F;5(a==1j)a=$(\"P\")[0];j.1n(a,q)})}1l x F};4 j={A:{},m:[],C:[[/^9:\\/\\/(k\\.)?23\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?B\\.1X\\./i,/p=([^&]+)/i],[/^9:\\/\\/(k\\.)?B\\.1S\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?B\\.1R\\./i,/1Q=([^&]+)/i],[/^9:\\/\\/(k\\.)?B\\.1P\\./i,/1N=([^&]+)/i],[/^9:\\/\\/(k\\.)?1M\\.Z/i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?1L\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?1K\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?B\\.1H\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?1G\\./i,/q=([^&]+)/i],[/^9:\\/\\/(k\\.)?1F\\.Z/i,/([^\\?\\/]+)(?:\\?.*)$/i]],N:{},V:6(b,c){b=1D(b);4 d=1A;$.G(c,6(i,n){5(n[0].1w(b)){4 a=b.v(n[1]);5(a){d=a[1].K();x 2k}}});5(d){d=d.Q(/(\\'|\")/,'\\$1');d=d.X(/[\\s,\\+\\.]+/)}x d},H:[[/[\\1r-\\1q\\1s-\\2c]/7,'a'],[/[\\1o\\29-\\1m]/7,'c'],[/[\\28-\\26]/7,'e'],[/[\\25-\\1i]/7,'i'],[/\\1g/7,'n'],[/[\\24-\\1f\\1t]/7,'o'],[/[\\1e-\\20]/7,'s'],[/[\\1Y-\\1c]/7,'t'],[/[\\1U-\\1a]/7,'u'],[/\\19/7,'y'],[/[\\16\\15\\14\\13]/7,'\\'']],L:/[\\16\\15\\1r-\\1q\\1o-\\1i\\1g-\\1f\\1t-\\1a\\19\\1s-\\1m\\1e-\\1c\\14\\13]/7,M:6(q){j.L.11=0;5(j.L.1w(q)){12(4 i=0,l=j.H.z;i<l;i++)q=q.Q(j.H[i][0],j.H[i][1])}x q},10:/((?:\\\\{2})*)([[\\]{}*?|])/g,1v:6(a){4 b=[],m;$.G(a,6(i,n){5(n=j.M(n).Q(j.10,\"$1\\\\$2\"))b.1J(n)});m=b.1y(\"|\");1I(j.A.E){18\"E\":m='\\\\b(?:'+m+')\\\\b';1z;18\"1k\":m='\\\\b\\\\w*('+m+')\\\\w*\\\\b';1z}j.m=1V 1W(m,\"1E\");$.G(b,6(i,n){j.N[n]=j.A.1h+(j.A.1b?i+1:'')})},W:/s(?:1C|1Z)|1B/i,1n:6(a,b){4 c=j.A,D,U;D=c.1d?$(c.1d):$(\"P\");5(!D.z)D=$(\"P\");U=c.1x?$(c.1x):$([]);D.G(6(){j.T(F,b,U)})},T:6(a,b,c){5(c.r(a)!=-1)x;4 d=j.A.E==\"1k\"?1:0;12(4 e=0,S=a.R.z;e<S;e++){4 f=a.R[e];5(f.O!=8){5(f.O==3){4 g=f.2j,1u=j.M(g);4 h=\"\",v,r=0;j.m.11=0;2i(v=j.m.2h(1u)){h+=g.1p(r,v.r-r)+'<I 2f=\"'+j.N[v[d].K()]+'\">'+g.1p(v.r,v[0].z)+\"</I>\";r=v.r+v[0].z}5(h){h+=g.2e(r);4 i=$.2d([],$(\"<I>\"+h+\"</I>\")[0].R);S+=i.z-1;e+=i.z-1;$(f).2l(i).2b()}}1l{5(f.O==1&&f.2n.B(j.W)==-1)j.T(f,b,c)}}}}}})(17)",62,148,"||||var|if|function|ig||http|||||||||||www||regex|||||index||||match||return||length|options|search|engines|elHighlight|exact|this|each|regexAccent|span|keys|toLowerCase|matchAccent|replaceAccent|subs|nodeType|body|replace|childNodes|endIndex|hiliteTree|noHighlight|decodeURL|nosearch|split|undefined|com|escapeRegEx|lastIndex|for|u2019|u2018|x92|x91|jQuery|case|xFF|xDC|style_name_suffix|u0167|highlight|u015A|xD6|xD1|style_name|xCF|document|whole|else|u010D|hiliteElement|xC7|substr|xC5|xC0|u0100|xD8|textNoAcc|buildReplaceTools|test|nohighlight|join|break|null|textarea|cript|decodeURIComponent|gi|technorati|alltheweb|lycos|switch|push|feedster|altavista|ask|userQuery|unshift|aol|query|live|msn|true|xD9|new|RegExp|yahoo|u0162|tyle|u0161|hilite|referrer|google|xD2|xCC|xCB|SearchHighlight|xC8|u0106|extend|remove|u0105|merge|substring|class|debug_referrer|exec|while|data|false|before|fn|nodeName".split("|"),0,{}))
