').css({
'visibility': 'visible',
'position': 'absolute',
'z-index': 10000,
'left': (($(window).width() - 1000) / 2 > 0) ? ($(window).width() - 1000) / 2: 0,
'top': 50 + s
}).appendTo($('body'));
var slideobj_cont_m_1 = new ImageSlide('slide', {
slide_url: u,
//图集url
width: 1000,
// 控件宽度
diff: 0,
//控件与图片宽度差(样式差异)
imgOverflow: 'zoom',
//图片超出 cut | zoom
listType: 'title',
//列表类型 pic | title
listPos: 'bot',
//列表位置 bot | top
showText: true,
// 是否显示图片说明文字
thumbCount: 30,
// 每一屏最多显示的缩略图个
event: 'click',
// 切换方式 click | hover
downloadImg: false,
//是否显示下载图片功能
comment: false
// 是否显示评论条
});
slideobj_cont_m_1.PVUrl_m = 'http://news.sina.com.cn/hdphoto/lltj_photo_manual.html';
}
!FN.browse.isIE6 && !FN.browse.isIpad && FN.loadStyle(style);
$('.btn span').hover(function(){
$(this).addClass('hover');
},function(){
$(this).removeClass('hover')
}).click(function(){
var parent = $(this).closest('.part'),target = parent.find('.ext_content');
if($(this).attr('opened') == '1') {
$(this).attr('opened',0).removeClass('opened').text('展开');;
target.css('display','none');
var t = parent.offset().top - 100 || 0;
$('html,body').animate({scrollTop : t},0);
}else {
$(this).attr('opened',1).addClass('opened').text('收回');
target.css('display','block')
}
});
//banner自适应
var scale = BG_SCALE || 1.0;
var v_w = FN.browse.isIpad ? 1000: $(window).width(),
v_h = FN.browse.isIpad ? 562.5: $(window).width() * 0.5625;
$('.banner').css({'width' : v_w, 'height' : v_h*scale});
$('.banner img').css({'width' : v_w, 'height' : v_h});
//返回顶部
$("body").delegate(".sd_toTop", "click",
function(d) {
try {
document.documentElement.scrollTop = 0
} catch(e) {};
$("html, body").animate({
scrollTop: 0
},
500)
});
/*function resetPos () {
var wW = window.innerWidth ? window.innerWidth : Math.max(document.body.offsetWidth, document.documentElement.offsetWidth);
hb_w.style.left = ((wW - wrapWth)/2 - 180).toString() + 'px';
}*/
//正文页中图片放大
$('body').delegate('.ex_pic_btn', 'click',
function() {
var parent = $(this).closest('.parent_motion');
parent.find('.pic_zoom').trigger('click');
})
$('body').delegate('.pic_zoom', 'click',
function(e) {
e.preventDefault();
if ($(this).attr('status') == '1') return;
$(this).attr('status', 1).css('display', 'none');
var bp = $(this).attr('data-pic');
var newBig = $('

').css('width',0).appendTo($(this).parent());
newBig.animate({
'width': 1000
},
600);
});
$('body').delegate('.bigpic_zoom', 'click',
function() {
$(this).animate({
'width': 0
},
600,
function() {
$(this).parent().find('.pic_zoom').attr('status', 0).css('display', 'inline-block');
$(this).empty().remove();
});
});
//正文页中视频放大
window.palyerConf = {
container: "movie_play_cont",
//Div容器的id
playerWidth: 550,
//宽
playerHeight: 440,
//高
autoLoad: 1,
//自动加载
autoPlay: 1,
//自动播放
pid: 28,
as: 0,
//广告
tjAD: 0,
//显示擎天柱广告
tj: 1,
//片尾推荐
continuePlayer: 1,
//连续播放
casualPlay: 1,
//任意拖动视频
head: 0,
//播放片头动画
logo: 0
//显示logo
};
$('body').delegate('.ex_video_btn', 'click',
function() {
var parent = $(this).closest('.parent_motion');
parent.find('.video_zoom').trigger('click');
});
$('body').delegate('.movie_close', 'click',
function() {
var parent = $(this).closest('.imgWrap').removeClass('imgWrap-open');
parent.find('.video_zoom').attr('status', '0').css('display', 'inline-block');
parent.find('.movie_play').empty().remove();
});
$('body').delegate('.video_zoom', 'click',
function() {
if ($(this).attr('status') == '1') return;
$('.movie_play').empty().remove();
$('.video_zoom').attr('status', 0).css('display', 'inline-block');
$(this).attr('status', 1).css('display', 'none').closest('.imgWrap').addClass('imgWrap-open');
var vid = $(this).attr('data-vid');
var Bigvideo = $('
').appendTo($(this).parent());
player = null;
player = sinaVideoPlayer(palyerConf);
player.on("flashInitCompleted",
function() {
player.playVideo(vid, "0", 0);
vid = null;
});
player.init();
});
//正文页中图集放大
$('body').delegate('.ex_slide_btn', 'click',
function() {
var parent = $(this).closest('.parent_motion');
parent.find('.slide_zoom').trigger('click');
})
$('body').delegate('.slide_zoom', 'click',
function() {
var slideURL = $(this).attr('data-url');
showSlide(slideURL);
});
})
})