function cpSeeMoreEvent(_1){this.moduleData=_1;this.seemoreFadeEffect=null;this.init=function(){var _2=this,_3=_2.moduleData.moduleContainer;_3.addEvent("click:relay(.cp-seemore)",function(){_2.processSeeMoreClickEvent(this);});};this.processSeeMoreClickEvent=function(_4){var _5=_4,_6=this.moduleData,_7;_7=(_6.seemoreAnchor)?_5.getPrevious():_5.getNext();if(_6.seemoreUseAjax){if(_5.getAttribute("loaded")!=1){var _8=_5.getElement(".cp-loader");var _9=document.id("cp"+_6.moduleID+"_full_urls_params").getAttribute("data-value");_9+="&action_type=seemore&cp_loading_seemore_with_ajax=1&data_value="+_5.getAttribute("data-value")+"&data_type="+_5.getAttribute("data-type")+"&ptids="+_6.productTypeIDs+"&module_id="+_6.moduleID;new Request({url:cp_fajax,method:"get",data:_9,onRequest:function(){_5.setProperty("loaded",1);_8.removeClass("hid");},onComplete:function(_a){if(_a){_8.destroy();_7.innerHTML=_a;}else{_5.destroy();}}}).send();}}if(_7.hasClass("hid")){_5.getFirst().innerHTML="-";_5.getElement(".cp-seemore-text").innerHTML=_6.seelessText;if(_6.seemoreUseFadein){if(this.seemoreFadeEffect){this.seemoreFadeEffect.stop();this.seemoreFadeEffect=null;}_7.setStyle("opacity",0);_7.removeClass("hid");var _b=new Fx.Tween(_7,{property:"opacity",duration:400,transition:Fx.Transitions.Quad.easeInOut});this.seemoreFadeEffect=_b;_b.start(0,1);}else{_7.removeClass("hid");}}else{_7.addClass("hid");_5.getFirst().innerHTML="+";_5.getElement(".cp-seemore-text").innerHTML=_6.seemoreText;}};};