var n, img, imgb, title, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_SlickX_js_389596_N = 0;
var inc_msg_JsShowImg_SlickX_js_389596_ShowN = 0;
var inc_msg_JsShowImg_SlickX_js_389596_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_389596_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_389596_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_SlickX_js_389596_N = n;
title = $('#meMsg_389596_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_389596_ItemContent_'+n); cont = (cont.length) ? '
');
$('#meMsg_389596_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_389596_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_389596)!='undefined') if (jsvJsShowImgPosD_389596!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_389596);
if (typeof(jsvJsShowImgPos_389596)!='undefined') {
if (jsvJsShowImgPos_389596.charAt(0)=='O') {
$('#meMsg_389596_MsgListBlk .meMsg_MsgTitle img').prop('src', wdbSpace);
ns_setCSS_('.meJsShowImg .meMsg_MsgListBlk .meMsg_MsgTitle img { border-radius:50%; width:10px; height:10px; margin:0px 2px; border:1px solid #eeeeee; background:#888; }');
ns_setCSS_('.meJsShowImg .meMsg_MsgListBlk .meMsg_MsgTitle img.b1 { background:#000; }');
jsvJsShowImgPos_389596 = jsvJsShowImgPos_389596.substr(1, jsvJsShowImgPos_389596.length);
}
switch(jsvJsShowImgPos_389596) {
case 'hide':
$('#meMsg_389596_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_389596_MsgListBlk .meMsg_MsgTitle img').attr('src', wdbSpace);
break;
case 'left': case 'right':
$('#meMsg_389596_MsgList').addClass(jsvJsShowImgPos_389596).css('float', ((jsvJsShowImgPos_389596=='right')?'left':'right'));
$('#meMsg_389596_MsgBlkZ').css('float', jsvJsShowImgPos_389596);
break;
case 'bindbottomwin':
JsShowImg_389596_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_389596_bindbottomwin_(); }).resize(function(){ JsShowImg_389596_bindbottomwin_(); });
setTimeout('JsShowImg_389596_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_389596_MsgList').outerHeight()+jsvJsShowImgPosD;
if (jsvJsShowImgPos_389596.charAt(0)=='O')
h = 20;
$('#meMsg_389596_MsgList').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
JsShowImg_389596_bindleft_();
$(window).resize(function(){ JsShowImg_389596_bindleft_(); });
break;
case 'bindright':
JsShowImg_389596_bindright_();
$(window).resize(function(){ JsShowImg_389596_bindright_(); });
break;
default:
break;
}
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('389596');
}, 500);
});
window.JsShowImg_389596_bindleft_ = function () { // function begin
$('#meMsg_389596_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_389596_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_389596_MsgBlkZ').outerHeight();
$('#meMsg_389596_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_389596_bindright_ = function () { // function begin
$('#meMsg_389596_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_389596_MsgBlkZ').offset();
var h = $('#meMsg_389596_MsgBlkZ').outerHeight();
var w = $('#meMsg_389596_MsgList').outerWidth();
p.left = p.left + $('#meMsg_389596_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_389596_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_389596_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_389596)!='undefined') if (jsvJsShowImgPosD_389596!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_389596);
$('#meMsg_389596_MsgList').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#meMsg_389596_MsgBlkZ').offset();
var w = $('#meMsg_389596_MsgBlkZ').outerWidth();
var h = $('#meMsg_389596_MsgList').outerHeight();
p.top = p.top + $('#div_389596_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_389596_MsgList').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_389596_ItemFile_'+inc_msg_JsShowImg_SlickX_js_389596_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_389596_MsgList').css(p).outerWidth(w);
} // function end
window.JsShowImg_389596_SlickX_resize_ = function () { // function begin
var em = $('#meMsg_389596_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_389596_SlickX_init_ = function () { // function begin
var sec = parseFloat(jsvJsShowImgSec_389596)*1000;
$('#meMsg_389596_MsgBlkZ .divJsShowImgBList').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, autoplay: true, autoplaySpeed: sec })
.on('afterChange', function(e, slick, idx){
idx++;
$('#meMsg_389596_MsgListBlk .meMsg_MsgTitle img').each(function(){ this.className = 'b0'; });
$('#meMsg_389596_ItemImg_'+idx)[0].className = 'b1';
});
$('#meMsg_389596_MsgBlkZ .divJsShowImgBList').fadeIn();
} // function end
$(document).ready(function(){ JsShowImg_389596_SlickX_resize_(); JsShowImg_389596_SlickX_init_(); });
$(window).resize(function(){ JsShowImg_389596_SlickX_resize_(); });
window.JsShowImg_389596_show_ = function (n) { // function begin
$('#meMsg_389596_MsgBlkZ .divJsShowImgBList').slick('slickGoTo', parseInt(n)-1);
} // function end