var n, img, imgb, title, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_SlickX_js_581_N = 0;
var inc_msg_JsShowImg_SlickX_js_581_ShowN = 0;
var inc_msg_JsShowImg_SlickX_js_581_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_581_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_581_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_SlickX_js_581_N = n;
title = $('#meMsg_581_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_581_ItemContent_'+n); cont = (cont.length) ? '
');
$('#meMsg_581_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_581_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_581)!='undefined') if (jsvJsShowImgPosD_581!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_581);
if (typeof(jsvJsShowImgPos_581)!='undefined') {
if (jsvJsShowImgPos_581.charAt(0)=='O') {
$('#meMsg_581_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_581 = jsvJsShowImgPos_581.substr(1, jsvJsShowImgPos_581.length);
}
switch(jsvJsShowImgPos_581) {
case 'hide':
$('#meMsg_581_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_581_MsgListBlk .meMsg_MsgTitle img').attr('src', wdbSpace);
break;
case 'left': case 'right':
$('#meMsg_581_MsgList').addClass(jsvJsShowImgPos_581).css('float', ((jsvJsShowImgPos_581=='right')?'left':'right'));
$('#meMsg_581_MsgBlkZ').css('float', jsvJsShowImgPos_581);
break;
case 'bindbottomwin':
JsShowImg_581_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_581_bindbottomwin_(); }).resize(function(){ JsShowImg_581_bindbottomwin_(); });
setTimeout('JsShowImg_581_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_581_MsgList').outerHeight()+jsvJsShowImgPosD;
if (jsvJsShowImgPos_581.charAt(0)=='O')
h = 20;
$('#meMsg_581_MsgList').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
JsShowImg_581_bindleft_();
$(window).resize(function(){ JsShowImg_581_bindleft_(); });
break;
case 'bindright':
JsShowImg_581_bindright_();
$(window).resize(function(){ JsShowImg_581_bindright_(); });
break;
default:
break;
}
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('581');
}, 500);
});
window.JsShowImg_581_bindleft_ = function () { // function begin
$('#meMsg_581_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_581_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_581_MsgBlkZ').outerHeight();
$('#meMsg_581_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_581_bindright_ = function () { // function begin
$('#meMsg_581_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_581_MsgBlkZ').offset();
var h = $('#meMsg_581_MsgBlkZ').outerHeight();
var w = $('#meMsg_581_MsgList').outerWidth();
p.left = p.left + $('#meMsg_581_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_581_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_581_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_581)!='undefined') if (jsvJsShowImgPosD_581!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_581);
$('#meMsg_581_MsgList').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#meMsg_581_MsgBlkZ').offset();
var w = $('#meMsg_581_MsgBlkZ').outerWidth();
var h = $('#meMsg_581_MsgList').outerHeight();
p.top = p.top + $('#div_581_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_581_MsgList').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_581_ItemFile_'+inc_msg_JsShowImg_SlickX_js_581_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_581_MsgList').css(p).outerWidth(w);
} // function end
window.JsShowImg_581_SlickX_resize_ = function () { // function begin
var em = $('#meMsg_581_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_581_SlickX_init_ = function () { // function begin
var sec = parseFloat(jsvJsShowImgSec_581)*1000;
$('#meMsg_581_MsgBlkZ .divJsShowImgBList').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, autoplay: true, autoplaySpeed: sec })
.on('afterChange', function(e, slick, idx){
idx++;
$('#meMsg_581_MsgListBlk .meMsg_MsgTitle img').each(function(){ this.className = 'b0'; });
$('#meMsg_581_ItemImg_'+idx)[0].className = 'b1';
});
$('#meMsg_581_MsgBlkZ .divJsShowImgBList').fadeIn();
} // function end
$(document).ready(function(){ JsShowImg_581_SlickX_resize_(); JsShowImg_581_SlickX_init_(); });
$(window).resize(function(){ JsShowImg_581_SlickX_resize_(); });
window.JsShowImg_581_show_ = function (n) { // function begin
$('#meMsg_581_MsgBlkZ .divJsShowImgBList').slick('slickGoTo', parseInt(n)-1);
} // function end