
DcxComMsg={DataList:new Array(),TopDataList:new Array(),PageIndex:1,TagId:1}
$(window).load(function(){Dcx.srs("ShowImager.css","/Css/MyApp/ShowImager.css")});DcxComMsg.ikr=function(a){var b=DcxComMsg.DataList;if(!ymr(b)){for(var i=0;i<b.length;i++){if(b[i].MsgId==a)return b[i]}}
var c=DcxComMsg.TopDataList;if(!ymr(c)){for(var i=0;i<c.length;i++){if(c[i].MsgId==a)return c[i]}}
return null}
DcxComMsg.uac=function(a){var b=$(a).parent();while(b.length>0){if(b.hasClass("WB_media_expand"))break;b=b.parent()}
b.prev().show();b.remove()};DcxComMsg.ggn=function(c,d){var e=$(c).parent().parent().parent().parent();e.hide();var d=parseInt($(c).attr("fileId"),10);var f=parseInt($(c).attr("msgId"),10);var c=DcxComMsg.ikr(f);if(ymr(c))return;var g=eval("("+c.FileJson+")");var h=null;var i=new nzy();i.append("<div class=\"WB_media_expand SW_fun2 S_line1 S_bg1\" style=\"\">\n");i.append("<div class=\"\" style=\"overflow:hidden;\">\n");i.append("<p class=\"medis_func S_txt3\"><a href=\"javascript:void(0);\" onclick=\"javascript:DcxComMsg.uac(this);\" class=\"retract\"><em class=\"W_ico12 ico_retract\"></em>收起</a><i class=\"W_vline\">|</i><a href=\"javascript:void(0);\" class=\"show_big\" target=\"_blank\"><em class=\"W_ico12 ico_showbig\"></em>查看大图</a><i class=\"W_vline\">|</i><a href=\"javascript:void(0);\" onclick=\"javascript:DcxComMsg.Rotate(this,'left');\" class=\"turn_left\"><em class=\"W_ico12 ico_turnleft\"></em>向左转</a><i class=\"W_vline\">|</i><a href=\"javascript:void(0);\"  onclick=\"javascript:DcxComMsg.Rotate(this,'right');\" class=\"turnRight\"><em class=\"W_ico12 ico_turnright\"></em>向右转</a></p>\n");i.append("<div class=\"pic_list_view\">\n");i.append("<div class=\"pic_show_box\" style=\"position: relative;\">\n");i.append("<ul class=\"clearfix smallcursor\"><img class=\"picloading\" style=\"display: none;\" src=\"/images/common/loading.gif\">");if(!ymr(g)&&g.length>0){for(var k=0;k<g.length;k++){var j=g[k];if(j.FileId==d){i.append("<li fileId=\""+j.FileId+"\" MsgId=\""+c.MsgId+"\" onclick=\"javascript:DcxComMsg.uac(this);\">\n");i.append(" <img isbigImg=1 title=\""+j.FileName+"\" src=\""+j.FilePath+"\" />");i.append("</li>\n");h=j.FilePath;break}}}
i.append("</ul>\n");i.append("<div style=\"top: 0px; left: 0px; display: none;\" class=\"W_layer\">\n");i.append("<div class=\"bg\"><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody><tr><td><div class=\"content\">\n");i.append("<a href=\"javascript:void(0);\" action-type=\"closeRecLayer\" class=\"W_close\"></a>\n");i.append("<div class=\"layer_view_morepic\">\n");i.append("<div class=\"W_tips clearfix\">\n");i.append("<p class=\"txt\"> 翻完啦！<a href=\"\" target=\"_blank\" node-type=\"toprofile\">看他的更多图片</a></p>\n");i.append("</div>\n");i.append("<div class=\"view_pic\" node-type=\"recBox\">\n");i.append("<ul class=\"pic_list clearfix\"><li><a href=\"javascript:void(0);\" class=\" current\"><img class=\"S_line2\" src=\"\" alt=\"\"></a></li></ul>");i.append("</div>\n");i.append("</div></div></td></tr></tbody></table>\n");i.append("</div>\n");i.append("</div>\n");i.append("</div>\n");i.append("<div class=\"pic_choose_box clearfix\">\n");i.append("<a href=\"javascript:void(0);\" class=\"arrow_left_small btn_pic_prevdis S_bg2\" title=\"上一页\"><em class=\"ico_pic_prev S_txt3\">&lt;</em></a>\n");i.append("<div class=\"stage_box\"><ul class=\"choose_box clearfix\" style=\"margin-left: 1px;\">");if(!ymr(g)&&g.length>0){for(var k=0;k<g.length;k++){var j=g[k];if(j.FileTypeId==2){i.append("<li fileId=\""+j.FileId+"\" MsgId=\""+c.MsgId+"\" >\n");i.append("<a href=\"javascript:void(0);\" style=\"display:inherit;\" class=\" "+(j.FileId==d?"current":"")+"\"><img title=\""+j.FileName+"\" class=\"S_line2\" src=\""+Dcx.File.trv(j.FilePath)+"\" /></a>");i.append("</li>\n");t1=true}}}
i.append("</ul></div>\n");i.append("<a href=\"javascript:void(0);\"class=\"arrow_right_small btn_pic_prevdis S_bg2\"  title=\"下一页\"><em class=\"ico_pic_next S_txt3\">&gt;</em></a></div>\n");i.append("</div>\n");i.append("</div>\n");i.append("</div>\n");e.after(i.toString());var l=e.next();l.find("ul.choose_box").children().bind("click",function(){var a=$(this).find("img");var b=Dcx.File.fxg(a.attr("src"));l.find("ul.choose_box").find("a").removeClass("current");$(this).find("a").addClass("current");l.find("div.pic_show_box").find("ul").find("li:first").find("img").attr("src",b);l.find("p.medis_func").find("a.show_big").attr("href",b)});l.find("p.medis_func").find("a.show_big").attr("href",h)}
DcxComMsg.Rotate=function(a,p){var b=$(a).parent();while(b.length>0){if(b.hasClass("WB_media_expand"))break;b=b.parent()}
var c=b.find("img[isbigImg=1]").get(0);Dcx.Rotate(c,p)}
DcxComMsg.sly=function(a){if(ymr(a))a=new Array();if(ymr(a)||a.length<1){return null}
var b=new nzy();for(var i=0;i<a.length;i++){var c=a[i];var d=jbc(c.SenderId,2);b.append("<div class=\"WB_feed_type SW_fun  S_line2\" MsgId=\""+c.MsgId+"\" RcvId=\""+c.RcvId+"\" isMsg=1>\n");b.append("    <div class=\"WB_screen\">\n");b.append("        <a href=\"javascript:void(0);\" class=\"W_ico12 icon_choose\"></a>\n");b.append("    </div>\n");b.append("    <div class=\"WB_feed_datail S_line2 clearfix\">\n");b.append("        <div class=\"WB_face\">\n");b.append("            <a class=\"W_face_radius\" href=\"/fwsc\">\n");b.append("                <img src=\""+d+"\" width=\"50\" height=\"50\" namecard=\""+c.SenderName+"\" />\n");b.append("            </a>\n");b.append("        </div>\n");b.append("        <div class=\"WB_detail\" >\n");b.append("            <div class=\"WB_info\" >\n");b.append("                <span  namecard=\""+c.SenderName+"\" >"+c.SenderName+"</span>"+"<div isStar=\"1\" title=\"星标微邮\" style=\""+(c.TagId==1?"":"display:none;")+"float:right;width: 20px;height: 20px;background: url(/images/common/ico_attachment104470.png) no-repeat -94px -65px;\"></div>\n");b.append("            </div>\n");b.append("            <div class=\"WB_text\" node-type=\"feed_list_content\" isMsgText=1  style=\"");if(!isNaN(c.ColorId)&&c.ColorId>0)b.append("color:"+DcxComMsg.smo(c.ColorId)+";");b.append("\">\n");b.append("<a isTopHtml=1 title=\"取消置顶\" href=\"javascript:void(0);\" onclick=\"javascript:DcxComMsg.rbd("+c.MsgId+",this);\"  style=\""+(!c.IsTop?"display:none;":"")+"\" ><span class=\"W_ico20 ico_feedpin\"></span></a>\n");if(!ymr(c.Title))b.append("<span istitle=1 style=\"\">【"+c.Title+"】</span>");b.append(c.MsgContent+"</div>\n");if(!ymr(c.FileJson)){var e=null;try{e=eval("("+c.FileJson+")")}catch(err){}
if(!ymr(e)&&e.length>0){var f=new nzy();var g=new nzy();f.append("<ul class=\"WB_media_list clearfix\" style=\"\">\n");f.append("<li>\n");f.append("<div class=\"list_pic_list out_width\" style=\"height: 115px;\">\n");f.append("<ul class=\"pic_list clearfix inner_width\">\n");g.append("<ul class=\"WB_media_list clearfix\" style=\"padding: 0px 0 5px;\">\n");g.append("<li>\n");g.append("<div class=\"list_pic_list2 \">\n");g.append("<ul class=\"filecell unselect pic_list clearfix inner_width\">\n");var h=false;var j=false;for(var k=0;k<e.length;k++){var l=e[k];if(l.FileTypeId!=2){g.append("<li class=\"filecolumn\" fileId=\""+l.FileId+"\" MsgId=\""+c.MsgId+"\" >\n");g.append("<a class=\"f_type f_type_single\"><span class=\""+Dcx.ryk(l.FileTypeId)+"\" unselectable=\"on\"></span></a>\n");g.append("<div class=\"filedetail\" data-columnselect=\"1\">\n");g.append("<div onclick=\"Attach.rename(this);getTop().stopPropagation(event);\" class=\"filename\" >"+l.FileName+"</div>\n");g.append("<p class=\"graytext datasize\" data-columnselect=\"1\">"+Dcx.Utility.ucr(l.FileSize)+"</p>\n");g.append("</div>\n");g.append("<div class=\"operation\" onclick=\"\">\n");g.append("<ul class=\"btn_operation\">\n");g.append("<li><a class=\"ico_attach ico_odown\" title=\"下载\" onclick=\"Dcx.ped('"+escape(l.FilePath)+"',"+l.FileId+")\"></a></li>\n");g.append("</ul>\n");g.append("</div>\n");g.append("</li>\n");j=true}else{f.append("<li fileId=\""+l.FileId+"\" MsgId=\""+c.MsgId+"\" onclick=\"javascript:DcxComMsg.ggn(this);\">\n");f.append(" <img title=\""+l.FileName+"\" class=\"bigcursor\" src=\""+Dcx.File.trv(l.FilePath)+"\">");f.append("</li>\n");h=true}}
f.append("</ul>\n");f.append("</div>\n");f.append("</li>\n");f.append("</ul>\n");g.append("</ul>\n");g.append("</div>\n");g.append("</li>\n");g.append("</ul>\n");if(h)b.append(f.toString());if(j)b.append(g.toString())}}
b.append("<div class=\"WB_func clearfix\">\n");b.append("<div class=\"WB_handle\">\n");b.append("</div>\n");b.append("<div class=\"WB_from\" style=\"padding-top: 0px;\">\n");b.append("<a  href=\"javascript:void(0);\" class=\"S_link2 WB_time\">"+Dcx.Date.mnf(c.SentDate)+"</a>\n");b.append("</div>\n");b.append("</div>\n");b.append("<div class=\"WB_media_expand repeat S_line1 S_bg4\" style=\"display: none;\">\n");b.append("</div>\n");b.append("</div>\n");b.append("</div>\n");b.append("</div>\n")}
return b.toString()}//DcxComMsg.ikr=function(MsgId){DcxComMsg.hrk=function(a,b){var c=DcxComMsg.ikr(a);if(c!=null)return c[b];return null}DcxComMsg.twv=function(a,b,c){var d=DcxComMsg.DataList;if(!ymr(d)){for(var i=0;i<d.length;i++){if(d[i].MsgId==a){d[i][b]=c;return true}}}d=DcxComMsg.TopDataList;if(!ymr(d)){for(var i=0;i<d.length;i++){if(d[i].MsgId==a){d[i][b]=c;return true}}}return false}/