var n, img, imgb, title, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_SlickX_js_48654_N = 0;
var inc_msg_JsShowImg_SlickX_js_48654_ShowN = 0;
var inc_msg_JsShowImg_SlickX_js_48654_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_48654_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_48654_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_SlickX_js_48654_N = n;
title = $('#meMsg_48654_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_48654_ItemContent_'+n); cont = (cont.length) ? '
');
$('#meMsg_48654_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_48654_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_48654)!='undefined') if (jsvJsShowImgPosD_48654!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_48654);
if (typeof(jsvJsShowImgPos_48654)!='undefined') {
if (jsvJsShowImgPos_48654.charAt(0)=='O') {
$('#meMsg_48654_MsgListBlk .meMsg_MsgTitle img').prop('src', space);
ns_setCSS_('#meMsg_48654_MsgListBlk .meMsg_MsgTitle img { border-radius:50%; border:5px solid #eeeeee; }');
ns_setCSS_('#meMsg_48654_MsgListBlk .meMsg_MsgTitle img.b1 { border:5px solid #ffffff; }');
jsvJsShowImgPos_48654 = jsvJsShowImgPos_48654.substr(1, jsvJsShowImgPos_48654.length);
}
switch(jsvJsShowImgPos_48654) {
case 'hide':
$('#meMsg_48654_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_48654_MsgListBlk .meMsg_MsgTitle img').attr('src', wdbSpace);
break;
case 'left': case 'right':
$('#meMsg_48654_MsgList').addClass(jsvJsShowImgPos_48654).css('float', ((jsvJsShowImgPos_48654=='right')?'left':'right'));
$('#meMsg_48654_MsgBlkZ').css('float', jsvJsShowImgPos_48654);
break;
case 'bindbottomwin':
JsShowImg_48654_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_48654_bindbottomwin_(); }).resize(function(){ JsShowImg_48654_bindbottomwin_(); });
setTimeout('JsShowImg_48654_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_48654_MsgList').outerHeight()+jsvJsShowImgPosD;
$('#meMsg_48654_MsgList').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
JsShowImg_48654_bindleft_();
$(window).resize(function(){ JsShowImg_48654_bindleft_(); });
break;
case 'bindright':
JsShowImg_48654_bindright_();
$(window).resize(function(){ JsShowImg_48654_bindright_(); });
break;
default:
break;
}
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('48654');
}, 500);
});
window.JsShowImg_48654_bindleft_ = function () { // function begin
$('#meMsg_48654_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_48654_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_48654_MsgBlkZ').outerHeight();
$('#meMsg_48654_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_48654_bindright_ = function () { // function begin
$('#meMsg_48654_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_48654_MsgBlkZ').offset();
var h = $('#meMsg_48654_MsgBlkZ').outerHeight();
var w = $('#meMsg_48654_MsgList').outerWidth();
p.left = p.left + $('#meMsg_48654_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_48654_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_48654_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_48654)!='undefined') if (jsvJsShowImgPosD_48654!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_48654);
$('#meMsg_48654_MsgList').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#meMsg_48654_MsgBlkZ').offset();
var w = $('#meMsg_48654_MsgBlkZ').outerWidth();
var h = $('#meMsg_48654_MsgList').outerHeight();
p.top = p.top + $('#div_48654_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_48654_MsgList').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_48654_ItemFile_'+inc_msg_JsShowImg_SlickX_js_48654_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_48654_MsgList').css(p).outerWidth(w);
} // function end
window.JsShowImg_48654_SlickX_resize_ = function () { // function begin
var em = $('#meMsg_48654_MsgBlkZ .divJsShowImgBList');
em.hide();
var w = em.parent().width(); if (w > $(window).width()) w = $(window).width();
em.css({ margin:'0 auto', width:w });
em.show();
} // function end
window.JsShowImg_48654_SlickX_init_ = function () { // function begin
var sec = parseFloat(jsvJsShowImgSec_48654)*1000;
$('#meMsg_48654_MsgBlkZ .divJsShowImgBList').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, autoplay: true, autoplaySpeed: sec })
.on('afterChange', function(e, slick, idx){
idx++;
$('#meMsg_48654_MsgListBlk .meMsg_MsgTitle img').each(function(){ this.className = 'b0'; });
$('#meMsg_48654_ItemImg_'+idx)[0].className = 'b1';
});
$('#meMsg_48654_MsgBlkZ .divJsShowImgBList').fadeIn();
} // function end
$(document).ready(function(){ JsShowImg_48654_SlickX_resize_(); JsShowImg_48654_SlickX_init_(); });
$(window).resize(function(){ JsShowImg_48654_SlickX_resize_(); });
window.JsShowImg_48654_show_ = function (n) { // function begin
$('#meMsg_48654_MsgBlkZ .divJsShowImgBList').slick('slickGoTo', parseInt(n)-1);
} // function end