var imagepreview={default_params:{},init:function(a){if(a){$.extend(this.default_params,a)}ip_global_img_list=[];var b=this.default_params.id;if(typeof b=="string"){if((ip_global_img_list=$("#"+b).find("img")).length==0){return}}else{if(typeof b=="object"&&b!=null){ip_global_img_list=$(b)}}this.fngeneratehtml();this.fnbindevent(ip_global_img_list)},fnbindevent:function(a){if(a.length==0){return}$(a).on("click",this.onclickevent);this.ondragevent($("#ip-img-preview"));$("#ip-img-preview").on("mousewheel dommousescroll",this.onmousescrollevent);$("#ip-img-floatshadow").on("click",function(){$("#ip-img-preview").hide();$("#ip-left").hide();$("#ip-right").hide();$("#ip-img-floatshadow").hide();$("#ip-img-preview").attr("src","")});$("#ip-left").hover(this.fnmouseover,this.fnmouseout).click(this.fnprev);$("#ip-right").hover(this.fnmouseover,this.fnmouseout).click(this.fnnext)},fngeneratehtml:function(){$("body").append('');$("body").append('');$("body").append('')},fnmouseover:function(){$(this).css("background","rgba(134, 134, 134,.3)");},fnmouseout:function(){$(this).css("background","");$(this).css("border","")},fnprev:function(){if(typeof(ip_global_cur)=="number"&&ip_global_cur>0){imagepreview.fnreset();$("#ip-img-preview").animate({left:"49%"},100);$("#ip-img-preview").attr("src",ip_global_img_list[--ip_global_cur].src);$("#ip-img-preview").animate({left:"50.5%"},100);$("#ip-img-preview").animate({left:"50%"},100);imagepreview.fnadjustmaxwidth()}},fnnext:function(){if(typeof(ip_global_cur)=="number"&&ip_global_cur