var n, img, imgb, title, cont, url, aTag, aEnd, src, html = new Array();
var inc_msg_JsShowImg_D4_js_317868_N = 0;
var inc_msg_JsShowImg_D4_js_317868_ShowN = 0;
var inc_msg_JsShowImg_D4_js_317868_TimeOut;
n = 0;
while (n <= 100) {
n++;
if ($('#meMsg_317868_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none')
continue;
if (img = $('#meMsg_317868_ItemImg_'+n)[0]) {
inc_msg_JsShowImg_D4_js_317868_N = n;
title = $('#meMsg_317868_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : '';
cont = $('#meMsg_317868_ItemContent_'+n); cont = (cont.length) ? '
';
}
}
else
break;
}
if (typeof(jsvJsShowImgPosition_317868)=='undefined' || jsvJsShowImgPosition_317868=='---')
$('#meMsg_317868_MsgBlkZ').css({position:'relative'});
else if (jsvJsShowImgPosition_317868=='bg' || jsvJsShowImgPosition_317868=='cover') {
$('#meMsg_317868_MsgBlkZ').css({position:'fixed', zIndex:-1, left:0, top:0, width:'100%', height:'100%'});
$('body').css({background:'transparent'});
}
else if (jsvJsShowImgPosition_317868=='bgz') {
$('#meMsg_317868_MsgBlkZ').css({position:'relative'});
$('#meMsg_317868_MsgBlkZ').wrap('');
$('#meMsg_317868_MsgBlkBgZ').css({position:'absolute', zIndex:-1, left:0, width:'100%', height:'auto'});
$('body').css({background:'transparent'});
}
$('#meMsg_317868_MsgBlkZ').html(html.join(''));
$('#meMsg_317868_MsgMain').addClass('JsShowImg');
$('.divJsShowImgB').css({width:'100%'});
$(document).ready(function(){
setTimeout(function(){
$('#meMsg_317868_MsgListBlk').fadeIn();
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_317868)!='undefined') if (jsvJsShowImgPosD_317868!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_317868);
if (typeof(jsvJsShowImgPos_317868)!='undefined')
switch(jsvJsShowImgPos_317868) {
case 'hide':
$('#meMsg_317868_MsgList').hide();
break;
case 'hideimg':
$('#meMsg_317868_MsgListBlk').hide();
break;
case 'left': case 'right':
$('#meMsg_317868_MsgList').addClass(jsvJsShowImgPos_317868).css('float', ((jsvJsShowImgPos_317868=='right')?'left':'right'));
$('#meMsg_317868_MsgBlkZ').css('float', jsvJsShowImgPos_317868);
break;
case 'bindbottomwin':
JsShowImg_317868_bindbottomwin_();
$(window).scroll(function(){ JsShowImg_317868_bindbottomwin_(); }).resize(function(){ JsShowImg_317868_bindbottomwin_(); });
setTimeout('JsShowImg_317868_bindbottomwin_()', 2000);
break;
case 'bindbottom':
var h = $('#meMsg_317868_MsgList').outerHeight()+jsvJsShowImgPosD;
$('#meMsg_317868_MsgListBlk').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show();
break;
case 'bindleft':
$(window).resize(function(){
$('#meMsg_317868_MsgList').addClass('bindleft').css({position:'absolute'});
var p = $('#meMsg_317868_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h = $('#meMsg_317868_MsgBlkZ').outerHeight();
$('#meMsg_317868_MsgList').css(p).outerHeight(h);
}); $(window).resize();
break;
case 'bindright':
$(window).resize(function(){
$('#meMsg_317868_MsgList').addClass('bindright').css({position:'absolute'});
var p = $('#meMsg_317868_MsgBlkZ').offset();
var h = $('#meMsg_317868_MsgBlkZ').outerHeight();
var w = $('#meMsg_317868_MsgList').outerWidth();
p.left = p.left + $('#meMsg_317868_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
$('#meMsg_317868_MsgList').css(p).outerHeight(h);
}); $(window).resize();
break;
case 'bindleftc':
$(window).resize(function(){
$('#meMsg_317868_MsgList').addClass('bindleftc').css({position:'absolute'});
var p = $('#meMsg_317868_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD;
var h0 = $('#meMsg_317868_MsgBlkZ').height();
var h = $('#meMsg_317868_MsgList').height();
p.top = p.top + (h0 - h)/2;
$('#meMsg_317868_MsgList').css(p);
}); $(window).resize();
break;
case 'bindrightc':
$(window).resize(function(){
$('#meMsg_317868_MsgList').addClass('bindrightc').css({position:'absolute'});
var p = $('#meMsg_317868_MsgBlkZ').offset();
var h0 = $('#meMsg_317868_MsgBlkZ').height();
var h = $('#meMsg_317868_MsgList').height();
var w = $('#meMsg_317868_MsgList').outerWidth();
p.left = p.left + $('#meMsg_317868_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD;
p.top = p.top + (h0 - h)/2;
$('#meMsg_317868_MsgList').css(p);
}); $(window).resize();
break;
default:
break;
}
if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('317868');
}, 500);
});
window.JsShowImg_317868_bindbottomwin_ = function () { // function begin
var jsvJsShowImgPosD = 0;
if (typeof(jsvJsShowImgPosD_317868)!='undefined') if (jsvJsShowImgPosD_317868!='')
jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_317868);
$('#meMsg_317868_MsgListBlk').addClass('bindbottomwin').css({position:'absolute'});
var p = $('#div_317868_x').offset();
var w = $('#div_317868_x').outerWidth();
var h = $('#meMsg_317868_MsgListBlk').outerHeight();
p.top = p.top + $('#div_317868_1').outerHeight() - h - jsvJsShowImgPosD;
var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_317868_MsgListBlk').outerHeight() - jsvJsShowImgPosD;
if (top1 < p.top) p.top = top1;
if (imgb = $('#meMsg_317868_ItemFile_'+inc_msg_JsShowImg_D4_js_317868_ShowN)[0]) imgb = imgb.innerHTML; else imgb = '';
if (!/\.mp4/.test(imgb)) $('#meMsg_317868_MsgListBlk').css(p).outerWidth(w);
} // function end
window.JsShowImg_317868_show_ = function (n, sec2) { // function begin
var m = 0, imgb;
if (!sec2) sec2 = 1;
if (inc_msg_JsShowImg_D4_js_317868_TimeOut) clearTimeout(inc_msg_JsShowImg_D4_js_317868_TimeOut);
if (inc_msg_JsShowImg_D4_js_317868_ShowN) {
$('#div_317868_0').html($('#div_317868_'+inc_msg_JsShowImg_D4_js_317868_ShowN).html()).show();
$('#div_317868_0').find('.meMsg_ItemTitle, .meMsg_ItemContent').hide();
$('#div_317868_x').html($('#div_317868_'+n).html());
$('#div_317868_'+inc_msg_JsShowImg_D4_js_317868_ShowN).hide();
$('#div_317868_'+n).fadeIn(500, function(){
$('#div_317868_0').hide();
});
$('body').removeClass($('#div_317868_'+inc_msg_JsShowImg_D4_js_317868_ShowN).attr('bodyclass')).addClass($('#div_317868_'+n).attr('bodyclass'));
}
else {
$('#div_317868_'+n).show();
$('body').addClass($('#div_317868_'+n).attr('bodyclass'));
}
inc_msg_JsShowImg_D4_js_317868_ShowN = n;
for (m=1; m<=inc_msg_JsShowImg_D4_js_317868_N; m++)
if (img = $('#meMsg_317868_ItemImg_'+m)[0])
img.className = (m==n) ? 'b1' : 'b0';
var sec = parseInt(jsvJsShowImgSec_317868);
if ($('#div_317868_'+n+' video source').length) {
src = $('#div_317868_'+n+' video source')[0].src.split('#');
if (src[2]) eval(src[2]);
}
inc_msg_JsShowImg_D4_js_317868_TimeOut = setTimeout('JsShowImg_317868_roll_()', sec*sec2*1000);
} // function end
window.JsShowImg_317868_roll_ = function () { // function begin
var n = inc_msg_JsShowImg_D4_js_317868_ShowN;
n++; if (n > inc_msg_JsShowImg_D4_js_317868_N) n = 1;
JsShowImg_317868_show_(n);
} // function end
JsShowImg_317868_show_(1);
window.JsShowImg_317868_rollNext_ = function () { // function begin
JsShowImg_317868_roll_();
} // function end
window.JsShowImg_317868_rollPrev_ = function () { // function begin
var n = inc_msg_JsShowImg_D4_js_317868_ShowN;
n--; if (n == 0) n = inc_msg_JsShowImg_D4_js_317868_N;
JsShowImg_317868_show_(n);
} // function end
window.JsShowImg_rollNext_ = function () { // function begin
JsShowImg_317868_rollNext_();
} // function end
window.JsShowImg_rollPrev_ = function () { // function begin
JsShowImg_317868_rollPrev_();
} // function end