var n, img, imgb, title, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_SlickX_js_9261_N = 0;
var inc_msg_JsShowImg_SlickX_js_9261_ShowN = 0;
var inc_msg_JsShowImg_SlickX_js_9261_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_9261_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_9261_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_SlickX_js_9261_N = n;
title = $('#meMsg_9261_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_9261_ItemContent_'+n); cont = (cont.length) ? '
');
$('#meMsg_9261_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_9261_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_9261)!='undefined') if (jsvJsShowImgPosD_9261!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_9261);
if (typeof(jsvJsShowImgPos_9261)!='undefined') {
if (jsvJsShowImgPos_9261.charAt(0)=='O') {
$('#meMsg_9261_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_9261 = jsvJsShowImgPos_9261.substr(1, jsvJsShowImgPos_9261.length);
}
switch(jsvJsShowImgPos_9261) {
case 'hide':
$('#meMsg_9261_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_9261_MsgListBlk .meMsg_MsgTitle img').attr('src', wdbSpace);
break;
case 'left': case 'right':
$('#meMsg_9261_MsgList').addClass(jsvJsShowImgPos_9261).css('float', ((jsvJsShowImgPos_9261=='right')?'left':'right'));
$('#meMsg_9261_MsgBlkZ').css('float', jsvJsShowImgPos_9261);
break;
case 'bindbottomwin':
JsShowImg_9261_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_9261_bindbottomwin_(); }).resize(function(){ JsShowImg_9261_bindbottomwin_(); });
setTimeout('JsShowImg_9261_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_9261_MsgList').outerHeight()+jsvJsShowImgPosD;
if (jsvJsShowImgPos_9261.charAt(0)=='O')
h = 20;
$('#meMsg_9261_MsgList').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
JsShowImg_9261_bindleft_();
$(window).resize(function(){ JsShowImg_9261_bindleft_(); });
break;
case 'bindright':
JsShowImg_9261_bindright_();
$(window).resize(function(){ JsShowImg_9261_bindright_(); });
break;
default:
break;
}
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('9261');
}, 500);
});
window.JsShowImg_9261_bindleft_ = function () { // function begin
$('#meMsg_9261_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_9261_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_9261_MsgBlkZ').outerHeight();
$('#meMsg_9261_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_9261_bindright_ = function () { // function begin
$('#meMsg_9261_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_9261_MsgBlkZ').offset();
var h = $('#meMsg_9261_MsgBlkZ').outerHeight();
var w = $('#meMsg_9261_MsgList').outerWidth();
p.left = p.left + $('#meMsg_9261_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_9261_MsgList').css(p).outerHeight(h);
} // function end
window.JsShowImg_9261_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_9261)!='undefined') if (jsvJsShowImgPosD_9261!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_9261);
$('#meMsg_9261_MsgList').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#meMsg_9261_MsgBlkZ').offset();
var w = $('#meMsg_9261_MsgBlkZ').outerWidth();
var h = $('#meMsg_9261_MsgList').outerHeight();
p.top = p.top + $('#div_9261_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_9261_MsgList').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_9261_ItemFile_'+inc_msg_JsShowImg_SlickX_js_9261_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_9261_MsgList').css(p).outerWidth(w);
} // function end
window.JsShowImg_9261_SlickX_resize_ = function () { // function begin
var em = $('#meMsg_9261_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_9261_SlickX_init_ = function () { // function begin
var sec = parseFloat(jsvJsShowImgSec_9261)*1000;
$('#meMsg_9261_MsgBlkZ .divJsShowImgBList').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, autoplay: true, autoplaySpeed: sec })
.on('afterChange', function(e, slick, idx){
idx++;
$('#meMsg_9261_MsgListBlk .meMsg_MsgTitle img').each(function(){ this.className = 'b0'; });
$('#meMsg_9261_ItemImg_'+idx)[0].className = 'b1';
});
$('#meMsg_9261_MsgBlkZ .divJsShowImgBList').fadeIn();
} // function end
$(document).ready(function(){ JsShowImg_9261_SlickX_resize_(); JsShowImg_9261_SlickX_init_(); });
$(window).resize(function(){ JsShowImg_9261_SlickX_resize_(); });
window.JsShowImg_9261_show_ = function (n) { // function begin
$('#meMsg_9261_MsgBlkZ .divJsShowImgBList').slick('slickGoTo', parseInt(n)-1);
} // function end