var n, img, imgb, title, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_SlickX_js_72944_N = 0;
var inc_msg_JsShowImg_SlickX_js_72944_ShowN = 0;
var inc_msg_JsShowImg_SlickX_js_72944_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_72944_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_72944_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_SlickX_js_72944_N = n;
title = $('#meMsg_72944_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_72944_ItemContent_'+n); cont = (cont.length) ? '
');
$('#meMsg_72944_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_72944_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_72944)!='undefined') if (jsvJsShowImgPosD_72944!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_72944);
if (typeof(jsvJsShowImgPos_72944)!='undefined') {
if (jsvJsShowImgPos_72944.charAt(0)=='O') {
$('#meMsg_72944_MsgListBlk .meMsg_MsgTitle img').prop('src', space);
ns_setCSS_('#meMsg_72944_MsgListBlk .meMsg_MsgTitle img { border-radius:50%; border:5px solid #eeeeee; }');
ns_setCSS_('#meMsg_72944_MsgListBlk .meMsg_MsgTitle img.b1 { border:5px solid #ffffff; }');
jsvJsShowImgPos_72944 = jsvJsShowImgPos_72944.substr(1, jsvJsShowImgPos_72944.length);
}
switch(jsvJsShowImgPos_72944) {
case 'hide':
$('#meMsg_72944_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_72944_MsgListBlk .meMsg_MsgTitle img').attr('src', wdbSpace);
break;
case 'left': case 'right':
$('#meMsg_72944_MsgList').addClass(jsvJsShowImgPos_72944).css('float', ((jsvJsShowImgPos_72944=='right')?'left':'right'));
$('#meMsg_72944_MsgBlkZ').css('float', jsvJsShowImgPos_72944);
break;
case 'bindbottomwin':
JsShowImg_72944_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_72944_bindbottomwin_(); }).resize(function(){ JsShowImg_72944_bindbottomwin_(); });
setTimeout('JsShowImg_72944_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_72944_MsgList').outerHeight()+jsvJsShowImgPosD;
$('#meMsg_72944_MsgList').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
JsShowImg_72944_bindleft_();
$(window).resize(function(){ JsShowImg_72944_bindleft_(); });
break;
case 'bindright':
JsShowImg_72944_bindright_();
$(window).resize(function(){ JsShowImg_72944_bindright_(); });
break;
default:
break;
}
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('72944');
}, 500);
});
window.JsShowImg_72944_bindleft_ = function () { // function begin
$('#meMsg_72944_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_72944_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_72944_MsgBlkZ').outerHeight();
$('#meMsg_72944_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_72944_bindright_ = function () { // function begin
$('#meMsg_72944_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_72944_MsgBlkZ').offset();
var h = $('#meMsg_72944_MsgBlkZ').outerHeight();
var w = $('#meMsg_72944_MsgList').outerWidth();
p.left = p.left + $('#meMsg_72944_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_72944_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_72944_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_72944)!='undefined') if (jsvJsShowImgPosD_72944!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_72944);
$('#meMsg_72944_MsgList').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#meMsg_72944_MsgBlkZ').offset();
var w = $('#meMsg_72944_MsgBlkZ').outerWidth();
var h = $('#meMsg_72944_MsgList').outerHeight();
p.top = p.top + $('#div_72944_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_72944_MsgList').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_72944_ItemFile_'+inc_msg_JsShowImg_SlickX_js_72944_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_72944_MsgList').css(p).outerWidth(w);
} // function end
window.JsShowImg_72944_SlickX_resize_ = function () { // function begin
var em = $('#meMsg_72944_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_72944_SlickX_init_ = function () { // function begin
var sec = parseFloat(jsvJsShowImgSec_72944)*1000;
$('#meMsg_72944_MsgBlkZ .divJsShowImgBList').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, autoplay: true, autoplaySpeed: sec })
.on('afterChange', function(e, slick, idx){
idx++;
$('#meMsg_72944_MsgListBlk .meMsg_MsgTitle img').each(function(){ this.className = 'b0'; });
$('#meMsg_72944_ItemImg_'+idx)[0].className = 'b1';
});
$('#meMsg_72944_MsgBlkZ .divJsShowImgBList').fadeIn();
} // function end
$(document).ready(function(){ JsShowImg_72944_SlickX_resize_(); JsShowImg_72944_SlickX_init_(); });
$(window).resize(function(){ JsShowImg_72944_SlickX_resize_(); });
window.JsShowImg_72944_show_ = function (n) { // function begin
$('#meMsg_72944_MsgBlkZ .divJsShowImgBList').slick('slickGoTo', parseInt(n)-1);
} // function end